public abstract class AbstractFieldExporter<V> extends Object implements FieldExporter
FieldExporter
handling common logic for all
FieldExporter
sModifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
mLogger |
Constructor and Description |
---|
AbstractFieldExporter() |
Modifier and Type | Method and Description |
---|---|
protected nu.xom.Element |
createRootElement(neo.xredsys.content.type.Field pField,
Object pValue)
Creates the root element of the field.
|
protected abstract List<nu.xom.Node> |
doExport(neo.xredsys.content.type.Field pField,
V pValue,
IOObject pObject,
ExportConfiguration pConfiguration)
Performs the actual export of the value
|
nu.xom.Element |
export(neo.xredsys.content.type.Field pField,
Object pValue,
IOObject pObject,
ExportConfiguration pConfiguration)
Create an
Element for the given field. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertToString
public final nu.xom.Element export(neo.xredsys.content.type.Field pField, Object pValue, IOObject pObject, ExportConfiguration pConfiguration)
FieldExporter
Element
for the given field. This method must be thread safe.export
in interface FieldExporter
pField
- the fieldpValue
- the value. This may be nullpObject
- the current objectpConfiguration
- the current configurationElement
for the given field. The method may return nullprotected nu.xom.Element createRootElement(neo.xredsys.content.type.Field pField, Object pValue)
export(neo.xredsys.content.type.Field, Object, neo.xredsys.api.IOObject, com.escenic.syndication.xml.ExportConfiguration)
pField
- the current fieldpValue
- the current valueprotected abstract List<nu.xom.Node> doExport(neo.xredsys.content.type.Field pField, V pValue, IOObject pObject, ExportConfiguration pConfiguration)
pField
- the fieldpValue
- the valuepObject
- the current objectpConfiguration
- the configuration in useList
of nodes that will be added as child nodes of the root element created by createRootElement(neo.xredsys.content.type.Field, Object)
. The list may be empty.© 1998- 2018 Stibo DX