Data
- public abstract class AbstractFieldProcessor<Data> extends Object implements FieldProcessor
Constructor and Description |
---|
AbstractFieldProcessor() |
Modifier and Type | Method and Description |
---|---|
Field |
generateField(String fieldName,
FormCreationData data) |
protected abstract Field |
generateTypedField(String fieldName,
FormCreationData formData,
Data typedData)
The method which actually creates the
Field . |
protected abstract Class<Data> |
getExpectedDataType() |
protected abstract org.apache.commons.logging.Log |
getLogger() |
protected abstract String |
getRegistryKey() |
void |
setFieldProcessorRegistry(FieldProcessorRegistry registry)
Registers this
FieldProcessor with the supplied registry. |
public Field generateField(String fieldName, FormCreationData data)
generateField
in interface FieldProcessor
public void setFieldProcessorRegistry(FieldProcessorRegistry registry)
FieldProcessor
with the supplied registry.registry
- The registry to which this FieldProcessor
is added.protected abstract org.apache.commons.logging.Log getLogger()
Log
used to log events that occur while processing fields.protected abstract String getRegistryKey()
String
key used to identify this FieldProcessor
in a FieldProcessorRegistry
.protected abstract Class<Data> getExpectedDataType()
Class
of the data
parameter for the method generateField
.protected abstract Field generateTypedField(String fieldName, FormCreationData formData, Data typedData)
Field
.Copyright © 2005–2017 Alfresco Software. All rights reserved.