org.eclipse.emf.ecore.util
Class EcoreUtil.ContentTreeIterator
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--org.eclipse.emf.common.util.BasicEList
|
+--org.eclipse.emf.common.util.AbstractTreeIterator
|
+--org.eclipse.emf.ecore.util.EcoreUtil.ContentTreeIterator
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, EList, java.util.Iterator, java.util.List, java.io.Serializable, TreeIterator
- Enclosing class:
- EcoreUtil
- public static class EcoreUtil.ContentTreeIterator
- extends AbstractTreeIterator
An iterator over the tree contents of a collection of EObjects, Resources, and ResourceSets;
use getAllContents
to create a new instance.
It provides a special iterator for ResourceSet.getResources
that is tolerant of growth in the underlying collection
which result from demand loaded resources;
the iterator will walk these additional resources.
- See Also:
- Serialized Form
Field Summary |
protected java.util.Collection |
emfObjects
The collection of objects being iterated over. |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary |
protected |
EcoreUtil.ContentTreeIterator(java.util.Collection emfObjects)
Creates an instance for the given collection of objects. |
Method Summary |
java.util.Iterator |
getChildren(java.lang.Object object)
Returns an iterator over the children of the given parent object. |
protected java.util.Iterator |
getEObjectChildren(EObject eObject)
Returns an iterator over the children of the given parent EObject. |
protected java.util.Iterator |
getObjectChildren(java.lang.Object object)
Returns an empty iterator; subclasses may override this method. |
protected java.util.Iterator |
getResourceChildren(Resource resource)
Returns an iterator over the children of the given parent resource. |
protected java.util.Iterator |
getResourceSetChildren(ResourceSet resourceSet)
Returns an iterator over the children of the given parent resource set. |
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
add, add, addAll, addAll, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicIterator, basicList, basicListIterator, basicListIterator, canContainNull, clear, clone, contains, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, indexOf, isEmpty, isUnique, iterator, lastIndexOf, listIterator, listIterator, move, move, newData, remove, remove, removeAll, resolve, retainAll, set, setData, setUnique, shrink, size, toArray, toArray, toString, useEquals, validate |
Methods inherited from class java.util.AbstractList |
removeRange, subList |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
subList |
emfObjects
protected java.util.Collection emfObjects
- The collection of objects being iterated over.
EcoreUtil.ContentTreeIterator
protected EcoreUtil.ContentTreeIterator(java.util.Collection emfObjects)
- Creates an instance for the given collection of objects.
- Parameters:
emfObjects
- the collection of objects to iterate over.
getChildren
public java.util.Iterator getChildren(java.lang.Object object)
- Returns an iterator over the children of the given parent object.
- Overrides:
getChildren
in class AbstractTreeIterator
- Parameters:
object
- the parent object.- Returns:
- the children iterator.
getEObjectChildren
protected java.util.Iterator getEObjectChildren(EObject eObject)
- Returns an iterator over the
children
of the given parent EObject.
- Parameters:
object
- the parent object.- Returns:
- the children iterator.
getResourceChildren
protected java.util.Iterator getResourceChildren(Resource resource)
- Returns an iterator over the
children
of the given parent resource.
- Parameters:
resource
- the parent resource.- Returns:
- the children iterator.
getResourceSetChildren
protected java.util.Iterator getResourceSetChildren(ResourceSet resourceSet)
- Returns an iterator over the
children
of the given parent resource set.
- Parameters:
resourceSet
- the parent resource set.- Returns:
- the children iterator.
getObjectChildren
protected java.util.Iterator getObjectChildren(java.lang.Object object)
- Returns an empty iterator; subclasses may override this method.
- Parameters:
object
- the parent object.- Returns:
- the children iterator.