RootContainer - the type of root containers in which model elements may reside (e.g. a Resource)ModelObject - the type representing a model element; can be simply an EObject or a surrogate keypublic interface IEcoreReadOperations<RootContainer,ModelObject>
IModelReadOperations is provided as the default case where the instance model is simply an EMF model.
Note that not all representations may support / preserve ordered collections.
| Modifier and Type | Method and Description |
|---|---|
int |
count(ModelObject container,
org.eclipse.emf.ecore.EStructuralFeature feature)
Retrieves the number of values in a given feature slot of a given container model element.
|
org.eclipse.emf.ecore.EClass |
eClass(ModelObject element)
Queries the exact type of the given object.
|
boolean |
isSetTo(ModelObject container,
org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.Object value)
Returns whether the given value is listed among the values in a given feature slot of a given container model element.
|
java.util.stream.Stream<? extends java.lang.Object> |
stream(ModelObject container,
org.eclipse.emf.ecore.EStructuralFeature feature)
Retrieves all values in a given feature slot of a given container model element.
|
org.eclipse.emf.ecore.EClass eClass(ModelObject element) throws ModelManipulationException
ModelManipulationExceptionint count(ModelObject container, org.eclipse.emf.ecore.EStructuralFeature feature) throws ModelManipulationException
ModelManipulationExceptionjava.util.stream.Stream<? extends java.lang.Object> stream(ModelObject container, org.eclipse.emf.ecore.EStructuralFeature feature) throws ModelManipulationException
ModelManipulationExceptionboolean isSetTo(ModelObject container, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value) throws ModelManipulationException
ModelManipulationException