|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFacetManager
This interface allows clients to use the EMF Facet API to get and set the values of virtually
added EReferences and EAttributes, and invoke EOperations.
Derived FacetAttributes and FacetReferences are computed by queries, whereas
non-derived FacetAttributes and EAttributes and EReferences and
FacetReferences are stored in the serialization Resource specified in the
IFacetManagerFactory that created this IFacetManager.
| Method Summary | ||
|---|---|---|
|
batchGetOrInvoke(java.util.Collection<EObject> sources,
ETypedElement query,
java.lang.Class<T> aClass)
|
|
java.util.List<ETypedElementResult> |
batchInvoke(java.util.Collection<EObject> eObjects,
EOperation operation,
java.lang.Object... arguments)
Invoke the given EOperation on each element of the given
collection of EObjects. |
|
java.util.List<FacetSet> |
getManagedFacetSets()
This method returns the list of loaded facet sets. |
|
|
getOrInvoke(EObject element,
ETypedElement query,
java.lang.Class<T> aClass)
|
|
|
getOrInvokeMultiValued(EObject eObject,
ETypedElement feature,
java.lang.Class<T> aClass)
|
|
ResourceSet |
getResourceSet()
|
|
|
invoke(EObject eObject,
EOperation operation,
java.lang.Class<T> resultType,
EditingDomain editingDomain,
java.lang.Object... arguments)
Evaluate the given EOperation of the given EObject. |
|
boolean |
isConforming(EObject eObject,
Facet facet)
Returns whether the given model element conforms to the given Facet |
|
void |
saveStructuralFeatureInstanceModel()
Serialize the model containing the structural feature instances. |
|
void |
set(EObject eObject,
EStructuralFeature structuralFeature,
java.lang.Object newValue,
EditingDomain editingDomain)
Set the value of the given EStructuralFeature on the given
EObject to the given Object value. |
|
| Method Detail |
|---|
void saveStructuralFeatureInstanceModel()
throws FacetManagerException
FacetManagerException
boolean isConforming(EObject eObject,
Facet facet)
throws FacetManagerException
eObject - the model elementfacet - the Facet the applicability of which is being tested
FacetManagerException - if there is an error evaluating the Facet's conformance typed element
void set(EObject eObject,
EStructuralFeature structuralFeature,
java.lang.Object newValue,
EditingDomain editingDomain)
throws FacetManagerException
EStructuralFeature on the given
EObject to the given Object value.
eObject - the model element whose feature must be setstructuralFeature - the feature to setnewValue - the new valueeditingDomain -
FacetManagerException -
<T> T invoke(EObject eObject,
EOperation operation,
java.lang.Class<T> resultType,
EditingDomain editingDomain,
java.lang.Object... arguments)
throws FacetManagerException
EOperation of the given EObject. The
returned value has to be of the given expectedType Class
eObject - the model element on which the operation is evaluatedoperation - the operation to evaluateresultType - the expected type of the returned value; if the effective type
is not compatible, an UnmatchingExpectedTypeException will be
thrownarguments - the values of the parameters of the EOperation that is
evaluated: they must match both in size, types and
multiplicity
FacetManagerException -
java.util.List<ETypedElementResult> batchInvoke(java.util.Collection<EObject> eObjects,
EOperation operation,
java.lang.Object... arguments)
throws FacetManagerException
EOperation on each element of the given
collection of EObjects.
eObjects - the model elements on which the operation is evaluatedoperation - the operation to evaluatearguments - the values of the parameters of the EOperation that is
evaluated: they must match both in size, types and
multiplicity
eObjects
FacetManagerException - java.util.List<FacetSet> getManagedFacetSets()
ResourceSet getResourceSet()
<T> T getOrInvoke(EObject element,
ETypedElement query,
java.lang.Class<T> aClass)
throws FacetManagerException
FacetManagerException
<T> java.util.List<T> getOrInvokeMultiValued(EObject eObject,
ETypedElement feature,
java.lang.Class<T> aClass)
throws FacetManagerException
FacetManagerException
<T> java.util.List<ETypedElementResult> batchGetOrInvoke(java.util.Collection<EObject> sources,
ETypedElement query,
java.lang.Class<T> aClass)
throws FacetManagerException
FacetManagerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||