public class FieldMapping extends AbstractFieldMapping implements DataMappingProblemsSupplier
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
FieldMapping() |
FieldMapping(String targetFieldName,
String sourceExpression) |
getCondition, getConditionAsString, getDataMappingPartName, getDefaultValueExpression, getDefaultValueExpressionAsString, getTargetFieldName, getType, mapField, setType, validateName
getDataMappingName, getDataMappingPartContainerName, getDataMappingPartContainerType
assertValid, assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalId
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataMappingProblems, getDataMappingProblems
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties
public void getDataMappingProblems(List<DataMappingProblem> problems, boolean includeChildren)
getDataMappingProblems
in interface DataMappingProblemsSupplier
getDataMappingProblems
in class AbstractFieldMapping
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 DataMapping getDataMapping()
getDataMapping
in class DataMappingPart
public DataMappingPart getDataMappingPartContainer()
getDataMappingPartContainer
in class DataMappingPart
public DataMappingPartType getDataMappingPartType()
getDataMappingPartType
in class DataMappingPart
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 interface DataExceptionContributor
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
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.