org.eclipse.emf.ecore.util
Class EcoreUtil.ContentTreeIterator

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byorg.eclipse.emf.common.util.BasicEList
              extended byorg.eclipse.emf.common.util.AbstractTreeIterator
                  extended byorg.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

Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator, BasicEList.EListIterator, BasicEList.FastCompare, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator, BasicEList.UnmodifiableEList
 
Field Summary
protected  Collection emfObjects
          The collection of objects being iterated over.
 
Fields inherited from class org.eclipse.emf.common.util.AbstractTreeIterator
includeRoot, nextPruneIterator, nextRemoveIterator, object
 
Fields inherited from class org.eclipse.emf.common.util.BasicEList
data, size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected EcoreUtil.ContentTreeIterator(Collection emfObjects)
          Creates an instance for the given collection of objects.
 
Method Summary
 Iterator getChildren(Object object)
          Returns an iterator over the children of the given parent object.
protected  Iterator getEObjectChildren(EObject eObject)
          Returns an iterator over the children of the given parent EObject.
protected  Iterator getObjectChildren(Object object)
          Returns an empty iterator; subclasses may override this method.
protected  Iterator getResourceChildren(Resource resource)
          Returns an iterator over the children of the given parent resource.
protected  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.AbstractTreeIterator
hasNext, next, prune, remove
 
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 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
 

Field Detail

emfObjects

protected Collection emfObjects
The collection of objects being iterated over.

Constructor Detail

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.
Method Detail

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.

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.