Class XmlEntityMappingDS
- java.lang.Object
-
- com.aquima.interactions.foundation.report.ReportingDS
-
- com.aquima.interactions.mapping.ds.xml.r8.parsing.XmlEntityMappingDS
-
- All Implemented Interfaces:
IReportingDS
,IEntityMappingDS
public class XmlEntityMappingDS extends ReportingDS implements IEntityMappingDS
Implementation of the IEntityMappingDS interface using a mapping definition from XML.- Since:
- 7.2
- Author:
- Jon van Leuven
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
XmlEntityMappingDS(IInitializationReport report, IXmlNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingAction
getActionForMatch()
The method returns the mapping action when a matching source and target instances is found.MappingAction
getActionForNoMatchingSource()
The method returns the mapping action when no matching source instance is found.MappingAction
getActionForNoMatchingTarget()
The method returns the mapping action when no matching target instance is found.String
getCondition()
This method returns the optional precondition for this target mapping.String[]
getSourceContextExpressions()
This method returns the optional source expressions that can be used to activate instance(s) during value mapping evaluation.String
getSourceEntityExpression()
This method returns the source expression that results in instances in the source profile.String
getTargetEntityName()
This method returns the name of the entity the values should be mapped to.void
iterateAttributeMappings(IAttributeMappingVisitor visitor)
This method will be invoked by the mapping component to request the information of all attributes mappings that are defined for this source mapping.void
iterateMatchConditions(IMatchConditionVisitor visitor)
This method will be invoked by the mapping component to request the information of all match conditions that are defined for this source mapping.-
Methods inherited from class com.aquima.interactions.foundation.report.ReportingDS
addError, addMessage, getCategory, getReport
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
-
-
-
Constructor Detail
-
XmlEntityMappingDS
protected XmlEntityMappingDS(IInitializationReport report, IXmlNode node)
-
-
Method Detail
-
getActionForMatch
public MappingAction getActionForMatch()
Description copied from interface:IEntityMappingDS
The method returns the mapping action when a matching source and target instances is found.- Specified by:
getActionForMatch
in interfaceIEntityMappingDS
- Returns:
- The mapping action, never null.
-
getActionForNoMatchingSource
public MappingAction getActionForNoMatchingSource()
Description copied from interface:IEntityMappingDS
The method returns the mapping action when no matching source instance is found.- Specified by:
getActionForNoMatchingSource
in interfaceIEntityMappingDS
- Returns:
- The mapping action, never null.
-
getActionForNoMatchingTarget
public MappingAction getActionForNoMatchingTarget()
Description copied from interface:IEntityMappingDS
The method returns the mapping action when no matching target instance is found.- Specified by:
getActionForNoMatchingTarget
in interfaceIEntityMappingDS
- Returns:
- The mapping action, never null.
-
getCondition
public String getCondition()
Description copied from interface:IEntityMappingDS
This method returns the optional precondition for this target mapping.- Specified by:
getCondition
in interfaceIEntityMappingDS
- Returns:
- The optional condition, may be null.
-
getSourceContextExpressions
public String[] getSourceContextExpressions()
Description copied from interface:IEntityMappingDS
This method returns the optional source expressions that can be used to activate instance(s) during value mapping evaluation.- Specified by:
getSourceContextExpressions
in interfaceIEntityMappingDS
- Returns:
- The source expression, never null, but can be an empty array.
-
getSourceEntityExpression
public String getSourceEntityExpression()
Description copied from interface:IEntityMappingDS
This method returns the source expression that results in instances in the source profile.- Specified by:
getSourceEntityExpression
in interfaceIEntityMappingDS
- Returns:
- The source entity expression, never null
-
getTargetEntityName
public String getTargetEntityName()
Description copied from interface:IEntityMappingDS
This method returns the name of the entity the values should be mapped to.- Specified by:
getTargetEntityName
in interfaceIEntityMappingDS
- Returns:
- the name of the entity the values should be mapped to.
-
iterateAttributeMappings
public void iterateAttributeMappings(IAttributeMappingVisitor visitor)
Description copied from interface:IEntityMappingDS
This method will be invoked by the mapping component to request the information of all attributes mappings that are defined for this source mapping.- Specified by:
iterateAttributeMappings
in interfaceIEntityMappingDS
- Parameters:
visitor
- The visitor that should be used to add the attribute mapping definitions to.
-
iterateMatchConditions
public void iterateMatchConditions(IMatchConditionVisitor visitor)
Description copied from interface:IEntityMappingDS
This method will be invoked by the mapping component to request the information of all match conditions that are defined for this source mapping.- Specified by:
iterateMatchConditions
in interfaceIEntityMappingDS
- Parameters:
visitor
- The visitor that should be used to add the match condition definitions to.
-
-