Class ContentModelField

  • All Implemented Interfaces:
    Field

    public class ContentModelField
    extends java.lang.Object
    implements Field
    DTO for a content model based Field.
    Since:
    3.4
    Author:
    Nick Smith
    • Constructor Detail

      • ContentModelField

        public ContentModelField​(org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDefinition,
                                 PropertyFieldDefinition fieldDef,
                                 java.lang.Object value)
      • ContentModelField

        public ContentModelField​(org.alfresco.service.cmr.dictionary.AssociationDefinition assocDefinition,
                                 AssociationFieldDefinition fieldDef,
                                 java.lang.Object value)
      • ContentModelField

        public ContentModelField​(FieldDefinition fieldDef,
                                 java.lang.Object value)
        This constructor should only be used to create FieldInfo for transient properties such as encoding, mimetype or size.
        Parameters:
        fieldDef - The PropertyFieldDefinition for the transient property.
    • Method Detail

      • isTransient

        public boolean isTransient()
      • isProperty

        public boolean isProperty()
      • getFullName

        public org.alfresco.service.namespace.QName getFullName()
      • getFieldName

        public java.lang.String getFieldName()
        Specified by:
        getFieldName in interface Field
        Returns:
        the fieldName
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in interface Field
        Returns:
        the value for this field or null.