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:
  • 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 definition
      parser - The parser that is used for expression parsing.
      Throws:
      InitializationException - This error is thrown when structural errors are encountered during initialization.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValueMapping

      public IValueMappingDefinition[] getValueMapping()
      Description copied from interface: IAttributeMappingDefinition
      This method return the optional value mappings.
      Specified by:
      getValueMapping in interface IAttributeMappingDefinition
      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 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 interface IAttributeMappingDefinition
      Returns:
      The name of the attribute from the source should be mapped to.