Class ExpressionExporter

java.lang.Object
com.nomagic.magicdraw.mbple.expression.ExpressionExporter

@OpenApiAll public class ExpressionExporter extends Object
  • Field Details

  • Constructor Details

    • ExpressionExporter

      public ExpressionExporter()
  • Method Details

    • getExpressionString

      public static String getExpressionString(Constraint variationPoint)
      Returns string representation of an expression used to evaluate any element with this variation point
      Parameters:
      variationPoint - variation point element
      Returns:
      readable expression string of this variation point. If expression is not explicitly typed in, the string is implicitly synthesized by the connected feature impacts. Empty string is returned if there is no expression and feature impacts, or the provided element is not a variation point.
    • getExpressionString

      public static String getExpressionString(Comment elementValueSpecification)
      Returns string representation of an expression used to evaluate any element with this variation point
      Parameters:
      elementValueSpecification - element value specification owned by some variation point
      Returns:
      readable expression string of the given element value specification If expression is not explicitly typed in, the string is implicitly synthesized by the connected feature impact Empty string is returned if there is no expression and feature impacts, or the provided element is not a variation point.
    • getExpressionLanguage

      public static String getExpressionLanguage(Constraint variationPoint)
      Returns name of the expression language used to define the expression of the given variation point
      Parameters:
      variationPoint - variation point element
      Returns:
      language of the expression of the provided variation point. If expression is not explicitly typed in, then IMPLICIT_LANGUAGE_NAME is returned.
    • getExpressionLanguage

      public static String getExpressionLanguage(Comment elementValueSpecification)
      Returns name of the expression language used to define the expression of the given element value specification
      Parameters:
      elementValueSpecification - element value specification of an element property/tag variation point
      Returns:
      language of the expression of the provided value specification. If expression is not explicitly typed in, then IMPLICIT_LANGUAGE_NAME is returned.