|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the ID type being usedpublic interface ESObjectContainer<T>
A container for EObject
s 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.
Method Summary | ||
---|---|---|
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. |
|
|
getAllModelElementsByClass(Class<U> modelElementClass)
Retrieve a list of all model elements of a certain type in the collection. |
|
|
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. |
Method Detail |
---|
org.eclipse.emf.ecore.EObject getModelElement(T modelElementId)
ESModelElementId
.
modelElementId
- the ID of the model element, that should be retrieved
T getModelElementId(org.eclipse.emf.ecore.EObject modelElement)
ESModelElementId
of the given model element.
modelElement
- the model element for which to retrieve the ID for
ESModelElementId
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 collection
true
, if the EObject with the given model element ID is
contained in the collection, false
boolean 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
collection
true
, 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
- the type of the model element(s) to be retrievedmodelElementClass
- the Class
of the model element(s) to be retrievedincludeSubclasses
- whether to also include all subclasses of the given Class
in the list
<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 retrieved
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |