|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IQueryImplementation
Interface implemented by all EMF Facet query evaluators.
A query evaluator may choose to implement IQueryCollectionImplementation instead if it wants to improve the
performance of evaluation on collections of elements.
| Method Summary | |
|---|---|
java.lang.Object |
getValue(Query query,
DerivedTypedElement feature,
EObject source,
java.util.List<ParameterValue> parameterValues,
IFacetManager facetManager)
This method must be implemented by each sub class to evaluate a query |
boolean |
isCheckResultType()
Return whether to check the type of the query result after its evaluation |
void |
setValue(Query query,
DerivedTypedElement feature,
EObject source,
java.util.List<ParameterValue> parameterValues,
java.lang.Object newValue)
This method must be implemented by each sub class that allows to set the value of a derivedTypedElement using a query |
| Method Detail |
|---|
java.lang.Object getValue(Query query,
DerivedTypedElement feature,
EObject source,
java.util.List<ParameterValue> parameterValues,
IFacetManager facetManager)
throws DerivedTypedElementException
query - The query to evaluatefeature - The feature or operation to get on the sourcesource - The model element on which the query is evaluatedparameterValues - The derived typed element's query parameter values (in the case of a FacetOperation); can be
null
DerivedTypedElementException - if the query could not be evaluated correctly to get the value
void setValue(Query query,
DerivedTypedElement feature,
EObject source,
java.util.List<ParameterValue> parameterValues,
java.lang.Object newValue)
throws DerivedTypedElementException
query - The query that sets the valuefeature - The derived typed element to setsource - The model element on which the derived typed element must be setparameterValues - The query parameter values (in the case of a FacetOperation); can be nullnewValue - the value to set on the derived typed element
DerivedTypedElementException - if the query could not be evaluated correctly to set the valueboolean isCheckResultType()
Normally, this is true, but the query evaluator can choose to skip the check, for example if the
return type of the query can't be loaded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||