public interface IQueryImplementation
A query evaluator may choose to implement IQueryCollectionImplementation
instead if it wants to improve the
performance of evaluation on collections of elements.
Modifier and Type | Method and Description |
---|---|
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
|
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 valuevoid 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 null
newValue
- the value to set on the derived typed elementDerivedTypedElementException
- 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.