Package xal.model
Class CompositeGlobalIterator
java.lang.Object
xal.model.CompositeGlobalIterator
- All Implemented Interfaces:
Iterator<IComponent>
Implementation of an iterator class for
IComposite objects.
Returns each interface in the sequence, leaf or branch. Consequently the
returned interface should be typed to IComponent.
The iteration order for child composite elements is parent first then all its
children.- Author:
- Christopher K. Allen, Ikeda
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeGlobalIterator(IComposite composite) Create a newCompositeGlobalIteratorobject connected to the specificICompositeinterface. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CompositeGlobalIterator
Create a newCompositeGlobalIteratorobject connected to the specificICompositeinterface.- Parameters:
composite- interface to composite element to iterate
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<IComponent>
-
next
- Specified by:
nextin interfaceIterator<IComponent>- Throws:
NoSuchElementException
-
remove
public void remove()- Specified by:
removein interfaceIterator<IComponent>
-