Interface ElementTransformation


@OpenApiAll public interface ElementTransformation
Performs transformation for given model element using the provided VariationPoint to know how to transform
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canTransform(VariationPoint variationPoint)
     
    default boolean
    transform(VariationPoint variationPoint)
    Deprecated.
    use com.nomagic.magicdraw.variants.transformation.ElementTransformation#transform(com.nomagic.magicdraw.variants.variationpoints.VariationPoint, com.nomagic.magicdraw.variants.transformation.TransformationParameters)
    default boolean
    transform(VariationPoint variationPoint, TransformationParameters parameters)
    Changes the model element.
  • Method Details

    • canTransform

      boolean canTransform(VariationPoint variationPoint)
      Parameters:
      variationPoint - defines element and its feature that is being transformed
      Returns:
      true if this transformation object should be used to transform the given variationPoint
    • transform

      @Deprecated default boolean transform(VariationPoint variationPoint)
      Deprecated.
      use com.nomagic.magicdraw.variants.transformation.ElementTransformation#transform(com.nomagic.magicdraw.variants.variationpoints.VariationPoint, com.nomagic.magicdraw.variants.transformation.TransformationParameters)
      Changes the model element. Change and element are described by the provided variation point. This method is always called in an open session.
      Parameters:
      variationPoint - defines feature of the element that is being transformed
      Returns:
      true if variation point was transformed, false if transformation failed for any reason. Failure details should be at least printed to MDLog
    • transform

      default boolean transform(VariationPoint variationPoint, @CheckForNull TransformationParameters parameters)
      Changes the model element. Change and element are described by the provided variation point. This method is always called in an open session.
      Parameters:
      variationPoint - defines feature of the element that is being transformed
      parameters - additional transformation parameters
      Returns:
      true if variation point was transformed, false if transformation failed for any reason. Failure details should be at least printed to MDLog