org.eclipse.emf.facet.efacet.core.query
Interface IDerivedTypedElementImplementation

All Known Subinterfaces:
IDerivedTypedElementCollectionImplementation

Deprecated. replaced by IQueryImplementation. https://bugs.eclipse.org/bugs/show_bug.cgi?id=377058.

@Deprecated
public interface IDerivedTypedElementImplementation

Interface implemented by all EMF Facet derived typed element evaluators.

A derived typed element evaluator may choose to implement IDerivedTypedElementCollectionImplementation instead if it wants to improve the performance of evaluation on collections of elements.

Since:
0.2

Method Summary
 boolean getCheckResultType()
          Deprecated. Return whether to check the type of the derived typed element result after its evaluation
 java.lang.Object getValue(DerivedTypedElement derivedTypedElement, EObject source, java.util.List<ParameterValue> parameterValues, IFacetManager facetManager)
          Deprecated. This method must be implemented by each sub class to evaluate a derived typed element
 void setValue(DerivedTypedElement derivedTypedElement, EObject source, java.util.List<ParameterValue> parameterValues, java.lang.Object newValue)
          Deprecated. This method must be implemented by each sub class to set the value of a derived typed element
 

Method Detail

getValue

java.lang.Object getValue(DerivedTypedElement derivedTypedElement,
                          EObject source,
                          java.util.List<ParameterValue> parameterValues,
                          IFacetManager facetManager)
                          throws DerivedTypedElementException
Deprecated. 
This method must be implemented by each sub class to evaluate a derived typed element

Parameters:
derivedTypedElement - The derived typed element to evaluate
source - The model element on which the derived typed element is evaluated
parameterValues - The derived typed element's query parameter values (in the case of a FacetOperation), can be null
Returns:
the result, which can be either a single object or a collection of values depending on the multiplicity of the given derived typed element
Throws:
DerivedTypedElementException - if the query of the derived typed element could not be evaluated correctly to get the value

setValue

void setValue(DerivedTypedElement derivedTypedElement,
              EObject source,
              java.util.List<ParameterValue> parameterValues,
              java.lang.Object newValue)
              throws DerivedTypedElementException
Deprecated. 
This method must be implemented by each sub class to set the value of a derived typed element

Parameters:
derivedTypedElement - The derived typed element to set
source - The model element on which the derived typed element is set
parameterValues - The derived typed element's query parameter values (in the case of a FacetOperation), can be null
newValue - the value to set on the derived typed element
Throws:
DerivedTypedElementException - if the query of the derived typed element could not be evaluated correctly to set the value

getCheckResultType

boolean getCheckResultType()
Deprecated. 
Return whether to check the type of the derived typed element result after its evaluation

Normally, this is true, but the derived typed element evaluator can choose to skip the check, for example if the return type of the query can't be loaded.

Returns:
whether to check the type of the derived typed element result after its evaluation