org.alfresco.repo.forms.processor.node
Class ContentModelField

java.lang.Object
  extended by org.alfresco.repo.forms.processor.node.ContentModelField
All Implemented Interfaces:
Field

public class ContentModelField
extends java.lang.Object
implements Field

DTO for a content model based Field.

Since:
3.4

Constructor Summary
ContentModelField(org.alfresco.service.cmr.dictionary.AssociationDefinition assocDefinition, AssociationFieldDefinition fieldDef, java.lang.Object value)
           
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.
ContentModelField(org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDefinition, PropertyFieldDefinition fieldDef, java.lang.Object value)
           
 
Method Summary
 FieldDefinition getFieldDefinition()
           
 java.lang.String getFieldName()
           
 org.alfresco.service.namespace.QName getFullName()
           
 java.lang.Object getValue()
           
 boolean isProperty()
           
 boolean isTransient()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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()

getFieldDefinition

public FieldDefinition getFieldDefinition()
Specified by:
getFieldDefinition in interface Field
Returns:
the field definition

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.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.