public interface Query
Modifier and Type | Method and Description |
---|---|
boolean |
checkBoxed(Iterable<?> boxedObjects)
Determines whether all of the boxedObjects satisfy the query.
|
boolean |
checkBoxed(Object boxedObject)
Evaluates the query on a boxedObject.
|
boolean |
checkEcore(Iterable<?> ecoreObjects)
Determines whether all of the ecoreObjects satisfy the query.
|
boolean |
checkEcore(Object ecoreObject)
Evaluates the query on an ecoreObject.
|
List<?> |
evaluateBoxed(Iterable<?> boxedObjects)
Evaluates the query on each of boxedObjects to return a list of boxedResults.
|
Object |
evaluateBoxed(Object boxedObject)
Evaluates the query on the boxedObject to return a boxedResult.
|
<any> |
evaluateEcore(Class<?> instanceClass,
Iterable<?> ecoreObjects)
Evaluates the query on each of ecoreObjects to return a list of ecoreResults coerced, if non-null, to instanceClass.
|
Object |
evaluateEcore(Class<?> instanceClass,
Object ecoreObject)
Evaluates the query on the ecoreObject to return an ecoreResult coerced, if non-null, to instanceClass.
|
<any> |
evaluateEcore(Iterable<?> ecoreObjects)
Evaluates the query on each of ecoreObjects to return a list of ecoreResults using Integer/Double for numerics.
|
Object |
evaluateEcore(Object ecoreObject)
Evaluates the query on the ecoreObject to return an ecoreResult using Integer/Double for numerics.
|
Object |
evaluateUnboxed(Object unboxedObject)
Evaluates the query on the unboxedObject to return an unboxedResult.
|
EvaluationEnvironment |
getEvaluationEnvironment(Object unboxedObject)
Obtains the evaluation environment that I use to evaluate OCL expressions.
|
OCLExpression |
getExpression()
Obtains the expression that I evaluate (or check as a boolean constraint).
|
OCL |
getOCL()
Obtains the
OCL that created me. |
String |
queryText()
Translates the query back to an OCL text string.
|
<T> List<T> |
rejectEcore(Iterable<T> ecoreObjects)
Determines the subset of ecoreObjects that do not satisfy the
query.
|
Type |
resultType()
Obtains the OCL result type of the query.
|
<T> List<T> |
selectEcore(Iterable<T> ecoreObjects)
Determines the subset of ecoreObjects that satisfy the query.
|
boolean checkBoxed(Object boxedObject)
boxedObject
- an Object
or null
if the query
does not require an OCL 'self' contexttrue
or false
according to
whether the constraint is metboolean checkEcore(Object ecoreObject)
ecoreObject
- an Object
or null
if the query
does not require an OCL 'self' contexttrue
or false
according to
whether the constraint is metboolean checkBoxed(Iterable<?> boxedObjects)
boxedObjects
- a list of objects to evaluate the constraint ontrue
if all of the objects
satisfy
the constraint (including the trivial case of an empty input list);
false
, otherwiseboolean checkEcore(Iterable<?> ecoreObjects)
ecoreObjects
- a list of objects to evaluate the constraint ontrue
if all of the objects
satisfy
the constraint (including the trivial case of an empty input list);
false
, otherwiseObject evaluateBoxed(Object boxedObject)
List<?> evaluateBoxed(Iterable<?> boxedObjects)
Object evaluateEcore(Object ecoreObject) throws EvaluationException
EvaluationException
Object evaluateEcore(Class<?> instanceClass, Object ecoreObject) throws EvaluationException
EvaluationException
<any> evaluateEcore(Iterable<?> ecoreObjects)
<any> evaluateEcore(Class<?> instanceClass, Iterable<?> ecoreObjects)
Object evaluateUnboxed(Object unboxedObject)
EvaluationEnvironment getEvaluationEnvironment(Object unboxedObject)
OCLExpression getExpression()
String queryText()
<T> List<T> rejectEcore(Iterable<T> ecoreObjects)
ecoreObjects
- a list of objects to evaluate the constraint onobjects
that
do not satisfy the constraintType resultType()
Boolean
.<T> List<T> selectEcore(Iterable<T> ecoreObjects)
ecoreObjects
- a list of objects to evaluate the constraint onobjects
that
satisfy the constraintCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.