Class VariantRealizationTransformation

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

@OpenApiAll public class VariantRealizationTransformation extends Object
Performs model transformation in scope using given VariationPointsProvider
  • Constructor Details

    • VariantRealizationTransformation

      public VariantRealizationTransformation()
  • Method Details

    • transform

      public static void transform(VariationPointsProvider provider, 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, 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, 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, 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, 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, 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, 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.