Class Mapping

    • Constructor Detail

      • Mapping

        public Mapping​(IMappingDefinition definition)
        Construct a mapping based on mapping definitions.
        Parameters:
        definition - The Mapping definitions containing information how to map.
    • Method Detail

      • getDefinitions

        public IMappingDefinition getDefinitions()
        Description copied from interface: IMapping
        This method returns the definitions of this profile mapper.
        Specified by:
        getDefinitions in interface IMapping
        Returns:
        The mapping defintions, never null.
      • update

        public void update​(IProfile source,
                           IProfile target)
        Description copied from interface: IMapping
        This method may be used to update the target profile using the definitions from the source profile. The source profile that is used is considered read-only, and may not be modified by the implementation of this method. Does not create a IMappingReport and doesn't map a justification tree
        Specified by:
        update in interface IMapping
        Parameters:
        source - The source profile containing the instances that should be mapped to the target profile.
        target - The target profile that needs to be updated using the instances from the source profile.
      • update

        public void update​(IMappingContext sourceMappingContext,
                           IProfile target)
        Description copied from interface: IMapping
        This method may be used to update the target profile using the definitions from the source profile. The source profile that is used is considered read-only, and may not be modified by the implementation of this method.Also creates a IMappedJustificationTree on the target profile if specified
        Specified by:
        update in interface IMapping
        Parameters:
        sourceMappingContext - The source context containing the InferenceContext with the instances that should be mapped to the target profile
        target - The target profile that needs to be updated using the instances from the source profile.
      • update

        public void update​(IProfile source,
                           IProfile target,
                           IMappingReport mappingReport)
        Description copied from interface: IMapping
        This method may be used to update the target profile using the definitions from the source profile. The source profile that is used is considered read-only, and may not be modified by the implementation of this method. Also creates a IMappingReport.
        Specified by:
        update in interface IMapping
        Parameters:
        source - The source profile containing the instances that should be mapped to the target profile.
        target - The target profile that needs to be updated using the instances from the source profile.
        mappingReport - the mapping report where the information will be gathered on