Class ElementTransformationFactory
- java.lang.Object
-
- com.nomagic.magicdraw.variants.transformation.ElementTransformationFactory
-
@OpenApiAll public class ElementTransformationFactory extends java.lang.Object
Extendable ElementTransformation factory, used during variant realization transformation. Should only be explicitly used to register/unregister custom ElementTransformation objects
-
-
Constructor Summary
Constructors Constructor Description ElementTransformationFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementTransformation
getTransformation(VariationPoint variationPoint)
Creates ElementTransformation based on given element and @see VariationPointstatic void
registerElementTransformation(ElementTransformation transformation)
Register custom transformation to transform elements during variant realization In case several registered transformations can transform some element, then latest registered transformation will be used.static void
unregisterElementTransformation(ElementTransformation transformation)
-
-
-
Method Detail
-
registerElementTransformation
public static void registerElementTransformation(ElementTransformation transformation)
Register custom transformation to transform elements during variant realization In case several registered transformations can transform some element, then latest registered transformation will be used.- Parameters:
transformation
- element transformation used during variant realization
-
unregisterElementTransformation
public static void unregisterElementTransformation(ElementTransformation transformation)
-
getTransformation
@CheckForNull public ElementTransformation getTransformation(VariationPoint variationPoint)
Creates ElementTransformation based on given element and @see VariationPoint- Parameters:
variationPoint
- variation point to evaluate given element- Returns:
- element transformation for given element or null - no transformation
- See Also:
ElementTransformation
-
-