public abstract class AbstractFieldMapping extends DataMappingPart implements IFieldMapping, DataMappingProblemsSupplier
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
AbstractFieldMapping() |
getDataMapping, getDataMappingName, getDataMappingPartContainer, getDataMappingPartContainerName, getDataMappingPartContainerType, getDataMappingPartType
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
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
getDataMappingProblems, getDataMappingProblems
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties
public void getDataMappingProblems(List<DataMappingProblem> problems, boolean includeChildren)
getDataMappingProblems
in interface DataMappingProblemsSupplier
public String getDataMappingPartName()
getDataMappingPartName
in class DataMappingPart
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 interface DataExceptionContributor
addExceptionProperties
in class FoundationObject
public Element toXmlElement(Document document)
toXmlElement
in interface XmlSerializable
public AbstractFieldMapping fromXmlElement(Element fieldMappingElement)
fromXmlElement
in interface XmlSerializable
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.