Class MappingDefinition
- java.lang.Object
-
- com.aquima.interactions.mapping.impl.MappingDefinition
-
- All Implemented Interfaces:
IMappingDefinition
,Serializable
public class MappingDefinition extends Object implements IMappingDefinition
Internal class containing entity mappings.- Since:
- 7.1
- Author:
- Jon van Leuven
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MappingDefinition(IMappingDS datasource, IMetaModel source, IMetaModel target, IExpressionParser sourceExpressionParser, IExpressionParser targetExpressionParser)
Constructs the mapping definition with the required arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEntityMapping(IEntityMappingDefinition def)
IEntityMappingDefinition[]
getMappings()
This method returns all the mappings available.String
getName()
This method returns a unique name of the mapping.IMetaModel
getSourceModel()
This method returns the source model.IMetaModel
getTargetModel()
This method returns the target model.
-
-
-
Constructor Detail
-
MappingDefinition
public MappingDefinition(IMappingDS datasource, IMetaModel source, IMetaModel target, IExpressionParser sourceExpressionParser, IExpressionParser targetExpressionParser)
Constructs the mapping definition with the required arguments.- Parameters:
datasource
- Object providing the mapping information.source
- Model containing the the definition of the source profile.target
- Model containing the definition of the target profile.sourceExpressionParser
- Parser that should be used for expression of source profile.targetExpressionParser
- Parser that should be used for expressions of the target profile.- Throws:
InitializationException
- This exception is thrown when the mapping could not be initialized.
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IMappingDefinition
This method returns a unique name of the mapping.- Specified by:
getName
in interfaceIMappingDefinition
- Returns:
- The unique name, never null or empty.
-
getMappings
public IEntityMappingDefinition[] getMappings()
Description copied from interface:IMappingDefinition
This method returns all the mappings available.- Specified by:
getMappings
in interfaceIMappingDefinition
- Returns:
- The available mappings, never null
-
addEntityMapping
protected void addEntityMapping(IEntityMappingDefinition def)
-
getSourceModel
public IMetaModel getSourceModel()
Description copied from interface:IMappingDefinition
This method returns the source model.- Specified by:
getSourceModel
in interfaceIMappingDefinition
- Returns:
- The source model, never null.
-
getTargetModel
public IMetaModel getTargetModel()
Description copied from interface:IMappingDefinition
This method returns the target model.- Specified by:
getTargetModel
in interfaceIMappingDefinition
- Returns:
- The target model, never null.
-
-