Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.diff.model.impl
Class DiffBlockDefinitionImpl

java.lang.Object
  extended by org.nuxeo.ecm.diff.model.impl.DiffBlockDefinitionImpl
All Implemented Interfaces:
Serializable, DiffBlockDefinition

public class DiffBlockDefinitionImpl
extends Object
implements DiffBlockDefinition

Default implementation of a DiffBlockDefinition.

Since:
5.6
Author:
Antoine Taillefer
See Also:
Serialized Form

Constructor Summary
DiffBlockDefinitionImpl(String name, Map<String,String> templates, List<DiffFieldDefinition> fields, Map<String,Map<String,Serializable>> properties)
           
 
Method Summary
 boolean equals(Object other)
           
 List<DiffFieldDefinition> getFields()
          Returns the list of field definitions.
 String getName()
          Gets the diff block definition name.
 Map<String,Map<String,Serializable>> getProperties()
          Returns a map of properties by mode.
 Map<String,Serializable> getProperties(String layoutMode)
          Returns a map of properties to use in a given mode.
 String getTemplate(String mode)
          Returns the template to use in a given mode.
 Map<String,String> getTemplates()
          Returns a map of templates by mode.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiffBlockDefinitionImpl

public DiffBlockDefinitionImpl(String name,
                               Map<String,String> templates,
                               List<DiffFieldDefinition> fields,
                               Map<String,Map<String,Serializable>> properties)
Method Detail

getName

public String getName()
Description copied from interface: DiffBlockDefinition
Gets the diff block definition name.

Specified by:
getName in interface DiffBlockDefinition

getTemplate

public String getTemplate(String mode)
Description copied from interface: DiffBlockDefinition
Returns the template to use in a given mode.

Specified by:
getTemplate in interface DiffBlockDefinition

getTemplates

public Map<String,String> getTemplates()
Description copied from interface: DiffBlockDefinition
Returns a map of templates by mode.

Specified by:
getTemplates in interface DiffBlockDefinition

getFields

public List<DiffFieldDefinition> getFields()
Description copied from interface: DiffBlockDefinition
Returns the list of field definitions.

Specified by:
getFields in interface DiffBlockDefinition

getProperties

public Map<String,Serializable> getProperties(String layoutMode)
Description copied from interface: DiffBlockDefinition
Returns a map of properties to use in a given mode.

Specified by:
getProperties in interface DiffBlockDefinition

getProperties

public Map<String,Map<String,Serializable>> getProperties()
Description copied from interface: DiffBlockDefinition
Returns a map of properties by mode.

Specified by:
getProperties in interface DiffBlockDefinition

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.