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:
- Cloneable, Collection, EList, Iterator, List, 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
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
add, add, addAll, addAll, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, 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 interface java.util.List |
subList |
emfObjects
protected Collection emfObjects
- The collection of objects being iterated over.
EcoreUtil.ContentTreeIterator
protected EcoreUtil.ContentTreeIterator(Collection emfObjects)
- Creates an instance for the given collection of objects.
- Parameters:
emfObjects
- the collection of objects to iterate over.
getChildren
public Iterator getChildren(Object object)
- Returns an iterator over the children of the given parent object.
- Specified by:
getChildren
in class AbstractTreeIterator
- Parameters:
object
- the parent object.
- Returns:
- the children iterator.
getEObjectChildren
protected Iterator getEObjectChildren(EObject eObject)
- Returns an iterator over the
children
of the given parent EObject.
- Parameters:
eObject
- the parent object.
- Returns:
- the children iterator.
getResourceChildren
protected 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 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 Iterator getObjectChildren(Object object)
- Returns an empty iterator; subclasses may override this method.
- Parameters:
object
- the parent object.
- Returns:
- the children iterator.