Class Mapping
- java.lang.Object
-
- com.aquima.interactions.mapping.impl.Mapping
-
- All Implemented Interfaces:
IMapping
,Serializable
public class Mapping extends Object implements IMapping
Maps two profiles based on a mapping definition.- Since:
- 7.1
- Author:
- Jon van Leuven
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Mapping(IMappingDefinition definition)
Construct a mapping based on mapping definitions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMappingDefinition
getDefinitions()
This method returns the definitions of this profile mapper.void
update(IMappingContext sourceMappingContext, IProfile target)
This method may be used to update the target profile using the definitions from the source profile.void
update(IProfile source, IProfile target)
This method may be used to update the target profile using the definitions from the source profile.void
update(IProfile source, IProfile target, IMappingReport mappingReport)
This method may be used to update the target profile using the definitions from the source profile.
-
-
-
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 interfaceIMapping
- 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 aIMappingReport
and doesn't map a justification tree
-
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 aIMappedJustificationTree
on the target profile if specified- Specified by:
update
in interfaceIMapping
- Parameters:
sourceMappingContext
- The source context containing theInferenceContext
with the instances that should be mapped to the target profiletarget
- 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 aIMappingReport
.- Specified by:
update
in interfaceIMapping
- 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
-
-