public class DefaultFieldProcessor extends QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition> implements org.springframework.beans.factory.InitializingBean
FieldProcessor
implementation, used when an explicit FieldProcessor can not be located.dictionaryService, namespaceService
Constructor and Description |
---|
DefaultFieldProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Field |
generateField(org.alfresco.service.namespace.QName fullName,
ContentModelItemData<?> itemData,
boolean isForcedField) |
protected org.alfresco.service.namespace.QName |
getFullName(String name) |
protected FieldGroup |
getGroup(org.alfresco.service.cmr.dictionary.ClassAttributeDefinition typeDef) |
protected org.apache.commons.logging.Log |
getLogger() |
protected String |
getRegistryKey() |
protected org.alfresco.service.cmr.dictionary.ClassAttributeDefinition |
getTypeDefinition(org.alfresco.service.namespace.QName fullName,
ContentModelItemData<?> itemData,
boolean isForcedField) |
protected Object |
getValue(org.alfresco.service.namespace.QName fullName,
ContentModelItemData<?> itemData) |
protected Field |
makeField(org.alfresco.service.cmr.dictionary.ClassAttributeDefinition typeDef,
Object value,
FieldGroup group) |
generateTypedField, getExpectedDataType, getPrefixedName, makeDataKeyForName, populateFieldDefinition, setDictionaryService, setNamespaceService
generateField, setFieldProcessorRegistry
protected org.apache.commons.logging.Log getLogger()
getLogger
in class AbstractFieldProcessor<ContentModelItemData<?>>
Log
used to log events that occur while processing fields.protected org.alfresco.service.namespace.QName getFullName(String name)
getFullName
in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
public Field generateField(org.alfresco.service.namespace.QName fullName, ContentModelItemData<?> itemData, boolean isForcedField)
generateField
in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
protected String getRegistryKey()
getRegistryKey
in class AbstractFieldProcessor<ContentModelItemData<?>>
String
key used to identify this FieldProcessor
in a FieldProcessorRegistry
.public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected FieldGroup getGroup(org.alfresco.service.cmr.dictionary.ClassAttributeDefinition typeDef)
getGroup
in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
protected org.alfresco.service.cmr.dictionary.ClassAttributeDefinition getTypeDefinition(org.alfresco.service.namespace.QName fullName, ContentModelItemData<?> itemData, boolean isForcedField)
getTypeDefinition
in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
protected Object getValue(org.alfresco.service.namespace.QName fullName, ContentModelItemData<?> itemData)
getValue
in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
protected Field makeField(org.alfresco.service.cmr.dictionary.ClassAttributeDefinition typeDef, Object value, FieldGroup group)
makeField
in class QNameFieldProcessor<org.alfresco.service.cmr.dictionary.ClassAttributeDefinition>
Copyright © 2005–2017 Alfresco Software. All rights reserved.