org.eclipse.emf.mapping.impl
Class MappingImpl.MappingTreeIterator

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--org.eclipse.emf.common.util.BasicEList
                    |
                    +--org.eclipse.emf.common.util.AbstractTreeIterator
                          |
                          +--org.eclipse.emf.mapping.impl.MappingImpl.MappingTreeIterator
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, EList, java.util.Iterator, java.util.List, java.io.Serializable, TreeIterator
Enclosing class:
MappingImpl

public static class MappingImpl.MappingTreeIterator
extends AbstractTreeIterator

This implements a tree iterator that will iterate over a mapping, all it's nested mappings, all their nested mappings, and so on.

See Also:
Serialized Form

Inner classes inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.EIterator, BasicEList.EListIterator, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator, BasicEList.UnmodifiableEList
 
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
MappingImpl.MappingTreeIterator(Mapping mapping)
          This creates a tree iterator that will iterate over a mapping, all it's nested mappings, all their nested mappings, and so on.
MappingImpl.MappingTreeIterator(Mapping mapping, boolean includeRoot)
          This creates a tree iterator that will iterate over a mapping (but only if includeRoot is true), all it's nested mappings, all their nested mappings, and so on.
 
Method Summary
protected  java.util.Iterator getChildren(java.lang.Object o)
          Returns the iterator that yields the children of the object.
 void remove()
          Removes the last object returned by AbstractTreeIterator.next() from the underlying tree; it's an optional operation.
 
Methods inherited from class org.eclipse.emf.common.util.AbstractTreeIterator
hasNext, next, prune
 
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
 

Constructor Detail

MappingImpl.MappingTreeIterator

public MappingImpl.MappingTreeIterator(Mapping mapping)
This creates a tree iterator that will iterate over a mapping, all it's nested mappings, all their nested mappings, and so on.

MappingImpl.MappingTreeIterator

public MappingImpl.MappingTreeIterator(Mapping mapping,
                                       boolean includeRoot)
This creates a tree iterator that will iterate over a mapping (but only if includeRoot is true), all it's nested mappings, all their nested mappings, and so on.
Method Detail

getChildren

protected java.util.Iterator getChildren(java.lang.Object o)
Description copied from class: AbstractTreeIterator
Returns the iterator that yields the children of the object.
Overrides:
getChildren in class AbstractTreeIterator
Following copied from class: org.eclipse.emf.common.util.AbstractTreeIterator
Parameters:
object - the object for which children are required.
Returns:
the iterator that yields the children.

remove

public void remove()
Description copied from class: AbstractTreeIterator
Removes the last object returned by AbstractTreeIterator.next() from the underlying tree; it's an optional operation.
Overrides:
remove in class AbstractTreeIterator
Following copied from class: org.eclipse.emf.common.util.AbstractTreeIterator
Throws:
IllegalStateException - if next has not yet been called or has been called only the yield the root object, or remove has already been called after the last call to the next method.

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