@OpenApiAll
public interface ModelTransformation
Modifier and Type | Method and Description |
---|---|
void |
setTask(Task task)
Sets task for transformation.
|
Package |
transform(java.util.Collection objects,
ModelTransformationInfo info,
com.nomagic.magicdraw.modeltransformations.TypeMapProfile typeMap,
PropertyManager propertyManager,
Package destination)
Performs transformation on specific set of objects
|
void |
updateTransform(Package transformationPackage,
com.nomagic.magicdraw.modeltransformations.TypeMapProfile typeMap,
PropertyManager propertyManager,
boolean syncDestination)
Updates transformation on specific set of objects
|
Package transform(@CheckForNull java.util.Collection objects, @CheckForNull ModelTransformationInfo info, com.nomagic.magicdraw.modeltransformations.TypeMapProfile typeMap, PropertyManager propertyManager, Package destination) throws ReadOnlyElementException
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 placeReadOnlyElementException
- in case target model elements are read-onlyvoid updateTransform(Package transformationPackage, com.nomagic.magicdraw.modeltransformations.TypeMapProfile typeMap, PropertyManager propertyManager, boolean syncDestination) throws ReadOnlyElementException
transformationPackage
- package containing transformation linkstypeMap
- type map profile to use for transformation, null for nonepropertyManager
- transformation propertiessyncDestination
- true for destination overwriteReadOnlyElementException
- in case target model elements are read-onlyvoid setTask(Task task)
task
- transformation task