Class ExpressionExporter
java.lang.Object
com.nomagic.magicdraw.mbple.expression.ExpressionExporter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getExpressionLanguage
(Comment elementValueSpecification) Returns name of the expression language used to define the expression of the given element value specificationstatic String
getExpressionLanguage
(Constraint variationPoint) Returns name of the expression language used to define the expression of the given variation pointstatic String
getExpressionString
(Comment elementValueSpecification) Returns string representation of an expression used to evaluate any element with this variation pointstatic String
getExpressionString
(Constraint variationPoint) Returns string representation of an expression used to evaluate any element with this variation point
-
Field Details
-
IMPLICIT_LANGUAGE_NAME
- See Also:
-
-
Constructor Details
-
ExpressionExporter
public ExpressionExporter()
-
-
Method Details
-
getExpressionString
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
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
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
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.
-