Class 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
    • Method Detail

      • getItem

        public ItemType getItem()
        Returns:
        the item
      • getPropertyValue

        public Serializable getPropertyValue​(QName key)
        Returns:
        the property value associated with the key or null if none exists.
      • getAssociationValue

        public Serializable getAssociationValue​(QName key)
        Returns:
        the association value associated with the key or null if none exists.
      • getTransientValue

        public Object getTransientValue​(String fieldName)
        Specified by:
        getTransientValue in interface TransientValueGetter
        Returns:
        the value associated with the transient property specified by the fieldName or null if none exists.
      • getPropertyDefinition

        public PropertyDefinition getPropertyDefinition​(QName propName)
        Returns:
        The PropertyDefinition associated with the propName or null if none exists.
      • getAssociationDefinition

        public AssociationDefinition getAssociationDefinition​(QName assocName)
        Returns:
        The AssociationDefinition associated with the assocName or null if none exists.
      • getAllAssociationDefinitionNames

        public Collection<QName> getAllAssociationDefinitionNames()
        Returns:
        Returns an unmodifiable Collection containing all the association definition QNames for 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.