|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDerivedTypedElementManager
Used to evaluate derived typed elements through their queries.
| Field Summary | |
|---|---|
static IDerivedTypedElementManager |
INSTANCE
|
| Method Summary | ||
|---|---|---|
|
batchEvaluate(DerivedTypedElement derivedTE,
java.util.Collection<? extends EObject> sources,
java.util.List<ParameterValue> parameterValues,
java.lang.Class<T> resultType,
IFacetManager facetManager)
Evaluates a derived typed element on a list of model elements in a single call. |
|
java.lang.Object |
evaluate(DerivedTypedElement derivedTE,
EObject source,
java.util.List<ParameterValue> parameterValues,
IFacetManager facetManager)
Evaluates a derived typed element on a model element. |
|
java.lang.Object |
evaluate(Query query,
EObject source,
java.util.List<ParameterValue> parameterValues,
IFacetManager facetManager)
Evaluates a query on a model element. |
|
|
evaluateMultiValued(DerivedTypedElement derivedTE,
EObject source,
java.util.List<ParameterValue> parameterValues,
java.lang.Class<T> resultType,
IFacetManager facetManager)
Evaluates a multi-valued derived typed element on a model element. |
|
|
evaluateSingleValued(DerivedTypedElement derivedTE,
EObject source,
java.util.List<ParameterValue> parameterValues,
java.lang.Class<T> resultType,
IFacetManager facetManager)
Evaluates a single valued derived typed element on a model element. |
|
| Field Detail |
|---|
static final IDerivedTypedElementManager INSTANCE
| Method Detail |
|---|
java.lang.Object evaluate(DerivedTypedElement derivedTE,
EObject source,
java.util.List<ParameterValue> parameterValues,
IFacetManager facetManager)
throws DerivedTypedElementException
Note: this method does not return a typed result, and it does not
check the result type. Use
evaluateSingleValued or
evaluateMultiValued instead if you want a typed and type-checked result.
derivedTE - the derived typed element to evaluatesource - the model element on which the derived typed element must be
evaluatedparameterValues - the arguments of the derived typed element (in the case of a
FacetOperation; can be null if there are
no parameters)
DerivedTypedElementException -
java.lang.Object evaluate(Query query,
EObject source,
java.util.List<ParameterValue> parameterValues,
IFacetManager facetManager)
throws DerivedTypedElementException
DerivedTypedElements (which contains a query) instead of trying to evaluate a Query directly.
Since the source type, return type and multiplicity of a query are carried by the DerivedTypedElement
that normally contains it, this method doesn't check the source type, return type or multiplicity.
query - the query to evaluatesource - the model element on which the query must be evaluatedparameterValues - the arguments of the query (in the case of a query for a FacetOperation; can be
null if there are no parameters)
DerivedTypedElementException - if the evaluation failed
<T> T evaluateSingleValued(DerivedTypedElement derivedTE,
EObject source,
java.util.List<ParameterValue> parameterValues,
java.lang.Class<T> resultType,
IFacetManager facetManager)
throws DerivedTypedElementException
derivedTE - the derived typed element to evaluatesource - the model element on which the derived typed element is
evaluatedparameterValues - the arguments of the derived typed element (in the case of a
FacetOperation; can be null if there are
no parameters)resultType - the type that the returned value must have
DerivedTypedElementException -
<T> java.util.List<T> evaluateMultiValued(DerivedTypedElement derivedTE,
EObject source,
java.util.List<ParameterValue> parameterValues,
java.lang.Class<T> resultType,
IFacetManager facetManager)
throws DerivedTypedElementException
derivedTypedElement - the derived typed element to evaluatesource - the model element on which the derived typed element must be
evaluatedparameterValues - the arguments of the derived typed element (in the case of a
FacetOperation; can be null if there are
no parameters)resultType - the type that the returned value must have
DerivedTypedElementException -
<T extends ETypedElementResult> java.util.List<T> batchEvaluate(DerivedTypedElement derivedTE,
java.util.Collection<? extends EObject> sources,
java.util.List<ParameterValue> parameterValues,
java.lang.Class<T> resultType,
IFacetManager facetManager)
throws DerivedTypedElementException
derivedTE - the derived typed element to evaluatesources - the model elements on which the derived typed element must be
evaluatedparameterValues - the arguments of the derived typed element (in the case of a
FacetOperation; can be null if there are
no parameters)resultType - the expected type of the returned list:
DerivedTypedElementEObjectResult if the
DerivedTypedElement is a single-valued
EReference or EOperation that returns EObjects
DerivedTypedElementEObjectListResult if the
DerivedTypedElement is a multi-valued
EReference or EOperation that returns EObjects
DerivedTypedElementPrimitiveTypeResult if the
DerivedTypedElement is a single-valued
EAttribute or EOperation that returns a
primitive type value
DerivedTypedElementPrimitiveTypeListResult if the
DerivedTypedElement is a multi-valued
EAttribute or EOperation that returns a list
of primitive type values
DerivedTypedElementException -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||