Class DefaultFieldProcessor

  • All Implemented Interfaces:
    FieldProcessor, org.springframework.beans.factory.InitializingBean

    public class DefaultFieldProcessor
    extends QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
    implements org.springframework.beans.factory.InitializingBean
    Default FieldProcessor implementation, used when an explicit FieldProcessor can not be located.
    Since:
    3.4
    Author:
    Nick Smith
    • Constructor Detail

      • DefaultFieldProcessor

        public DefaultFieldProcessor()
    • Method Detail

      • getFullName

        protected org.alfresco.service.namespace.QName getFullName​(java.lang.String name)
        Overrides:
        getFullName in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • getGroup

        protected FieldGroup getGroup​(org.alfresco.service.cmr.dictionary.ClassAttributeDefinition typeDef)
        Specified by:
        getGroup in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
      • getTypeDefinition

        protected org.alfresco.service.cmr.dictionary.ClassAttributeDefinition getTypeDefinition​(org.alfresco.service.namespace.QName fullName,
                                                                                                 ContentModelItemData<?> itemData,
                                                                                                 boolean isForcedField)
        Specified by:
        getTypeDefinition in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
      • getValue

        protected java.lang.Object getValue​(org.alfresco.service.namespace.QName fullName,
                                            ContentModelItemData<?> itemData)
        Specified by:
        getValue in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
      • makeField

        protected Field makeField​(org.alfresco.service.cmr.dictionary.ClassAttributeDefinition typeDef,
                                  java.lang.Object value,
                                  FieldGroup group)
        Specified by:
        makeField in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>