public class FieldMapping extends AbstractFieldMapping
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
FieldMapping() |
FieldMapping(String targetFieldName,
String sourceExpression) |
Modifier and Type | Method and Description |
---|---|
DataException |
addExceptionProperties(DataException exception)
Adds this object's current state to a
DataException . |
FieldMapping |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
FieldMapping |
fromXmlElement(Element fieldMappingElement) |
Expression |
getSourceExpression() |
String |
getSourceExpressionAsString() |
protected Object |
mapFieldImpl(ExpressionContext expressionContext,
DataMappingResult result) |
FieldMapping |
setCondition(LogicalExpression condition) |
FieldMapping |
setDefaultValueExpression(Expression defaultValueExpression) |
FieldMapping |
setSourceExpression(Expression sourceExpression) |
FieldMapping |
setTargetFieldName(String targetFieldName) |
Record |
toRecord() |
Element |
toXmlElement(Document document) |
getCondition, getConditionAsString, getDefaultValueExpression, getDefaultValueExpressionAsString, getTargetFieldName, getType, mapField, setType, validateName
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 FieldMapping setCondition(LogicalExpression condition)
setCondition
in class AbstractFieldMapping
public FieldMapping setDefaultValueExpression(Expression defaultValueExpression)
setDefaultValueExpression
in class AbstractFieldMapping
public FieldMapping setTargetFieldName(String targetFieldName)
setTargetFieldName
in class AbstractFieldMapping
public Expression getSourceExpression()
public FieldMapping setSourceExpression(Expression sourceExpression)
public String getSourceExpressionAsString()
protected Object mapFieldImpl(ExpressionContext expressionContext, DataMappingResult result)
mapFieldImpl
in class AbstractFieldMapping
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 AbstractFieldMapping
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class AbstractFieldMapping
public FieldMapping 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 AbstractFieldMapping
public Element toXmlElement(Document document)
toXmlElement
in interface XmlSerializable
toXmlElement
in class AbstractFieldMapping
public FieldMapping fromXmlElement(Element fieldMappingElement)
fromXmlElement
in interface XmlSerializable
fromXmlElement
in class AbstractFieldMapping