T - S - public class MappingObject<T,S> extends Object
| Constructor and Description |
|---|
MappingObject(IMappingProvider<T> sourceMappingProvider,
IMappingProvider<S> targetMappingProvider)
Constructor without initArgument for providers
|
MappingObject(String sourceMappingProviderClassName,
Object sourceMappingProviderInitarg,
String targetMappingProviderClassName,
Object targetMappingProviderInitarg)
Constructor with initArgument for providers
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyMapping(IContext context,
T sourceObject,
S targetObject,
Object mappingDefinition)
Used to assign the values of the source object to the target object
|
Object |
getTargetValue(IContext context,
T sourceObject,
Object mappingDefinition,
String targetMappingStructureName)
Gets the value of the target mappingStructure name
|
public MappingObject(IMappingProvider<T> sourceMappingProvider, IMappingProvider<S> targetMappingProvider)
sourceMappingProvider - targetMappingProvider - public MappingObject(String sourceMappingProviderClassName, Object sourceMappingProviderInitarg, String targetMappingProviderClassName, Object targetMappingProviderInitarg)
sourceMappingProviderClassName - sourceMappingProviderInitarg - targetMappingProviderClassName - targetMappingProviderInitarg - public void applyMapping(IContext context, T sourceObject, S targetObject, Object mappingDefinition) throws Exception
context - The execution context.sourceObject - source object.targetObject - target object.mappingDefinition - the value of the mappingComponent.ModuleExceptionWorkflowModuleExceptionExceptionpublic Object getTargetValue(IContext context, T sourceObject, Object mappingDefinition, String targetMappingStructureName)
context - The execution context.sourceObject - source object.mappingDefinition - the value of the mappingComponent.targetMappingStructureName - the name of the targetMappingStructure nameCopyright © 2021 Visiativ Software. All rights reserved.