|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IQueryCollectionImplementation. https://bugs.eclipse.org/bugs/show_bug.cgi?id=377057.
@Deprecated public interface IDerivedTypedElementCollectionImplementation
This interface can be implemented by EMF Facet derived typed element implementations that want to handle multiple evaluation themselves, presumably to improve the performance of the evaluation.
If only IDerivedTypedElementImplementation is implemented, then the framework will
perform multiple-evaluation by calling the single evaluation multiple times, which may be slow in
the case of high-latency implementations.
| Method Summary | |
|---|---|
java.util.List<? extends ETypedElementResult> |
getValues(DerivedTypedElement derivedTypedElement,
java.util.Collection<? extends EObject> sources,
java.util.List<ParameterValue> arguments)
Deprecated. This method must be implemented by each sub-class to evaluate the query of a derived typed element on a collection of elements. |
void |
setValues(DerivedTypedElement derivedTypedElement,
java.util.Collection<? extends EObject> sources,
java.util.List<ParameterValue> arguments,
java.util.List<? extends java.lang.Object> newValues)
Deprecated. This method must be implemented by each sub-class to set the values of a collection of elements. |
| Methods inherited from interface org.eclipse.emf.facet.efacet.core.query.IDerivedTypedElementImplementation |
|---|
getCheckResultType, getValue, setValue |
| Method Detail |
|---|
java.util.List<? extends ETypedElementResult> getValues(DerivedTypedElement derivedTypedElement,
java.util.Collection<? extends EObject> sources,
java.util.List<ParameterValue> arguments)
throws DerivedTypedElementException
This method should throw a DerivedTypedElementException only if the DerivedTypedElement is
incorrect. But it must not throw an exception if the evaluation of one element fails. Instead, it must set the
exception on the corresponding result (AbstractDerivedTypedElementResult#setException(Throwable)).
derivedTypedElement - The derived typed element for which to get the valuessources - The model elements on which the derived typed element is evaluatedarguments - The parameter values for the derived typed element (in the case of a FacetOperation); can be null
DerivedTypedElementPrimitiveTypeResult if the derived typed element is
single-valued and returns a primitive type DerivedTypedElementPrimitiveTypeListResult if the derived typed element is multi-valued and
returns a primitive type DerivedTypedElementEObjectResult if the derived typed
element is single-valued and returns a model element DerivedTypedElementEObjectListResult if the derived typed element is multi-valued and returns
model elements
DerivedTypedElementException - if the given derivedTypedElement is incorrect
void setValues(DerivedTypedElement derivedTypedElement,
java.util.Collection<? extends EObject> sources,
java.util.List<ParameterValue> arguments,
java.util.List<? extends java.lang.Object> newValues)
throws DerivedTypedElementException
query - The query to evaluatesource - The model elements on which the query is evaluatedarguments - The parameter values for the derived typed element (in the case of a FacetOperation); can be
nullnewValues - the new values for the sources; the size of this list must match the size of the list of sources
DerivedTypedElementException - if the given derivedTypedElement is incorrect
DerivedTypedElementEvaluationException - if the query of the derived typed element could not be evaluated correctly
java.lang.IllegalArgumentException - if the given list of values does not match the list of sources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||