Class 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 Detail

      • ElementTransformationFactory

        public ElementTransformationFactory()
    • 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