Class AttributeMappingDefinition

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

      • 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 interface IAttributeMappingDefinition
        Returns:
        The name of the attribute the attribute from the source should be mapped to.