Package com.aquima.interactions.mapping
Interface IMapping
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
Mapping
The mapping interface defines the methods that may be used to map a profile to another profile.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the definitions of this profile mapper.void
update
(IMappingContext sourceMappingContext, IProfile target, IDebugger debugger) 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, IDebugger debugger) This method may be used to update the target profile using the definitions from the source profile.
-
Method Details
-
getDefinitions
IMappingDefinition getDefinitions()This method returns the definitions of this profile mapper.- Returns:
- The mapping definitions, never null.
-
update
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- 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.debugger
- A debugger instance that is attached, may be null.- Throws:
AppException
- This exception is thrown when the update operation could not be performed.
-
update
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
.- 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 ondebugger
- A debugger instance that is attached, may be null.- Throws:
AppException
- This exception is thrown when the update operation could not be performed.
-
update
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- 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.debugger
- A debugger instance that is attached, may be null.- Throws:
AppException
- This exception is thrown when the update operation could not be performed.
-