Class MappingTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.mapping.MappingTemplate

public class MappingTemplate extends AbstractReportingTemplate
Template that can be used to initialize a mapping between two application models.
Since:
7.1
Author:
O. Kerpershoek
  • Constructor Details

    • MappingTemplate

      public MappingTemplate()
      Constructs a new empty mapping template with a default name.
    • MappingTemplate

      public MappingTemplate(String name)
      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 mapping
      report - 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

      protected Collection<EntityMappingTemplate> 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

      public String getName()
    • setSourceModuleName

      public void setSourceModuleName(String moduleName)
      Method to set the module name of the source model.
      Parameters:
      moduleName - The source module name.
    • setTargetModuleName

      public void setTargetModuleName(String moduleName)
      Method to set the module name of the target model.
      Parameters:
      moduleName - The target module name.
    • getSourceName

      protected String getSourceName()
    • getTargetName

      protected String getTargetName()