public abstract class AbstractFieldMapping extends DataMappingObject implements IFieldMapping
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
AbstractFieldMapping() |
assertValid, assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalId
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
public String getTargetFieldName()
public AbstractFieldMapping setTargetFieldName(String targetFieldName)
public LogicalExpression getCondition()
public AbstractFieldMapping setCondition(LogicalExpression condition)
public String getConditionAsString()
public Expression getDefaultValueExpression()
public String getDefaultValueExpressionAsString()
public AbstractFieldMapping setDefaultValueExpression(Expression defaultValueExpression)
public FieldType getType()
public AbstractFieldMapping setType(FieldType type)
public AbstractFieldMapping mapField(ExpressionContext expressionContext, DataMappingResult result)
mapField
in interface IFieldMapping
protected abstract Object mapFieldImpl(ExpressionContext expressionContext, DataMappingResult result)
protected void validateName()
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public AbstractFieldMapping fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in class Bean
public DataException addExceptionProperties(DataException exception)
FoundationObject
DataException
. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties
in class FoundationObject
public Element toXmlElement(Document document)
toXmlElement
in interface XmlSerializable
public AbstractFieldMapping fromXmlElement(Element fieldMappingElement)
fromXmlElement
in interface XmlSerializable