public abstract class AbstractFieldMapping extends DataMappingPart implements IFieldMapping, DataMappingProblemsSupplier
internalId, internalName, log, TIMESTAMP_FORMATSERIALIZED_CLASS_NAME, TYPEXML_SERIALIZED_CLASS_NAME| Constructor and Description |
|---|
AbstractFieldMapping() |
getDataMapping, getDataMappingName, getDataMappingPartContainer, getDataMappingPartContainerName, getDataMappingPartContainerType, getDataMappingPartTypeassertValid, assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalIdequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecordnewInstanceFromJsonforEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXmlgetDataMappingProblems, getDataMappingProblemsaddExceptionProperties, contributeExceptionProperties, contributeExceptionPropertiespublic void getDataMappingProblems(List<DataMappingProblem> problems, boolean includeChildren)
getDataMappingProblems in interface DataMappingProblemsSupplierpublic String getDataMappingPartName()
getDataMappingPartName in class DataMappingPartpublic 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 IFieldMappingprotected abstract Object mapFieldImpl(ExpressionContext expressionContext, DataMappingResult result)
protected void validateName()
public Record toRecord()
toRecord in interface RecordSerializabletoRecord in class Beanpublic AbstractFieldMapping fromRecord(Record source)
RecordSerializablethis (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 RecordSerializablefromRecord in class Beanpublic DataException addExceptionProperties(DataException exception)
FoundationObjectDataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties in interface DataExceptionContributoraddExceptionProperties in class FoundationObjectpublic Element toXmlElement(Document document)
toXmlElement in interface XmlSerializablepublic AbstractFieldMapping fromXmlElement(Element fieldMappingElement)
fromXmlElement in interface XmlSerializableCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.