public interface Query
Modifier and Type | Method and Description |
---|---|
boolean |
checkBoxed(java.lang.Iterable<?> boxedObjects)
Determines whether all of the boxedObjects satisfy the query.
|
boolean |
checkBoxed(java.lang.Object boxedObject)
Evaluates the query on a boxedObject.
|
boolean |
checkEcore(java.lang.Iterable<?> ecoreObjects)
Determines whether all of the ecoreObjects satisfy the query.
|
boolean |
checkEcore(java.lang.Object ecoreObject)
Evaluates the query on an ecoreObject.
|
java.util.List<?> |
evaluateBoxed(java.lang.Iterable<?> boxedObjects)
Evaluates the query on each of boxedObjects to return a list of boxedResults.
|
java.lang.Object |
evaluateBoxed(java.lang.Object boxedObject)
Evaluates the query on the boxedObject to return a boxedResult.
|
org.eclipse.emf.common.util.EList<?> |
evaluateEcore(java.lang.Class<?> instanceClass,
java.lang.Iterable<?> ecoreObjects)
Evaluates the query on each of ecoreObjects to return a list of ecoreResults coerced, if non-null, to instanceClass.
|
java.lang.Object |
evaluateEcore(java.lang.Class<?> instanceClass,
java.lang.Object ecoreObject)
Evaluates the query on the ecoreObject to return an ecoreResult coerced, if non-null, to instanceClass.
|
org.eclipse.emf.common.util.EList<?> |
evaluateEcore(java.lang.Iterable<?> ecoreObjects)
Evaluates the query on each of ecoreObjects to return a list of ecoreResults using Integer/Double for numerics.
|
java.lang.Object |
evaluateEcore(java.lang.Object ecoreObject)
Evaluates the query on the ecoreObject to return an ecoreResult using Integer/Double for numerics.
|
java.lang.Object |
evaluateUnboxed(java.lang.Object unboxedObject)
Evaluates the query on the unboxedObject to return an unboxedResult.
|
EvaluationEnvironment |
getEvaluationEnvironment(java.lang.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. |
java.lang.String |
queryText()
Translates the query back to an OCL text string.
|
<T> java.util.List<T> |
rejectEcore(java.lang.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> java.util.List<T> |
selectEcore(java.lang.Iterable<T> ecoreObjects)
Determines the subset of ecoreObjects that satisfy the query.
|
boolean checkBoxed(@Nullable java.lang.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(@Nullable java.lang.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(@NonNull java.lang.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(@NonNull java.lang.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
, otherwise@Nullable java.lang.Object evaluateBoxed(@Nullable java.lang.Object boxedObject)
@NonNull java.util.List<?> evaluateBoxed(@NonNull java.lang.Iterable<?> boxedObjects)
@Nullable java.lang.Object evaluateEcore(@Nullable java.lang.Object ecoreObject) throws EvaluationException
EvaluationException
@Nullable java.lang.Object evaluateEcore(@Nullable java.lang.Class<?> instanceClass, @Nullable java.lang.Object ecoreObject) throws EvaluationException
EvaluationException
@NonNull org.eclipse.emf.common.util.EList<?> evaluateEcore(@NonNull java.lang.Iterable<?> ecoreObjects)
@NonNull org.eclipse.emf.common.util.EList<?> evaluateEcore(@Nullable java.lang.Class<?> instanceClass, @NonNull java.lang.Iterable<?> ecoreObjects)
@Nullable java.lang.Object evaluateUnboxed(@Nullable java.lang.Object unboxedObject)
@NonNull EvaluationEnvironment getEvaluationEnvironment(@Nullable java.lang.Object unboxedObject)
@NonNull OCLExpression getExpression()
java.lang.String queryText()
@NonNull <T> java.util.List<T> rejectEcore(@NonNull java.lang.Iterable<T> ecoreObjects)
ecoreObjects
- a list of objects to evaluate the constraint onobjects
that
do not satisfy the constraintType resultType()
Boolean
.@NonNull <T> java.util.List<T> selectEcore(@NonNull java.lang.Iterable<T> ecoreObjects)
ecoreObjects
- a list of objects to evaluate the constraint onobjects
that
satisfy the constraint