Package com._1c.g5.v8.dt.common
Class EContainerIterator
java.lang.Object
com._1c.g5.v8.dt.common.EContainerIterator
- All Implemented Interfaces:
Iterator<org.eclipse.emf.ecore.EObject>
Iterates over ancestors of an
EObject
starting from the parent.
Parent-child relation is defined by EObject.eContainer()
.-
Constructor Details
-
EContainerIterator
public EContainerIterator(org.eclipse.emf.ecore.EObject from) Constructor. The first call tonext()
returns the parent of the 'from
'- Parameters:
from
- - base emf object.
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
public org.eclipse.emf.ecore.EObject next() -
remove
public void remove()Guaranteed to throw an exception and leave the underlying data unmodified.- Specified by:
remove
in interfaceIterator<org.eclipse.emf.ecore.EObject>
- Throws:
UnsupportedOperationException
- always
-