Interface ModelTransformation
-
- All Known Implementing Classes:
AnyToAnyModelTransformation
@OpenApiAll public interface ModelTransformation
Interface for model transformation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setTask(Task task)
Sets task for transformation.Package
transform(java.util.Collection objects, ModelTransformationInfo info, TypeMapProfile typeMap, PropertyManager propertyManager, Package destination)
Performs transformation on specific set of objectsvoid
updateTransform(Package transformationPackage, TypeMapProfile typeMap, PropertyManager propertyManager, boolean syncDestination)
Updates transformation on specific set of objects
-
-
-
Method Detail
-
transform
Package transform(@CheckForNull java.util.Collection objects, @CheckForNull ModelTransformationInfo info, @CheckForNull TypeMapProfile typeMap, PropertyManager propertyManager, @CheckForNull Package destination) throws ReadOnlyElementException
Performs transformation on specific set of objects- Parameters:
objects
- set of objects to transforminfo
- model transformation infotypeMap
- type map profile to use for transformation, null for nonepropertyManager
- transformation propertiesdestination
- destination model packages, null for transformation in place- Returns:
- transformation model package (where transformation links are stored)
- Throws:
ReadOnlyElementException
- in case target model elements are read-only
-
updateTransform
void updateTransform(Package transformationPackage, @CheckForNull TypeMapProfile typeMap, PropertyManager propertyManager, boolean syncDestination) throws ReadOnlyElementException
Updates transformation on specific set of objects- Parameters:
transformationPackage
- package containing transformation linkstypeMap
- type map profile to use for transformation, null for nonepropertyManager
- transformation propertiessyncDestination
- true for destination overwrite- Throws:
ReadOnlyElementException
- in case target model elements are read-only
-
setTask
void setTask(Task task)
Sets task for transformation. Transformation can use Task for accesing progress status and etc.- Parameters:
task
- transformation task
-
-