|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.papyrus.emf.facet.query.ocl.core.util.OclQueryUtil
public final class OclQueryUtil
All necessary methods for the creation and evaluation of OCL expressions.
| Method Summary | |
|---|---|
static boolean |
compareClassifierTypes(EClassifier firstType,
EClassifier secondType)
Compare the two types and return if they are equivalents. |
static |
createOCLExpression(EClassifier context,
java.lang.String expression)
Create an OCLExpression according to a string. |
static java.lang.Object |
evaluateQuery(EClassifier context,
Evaluate the expression in parameter. |
static java.lang.Object |
evaluateQuery(EClassifier context,
Evaluate the expression in parameter on the specifics objects. |
static java.lang.Object |
evaluateQuery(EClassifier context,
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 |
getEvaluationEvironment()
|
static java.lang.Object |
getExpressionType(
|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public staticgetEvaluationEvironment()
public static void setHelperInstanceContext(java.lang.Object context)
context - the context of the helper.public staticcreateOCLExpression(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,
oclExpression)
oclExpression - the expression to evaluate.
public static java.lang.Object evaluateQuery(EClassifier context,
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,
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(expression)
exp -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||