|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Query interface with the
OCL class, instead.
public interface Query
An OCL constraint or query. The query is validated for correctness when it is created. The query can subsequently be evaluated on a single object or on multiple objects in one operation.
| Field Summary | |
|---|---|
static String |
copyright
Deprecated. |
| Method Summary | |
|---|---|
boolean |
check(List objects)
Deprecated. Determines whether all of the input objects satisfy the query. |
boolean |
check(Object obj)
Deprecated. Evaluates the query on an object. |
Object |
evaluate()
Deprecated. Evaluates the query. |
List |
evaluate(List objects)
Deprecated. Evaluates the query on the input list. |
Object |
evaluate(Object obj)
Deprecated. Evaluates the query on the object. |
EvaluationEnvironment |
getEvaluationEnvironment()
Deprecated. Obtains the evaluation environment that I use to evaluate OCL expressions. |
OCLExpression |
getExpression()
Deprecated. Returns the value of the 'Expression' reference |
Map |
getExtentMap()
Deprecated. Obtains the mapping of EClassifiers representing OCL types to
their extents (set of all instances). |
String |
queryText()
Deprecated. Translates the query back to an OCL text string. |
List |
reject(List objects)
Deprecated. Determines the subset of input objects that do not satisfy the query. |
EClassifier |
resultType()
Deprecated. Obtains the OCL result type of the query. |
List |
select(List objects)
Deprecated. Determines the subset of input objects that satisfy the query. |
void |
setEvaluationEnvironment(EvaluationEnvironment env)
Deprecated. Sets the evaluation environment that I use to evaluate OCL expressions. |
void |
setExtentMap(Map extentMap)
Deprecated. Sets the mapping of EClassifiers representing OCL types to
their extents (set of all instances). |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
|---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
|---|
eAdapters, eDeliver, eNotify, eSetDeliver |
| Field Detail |
|---|
static final String copyright
| Method Detail |
|---|
void setEvaluationEnvironment(EvaluationEnvironment env)
env - my environmentEvaluationEnvironment getEvaluationEnvironment()
Object evaluate(Object obj)
obj - an Object
EObjects, Java objects, a mixture, or even null.
In any case, the results conform to the expression's
result typeevaluate(),
evaluate(List),
resultType()Object evaluate()
allInstances()
exclusively for evaluation.
EObjects, Java objects, a mixture, or even null.
In any case, the results conform to the expression's
result typeresultType()boolean check(Object obj)
obj - an Object or null if the query
does not require an OCL 'self' context
true or false according to
whether the constraint is metcheck(List)List evaluate(List objects)
objects - a list of objects to evaluate the query on
objects. Note that result elements may, themselves,
be collections of multiple results for a single input object.
In any case, the results conform to the expression's
result typeevaluate(Object),
resultType()boolean check(List objects)
objects - a list of objects to evaluate the constraint on
true if all of the objects satisfy
the constraint (including the trivial case of an empty input list);
false, otherwisecheck(Object)List select(List objects)
objects - a list of objects to evaluate the constraint on
objects that
satisfy the constraintList reject(List objects)
objects - a list of objects to evaluate the constraint on
objects that
do not satisfy the constraintEClassifier resultType()
EClassifier in the user metamodel, or it may represent a core
Java language type (such as Boolean in the case of constraints)
or an OCL data type.
String queryText()
Map getExtentMap()
EClassifiers representing OCL types to
their extents (set of all instances).
EClassifier) to their extents
(List)setExtentMap(Map)OCLExpression getExpression()
If the meaning of the 'Expression' reference isn't clear, there really should be more of a description here...
QueryPackage.getQuery_Expression()void setExtentMap(Map extentMap)
EClassifiers representing OCL types to
their extents (set of all instances).
extentMap - a map of classifiers (EClassifier) to their
extents (List)getExtentMap()
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||