Class ElementTransformationFactory

java.lang.Object
com.nomagic.magicdraw.variants.transformation.ElementTransformationFactory

@OpenApiAll public class ElementTransformationFactory extends Object
Extendable ElementTransformation factory, used during variant realization transformation. Should only be explicitly used to register/unregister custom ElementTransformation objects
  • Constructor Details

    • ElementTransformationFactory

      public ElementTransformationFactory()
  • Method Details

    • 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: