Class ContentModelItemData<ItemType>
- java.lang.Object
-
- org.alfresco.repo.forms.processor.node.ContentModelItemData<ItemType>
-
- All Implemented Interfaces:
TransientValueGetter
public class ContentModelItemData<ItemType> extends Object implements TransientValueGetter
Simple data transfer object used by the ContentModelFormProcessor and its descendants.- Since:
- 3.4
- Author:
- Nick Smith
-
-
Constructor Summary
Constructors Constructor Description ContentModelItemData(ItemType item, Map<QName,PropertyDefinition> propDefs, Map<QName,AssociationDefinition> assocDefs, Map<QName,Serializable> propValues, Map<QName,Serializable> assocValues, Map<String,Object> transientValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<QName>getAllAssociationDefinitionNames()Collection<QName>getAllPropertyDefinitionNames()Collection<String>getAllTransientFieldNames()AssociationDefinitiongetAssociationDefinition(QName assocName)SerializablegetAssociationValue(QName key)ItemTypegetItem()PropertyDefinitiongetPropertyDefinition(QName propName)SerializablegetPropertyValue(QName key)ObjectgetTransientValue(String fieldName)
-
-
-
Constructor Detail
-
ContentModelItemData
public ContentModelItemData(ItemType item, Map<QName,PropertyDefinition> propDefs, Map<QName,AssociationDefinition> assocDefs, Map<QName,Serializable> propValues, Map<QName,Serializable> assocValues, Map<String,Object> transientValues)
-
-
Method Detail
-
getItem
public ItemType getItem()
- Returns:
- the item
-
getPropertyValue
public Serializable getPropertyValue(QName key)
- Returns:
- the property value associated with the
keyornullif none exists.
-
getAssociationValue
public Serializable getAssociationValue(QName key)
- Returns:
- the association value associated with the
keyornullif none exists.
-
getTransientValue
public Object getTransientValue(String fieldName)
- Specified by:
getTransientValuein interfaceTransientValueGetter- Returns:
- the value associated with the transient property specified by the
fieldName or
nullif none exists.
-
getPropertyDefinition
public PropertyDefinition getPropertyDefinition(QName propName)
- Returns:
- The PropertyDefinition associated with the
propNameornullif none exists.
-
getAssociationDefinition
public AssociationDefinition getAssociationDefinition(QName assocName)
- Returns:
- The AssociationDefinition associated with the
assocNameornullif none exists.
-
getAllAssociationDefinitionNames
public Collection<QName> getAllAssociationDefinitionNames()
- Returns:
- Returns an unmodifiable Collection containing all the association
definition
QNamesfor the item.
-
getAllPropertyDefinitionNames
public Collection<QName> getAllPropertyDefinitionNames()
- Returns:
- Returns an unmodifiable Collection containing all the property definitions for the item.
-
getAllTransientFieldNames
public Collection<String> getAllTransientFieldNames()
- Returns:
- Returns an unmodifiable Collection containing all the property definitions for the item.
-
-