Class MappingTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.mapping.MappingTemplate
Template that can be used to initialize a mapping between two application models.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new empty mapping template with a default name.MappingTemplate
(String name) Constructs a new empty mapping template.MappingTemplate
(String name, com.aquima.interactions.foundation.report.IInitializationReport report) Constructs a new empty mapping template. -
Method Summary
Modifier and TypeMethodDescriptionaddEntityMapping
(String targetEntityName, String sourceEntityExpression) This method adds an entity mapping to this mapping template.protected Collection
<EntityMappingTemplate> getName()
protected String
protected String
void
setSourceModuleName
(String moduleName) Method to set the module name of the source model.void
setTargetModuleName
(String moduleName) Method to set the module name of the target model.com.aquima.interactions.mapping.ds.IMappingDS
This method returns a data-source implementation based on this template.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
MappingTemplate
public MappingTemplate()Constructs a new empty mapping template with a default name. -
MappingTemplate
Constructs a new empty mapping template.- Parameters:
name
- The name of the mapping
-
MappingTemplate
public MappingTemplate(String name, com.aquima.interactions.foundation.report.IInitializationReport report) Constructs a new empty mapping template.- Parameters:
name
- The name of the mappingreport
- The report that should be used to add errors and warnings to.
-
-
Method Details
-
addEntityMapping
public EntityMappingTemplate addEntityMapping(String targetEntityName, String sourceEntityExpression) This method adds an entity mapping to this mapping template.- Parameters:
targetEntityName
- The name of the target entity to map.sourceEntityExpression
- The expression resulting in instances in the source.- Returns:
- The created entity mapping template.
-
getMappings
-
toDataSource
public com.aquima.interactions.mapping.ds.IMappingDS toDataSource()This method returns a data-source implementation based on this template.- Returns:
- data-source implementation based on this template.
-
getName
-
setSourceModuleName
Method to set the module name of the source model.- Parameters:
moduleName
- The source module name.
-
setTargetModuleName
Method to set the module name of the target model.- Parameters:
moduleName
- The target module name.
-
getSourceName
-
getTargetName
-