public class CompositeGlobalIterator extends java.lang.Object implements java.util.Iterator<IComponent>
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.IComposite
Constructor and Description |
---|
CompositeGlobalIterator(IComposite composite)
Create a new
CompositeGlobalIterator object connected to the
specific IComposite interface. |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
IComponent |
next() |
void |
remove() |
public CompositeGlobalIterator(IComposite composite)
CompositeGlobalIterator
object connected to the
specific IComposite
interface.composite
- interface to composite element to iteratepublic boolean hasNext()
hasNext
in interface java.util.Iterator<IComponent>
public IComponent next()
next
in interface java.util.Iterator<IComponent>
public void remove()
remove
in interface java.util.Iterator<IComponent>