public interface IDerivedTypedElementManager
| Modifier and Type | Field and Description |
|---|---|
static IDerivedTypedElementManager |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T extends ETypedElementResult> |
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.
|
<T> java.util.List<T> |
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.
|
<T> T |
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.
|
static final IDerivedTypedElementManager INSTANCE
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 haveDerivedTypedElementException - <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 haveDerivedTypedElementException - <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 -