T - the ID type being usedpublic interface ESObjectContainer<T>
A container for EObjects where each EObject has a unique ESModelElementId assigned to it.
The container does not specify how model elements are added or removed from the underlying collection of EObjects.
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(org.eclipse.emf.ecore.EObject modelElement)
Checks whether a given
EObject is contained in the collection. |
boolean |
contains(T modelElementId)
Checks whether the
EObject with the given ESModelElementId is contained in the collection. |
Set<org.eclipse.emf.ecore.EObject> |
getAllModelElements()
Returns a flat representation of all model elements in the collection.
|
<U extends org.eclipse.emf.ecore.EObject> |
getAllModelElementsByClass(Class<U> modelElementClass)
Retrieve a list of all model elements of a certain type in the collection.
|
<U extends org.eclipse.emf.ecore.EObject> |
getAllModelElementsByClass(Class<U> modelElementClass,
Boolean includeSubclasses)
Retrieve a list of all model elements of a certain type in the collection.
|
org.eclipse.emf.ecore.EObject |
getModelElement(T modelElementId)
Returns the model element with the given
ESModelElementId. |
T |
getModelElementId(org.eclipse.emf.ecore.EObject modelElement)
Retrieve the
ESModelElementId of the given model element. |
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> |
getModelElements()
Returns all directly contained model element of the container, i.e.
|
org.eclipse.emf.ecore.EObject getModelElement(T modelElementId)
ESModelElementId.modelElementId - the ID of the model element, that should be retrievedT getModelElementId(org.eclipse.emf.ecore.EObject modelElement)
ESModelElementId of the given model element.modelElement - the model element for which to retrieve the ID forESModelElementId of the given model elementorg.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getModelElements()
Set<org.eclipse.emf.ecore.EObject> getAllModelElements()
Returns a flat representation of all model elements in the collection.
The returned set is not modifiable and will throw an UnsupportedOperationException in case trying to do
so.
boolean contains(T modelElementId)
EObject with the given ESModelElementId is contained in the collection.modelElementId - the model element ID of the EObject, which needs to be checked,
whether it is contained in the collectiontrue, if the EObject with the given model element ID is
contained in the collection, falseboolean contains(org.eclipse.emf.ecore.EObject modelElement)
EObject is contained in the collection.modelElement - the model element to be checked, whether it is contained in the
collectiontrue, if the model element is contained in the collection, false otherwise<U extends org.eclipse.emf.ecore.EObject> Set<U> getAllModelElementsByClass(Class<U> modelElementClass, Boolean includeSubclasses)
<U extends org.eclipse.emf.ecore.EObject> Set<U> getAllModelElementsByClass(Class<U> modelElementClass)
U - the type of the model element(s) to be retrievedmodelElementClass - the Class of the model element(s) to be retrievedCopyright © 2017. All rights reserved.