Class EntityMappingTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.mapping.EntityMappingTemplate
Template that may be used to define an entity mapping.
- Since:
- 7.1
- Author:
- J. van Leuven
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EntityMappingTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String targetEntityName, String sourceEntityExpression) -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeMapping
(String targetAttribute) This method can be used to add an attribute mapping to this mapping.void
addInstanceMatchCondition
(String sourceExpression, com.aquima.interactions.mapping.ds.MatchConditionOperator matchOperator, String targetExpression) This method can be used to add a match condition to this mapping.void
addSourceContextExpression
(String sourceContextExpression) This method can be used to add a context expression.protected List
<AttributeMappingTemplate> protected String
protected com.aquima.interactions.mapping.impl.MappingAction
protected List
<MatchConditionTemplate> protected com.aquima.interactions.mapping.impl.MappingAction
protected com.aquima.interactions.mapping.impl.MappingAction
protected String
protected String
void
setCondition
(String condition) This method can be used to make this mapping conditional.void
setMatchAction
(com.aquima.interactions.mapping.impl.MappingAction action) This method can be used to set the action that is used the source and target instance match.void
setNoSourceMatchAction
(com.aquima.interactions.mapping.impl.MappingAction action) This method can be used to set the action that is used when no source instance could be found.void
setNoTargetMatchAction
(com.aquima.interactions.mapping.impl.MappingAction action) This method can be used to set the action that is used when no target instance could be found.com.aquima.interactions.mapping.ds.IEntityMappingDS
This method returns a data source implementation based on this template.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
EntityMappingTemplate
-
-
Method Details
-
toDataSource
public com.aquima.interactions.mapping.ds.IEntityMappingDS toDataSource()This method returns a data source implementation based on this template.- Returns:
- data source implementation based on this template.
-
getTargetName
-
addAttributeMapping
This method can be used to add an attribute mapping to this mapping.- Parameters:
targetAttribute
- The name of the target attribute.- Returns:
- The attribute mapping template that is added to this mapping.
-
getNoTargetMatchAction
protected com.aquima.interactions.mapping.impl.MappingAction getNoTargetMatchAction() -
setNoTargetMatchAction
public void setNoTargetMatchAction(com.aquima.interactions.mapping.impl.MappingAction action) This method can be used to set the action that is used when no target instance could be found.- Parameters:
action
- The mapping action.
-
getNoSourceMatchAction
protected com.aquima.interactions.mapping.impl.MappingAction getNoSourceMatchAction() -
setNoSourceMatchAction
public void setNoSourceMatchAction(com.aquima.interactions.mapping.impl.MappingAction action) This method can be used to set the action that is used when no source instance could be found.- Parameters:
action
- The mapping action.
-
getMatchAction
protected com.aquima.interactions.mapping.impl.MappingAction getMatchAction() -
setMatchAction
public void setMatchAction(com.aquima.interactions.mapping.impl.MappingAction action) This method can be used to set the action that is used the source and target instance match.- Parameters:
action
- The mapping action.
-
addInstanceMatchCondition
public void addInstanceMatchCondition(String sourceExpression, com.aquima.interactions.mapping.ds.MatchConditionOperator matchOperator, String targetExpression) This method can be used to add a match condition to this mapping.- Parameters:
sourceExpression
- The expression evaluated in the source.matchOperator
- The operator that is used to compare the sourceExpression with the targetExpression.targetExpression
- The expression evaluated in the target.
-
addSourceContextExpression
This method can be used to add a context expression.- Parameters:
sourceContextExpression
- The expression that results in instance(s) to activate instances for easy value mapping evaluation.
-
getCondition
-
setCondition
This method can be used to make this mapping conditional.- Parameters:
condition
- The condition.
-
getAttributeMappings
-
getMatchConditions
-
getSourceEntityExpression
-
getSourceContextExpressions
-