public final class OclQueryUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compareClassifierTypes(EClassifier firstType,
EClassifier secondType)
Compare the two types and return if they are equivalents.
|
static <any> |
createOCLExpression(EClassifier context,
java.lang.String expression)
Create an OCLExpression according to a string.
|
static java.lang.Object |
evaluateQuery(EClassifier context,
<any> oclExpression)
Evaluate the expression in parameter.
|
static java.lang.Object |
evaluateQuery(EClassifier context,
<any> oclExpression,
java.util.List<?> objectsSource)
Evaluate the expression in parameter on the specifics objects.
|
static java.lang.Object |
evaluateQuery(EClassifier context,
<any> oclExpression,
java.lang.Object objectSource)
Evaluate the expression in parameter on the specific object.
|
static EClassifier |
getEClassifier(EClassifier context,
java.lang.Object type)
Return the
EClassifier associated to the type in
parameter. |
static <any> |
getEvaluationEvironment() |
static java.lang.Object |
getExpressionType(<any> expression) |
static java.util.List<Choice> |
getSyntaxHelp(EClassifier context,
java.lang.String expression)
Return a list of syntax choice for the current expression.
|
static void |
setHelperInstanceContext(java.lang.Object context)
Set the helper context.
|
public static <any> getEvaluationEvironment()
public static void setHelperInstanceContext(java.lang.Object context)
context - the context of the helper.public static <any> createOCLExpression(EClassifier context,
java.lang.String expression)
throws ParserException
expression - the expression to create.ParserException - if the string expression isn't well formed.public static java.lang.Object evaluateQuery(EClassifier context,
<any> oclExpression)
oclExpression - the expression to evaluate.public static java.lang.Object evaluateQuery(EClassifier context,
<any> oclExpression,
java.lang.Object objectSource)
oclExpression - the expression to evaluate.objectSource - the object on which evaluate the expression.public static java.lang.Object evaluateQuery(EClassifier context,
<any> oclExpression,
java.util.List<?> objectsSource)
oclExpression - the expression to evaluate.objectsSource - the objects on which evaluate the expression.public static java.util.List<Choice> getSyntaxHelp(EClassifier context,
java.lang.String expression)
expression - the expression.public static EClassifier getEClassifier(EClassifier context,
java.lang.Object type)
EClassifier associated to the type in
parameter.context - the context of the environment.type - the type to find.EClassifier associated. Null if not.public static boolean compareClassifierTypes(EClassifier firstType,
EClassifier secondType)
firstType - the first EClassifier to compare.secondType - the second EClassifier to compare.public static java.lang.Object getExpressionType(<any> expression)
exp -