@OpenApiAll
public interface VariationPointsProvider
VariantRealizationTransformation
to perform model transformationModifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> |
getVariabilityElements(java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> scope)
Collects elements to be transformed in given scope
|
java.util.Collection<VariationPoint> |
getVariationPoints(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
Creates VariationPoint for given element
|
void |
setUp(com.nomagic.magicdraw.core.Project project,
com.nomagic.magicdraw.properties.PropertyManager propertyManager)
Should be called before the transformation.
|
void |
tearDown(java.util.Collection<VariationPoint> failed)
Automatically called after transformation of all variation points is finished
|
java.lang.String getName()
void setUp(com.nomagic.magicdraw.core.Project project, @CheckForNull com.nomagic.magicdraw.properties.PropertyManager propertyManager)
project
- currently open project that will be transformedpropertyManager
- may contain custom properties specific for this transformationjava.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> getVariabilityElements(java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element> scope)
scope
- scope to collect elements fromjava.util.Collection<VariationPoint> getVariationPoints(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
element
- given elementVariationPointsFactory
void tearDown(java.util.Collection<VariationPoint> failed)
failed
- list of variation points that could not be successfully transformed