Class VariantRealizationTransformation


  • @OpenApiAll
    public class VariantRealizationTransformation
    extends java.lang.Object
    Performs model transformation in scope using given VariationPointsProvider
    • Constructor Detail

      • VariantRealizationTransformation

        public VariantRealizationTransformation()
    • Method Detail

      • transform

        public static void transform​(VariationPointsProvider provider,
                                     java.util.Collection<Element> scope)
        Parameters:
        provider - defines which model elements are transformable
        scope - root elements(s) that defines the part of the model to transform. Provide primary model(s) to transform the complete project.
      • transform

        public static void transform​(VariationPointsProvider provider,
                                     java.util.Collection<Element> scope,
                                     boolean ignoreElementPermissions)
        Parameters:
        provider - defines which model elements are transformable
        scope - root elements(s) that defines the part of the model to transform. Provide primary model(s) to transform the complete project.
        ignoreElementPermissions - if true, even read only elements be transformed (except for elements from read-only used projects). Doing so is only recommended if the transformation result will not be committed/saved to the edited (current) branch/file.
      • transform

        public static void transform​(VariationPointsProvider provider,
                                     @CheckForNull
                                     ProgressStatus status,
                                     java.util.Collection<Element> scope)
        Parameters:
        provider - defines which model elements are transformable
        status - progress status of the transformation
        scope - root elements(s) that defines the part of the model to transform. Provide primary model(s) to transform the complete project. Doing so is only recommended if the transformation result will not be committed to the edited (current) branch.
      • transform

        public static void transform​(VariationPointsProvider provider,
                                     @CheckForNull
                                     ProgressStatus status,
                                     java.util.Collection<Element> scope,
                                     Notifier notifier)
        Parameters:
        provider - defines which model elements are transformable
        status - progress status of the transformation
        scope - root elements(s) that defines the part of the model to transform. Provide primary model(s) to transform the complete project.
        notifier - notifies users about various abnormal situations when transforming.
      • transform

        public static void transform​(VariationPointsProvider provider,
                                     @CheckForNull
                                     ProgressStatus status,
                                     java.util.Collection<Element> scope,
                                     Notifier notifier,
                                     boolean ignoreElementPermissions)
        Parameters:
        provider - defines which model elements are transformable
        status - progress status of the transformation
        scope - root elements(s) that defines the part of the model to transform. Provide primary model(s) to transform the complete project.
        notifier - notifies users about various abnormal situations when transforming.
        ignoreElementPermissions - if true, even read only elements be transformed (except for elements from read-only used projects). Doing so is only recommended if the transformation result will not be committed/saved to the edited (current) branch/file.
      • transform

        public static void transform​(VariationPointsProvider provider,
                                     @CheckForNull
                                     ProgressStatus status,
                                     java.util.Collection<Element> scope,
                                     Notifier notifier,
                                     TransformationParameters transformationParameters)
        Parameters:
        provider - defines which model elements are transformable
        status - progress status of the transformation
        scope - root elements(s) that defines the part of the model to transform. Provide primary model(s) to transform the complete project.
        notifier - notifies users about various abnormal situations when transforming.
        transformationParameters - transformation parameters
      • transform

        public static void transform​(com.nomagic.magicdraw.variants.transformation.VariantTransformation<? extends VariationPointsProvider> variantTransformation,
                                     @CheckForNull
                                     ProgressStatus status,
                                     java.util.Collection<Element> scope)
        Parameters:
        variantTransformation - the transformation engine that performs the transform
        status - progress status of the transformation
        scope - root elements(s) that defines the part of the model to transform. Provide primary model(s) to transform the complete project.