Interface ModelTransformation
- All Known Implementing Classes:
AnyToAnyModelTransformation
@OpenApiAll
public interface ModelTransformation
Interface for model transformation.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets task for transformation.transform
(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 Details
-
transform
Package transform(@CheckForNull 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
Sets task for transformation. Transformation can use Task for accesing progress status and etc.- Parameters:
task
- transformation task
-