Class Mapping
java.lang.Object
com.aquima.interactions.mapping.impl.Mapping
- All Implemented Interfaces:
IMapping
,Serializable
Maps two profiles based on a mapping definition.
- Since:
- 7.1
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMapping
(IMappingDefinition definition) Construct a mapping based on mapping definitions. -
Method Summary
Modifier and TypeMethodDescriptionThis 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
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 Details
-
Mapping
Construct a mapping based on mapping definitions.- Parameters:
definition
- The Mapping definitions containing information how to map.
-
-
Method Details
-
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
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
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
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
-