Class AttributeMappingDefinition
java.lang.Object
com.aquima.interactions.mapping.impl.AttributeMappingDefinition
- All Implemented Interfaces:
IAttributeMappingDefinition
,Serializable
Contains the definition of a mapping on the Attribute level.
- Since:
- 7.1
- Author:
- i.de.jong, Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeMappingDefinition
(IAttributeMappingDS datasource, IEntityDefinition targetEntity, IExpressionParser parser) Constructs an attribute mapping definition from a data source. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name of tthe attribute from the source should be mapped to.This method return the optional value mappings.toString()
-
Constructor Details
-
AttributeMappingDefinition
public AttributeMappingDefinition(IAttributeMappingDS datasource, IEntityDefinition targetEntity, IExpressionParser parser) Constructs an attribute mapping definition from a data source. This method requires the (partially) initialized source and target entity defintions.- Parameters:
datasource
- The data source providing the information of the attribute mapping.targetEntity
- The target entity definitionparser
- The parser that is used for expression parsing.- Throws:
InitializationException
- This error is thrown when structural errors are encountered during initialization.
-
-
Method Details
-
toString
-
getValueMapping
Description copied from interface:IAttributeMappingDefinition
This method return the optional value mappings.- Specified by:
getValueMapping
in interfaceIAttributeMappingDefinition
- Returns:
- The value mappings, may not be null, but could return an empty array.
-
getTargetAttribute
Description copied from interface:IAttributeMappingDefinition
This method returns the name of tthe attribute from the source should be mapped to. In case of a relation, this method returns the name of the target the instance(s) from the relation should be mapped to. The target may be either a name of a relation or a name of an entity (singleton or not). In case the target indicates another relation attribute, the entity of the target should be included.- Specified by:
getTargetAttribute
in interfaceIAttributeMappingDefinition
- Returns:
- The name of the attribute from the source should be mapped to.
-