Class AttributeMappingDefinition
- java.lang.Object
-
- com.aquima.interactions.mapping.impl.AttributeMappingDefinition
-
- All Implemented Interfaces:
IAttributeMappingDefinition
,Serializable
public class AttributeMappingDefinition extends Object implements IAttributeMappingDefinition
Contains the definition of a mapping on the Attribute level.- Since:
- 7.1
- Author:
- i.de.jong, Jon van Leuven
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttributeMappingDefinition​(IAttributeMappingDS datasource, IEntityDefinition targetEntity, IExpressionParser parser)
Constructs an attribute mapping definition from a data source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeReference
getTargetAttribute()
This method returns the name of the attribute the attribute from the source should be mapped to.IValueMappingDefinition[]
getValueMapping()
This method return the optional value mappings.String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
getValueMapping
public IValueMappingDefinition[] 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
public AttributeReference getTargetAttribute()
Description copied from interface:IAttributeMappingDefinition
This method returns the name of the attribute the 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 the attribute from the source should be mapped to.
-
-