Class MappingDefinition
java.lang.Object
com.aquima.interactions.mapping.impl.MappingDefinition
- All Implemented Interfaces:
IMappingDefinition
,Serializable
Internal class containing entity mappings.
- Since:
- 7.1
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMappingDefinition
(IMappingDS datasource, IMetaModel source, IMetaModel target, IExpressionParser sourceExpressionParser, IExpressionParser targetExpressionParser) Constructs the mapping definition with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method returns all the mappings available.getName()
This method returns a unique name of the mapping.This method returns the source model.This method returns the target model.
-
Constructor Details
-
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 Details
-
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
Description copied from interface:IMappingDefinition
This method returns all the mappings available.- Specified by:
getMappings
in interfaceIMappingDefinition
- Returns:
- The available mappings, never null
-
addEntityMapping
-
getSourceModel
Description copied from interface:IMappingDefinition
This method returns the source model.- Specified by:
getSourceModel
in interfaceIMappingDefinition
- Returns:
- The source model, never null.
-
getTargetModel
Description copied from interface:IMappingDefinition
This method returns the target model.- Specified by:
getTargetModel
in interfaceIMappingDefinition
- Returns:
- The target model, never null.
-