|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.xal.model.CompositeGlobalIterator
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 isparent first
then all its children.
IComposite| Constructor Summary | |
CompositeGlobalIterator(IComposite ifcComp)
Create a new CompositeGlobalIterator object connected to the
specific IComposite interface. |
|
| Method Summary | |
boolean |
hasNext()
Check if there are more objects to be iterated. |
java.lang.Object |
next()
Return the current object and advance index. |
void |
remove()
Remove the last element returned by the iterator through the method next(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompositeGlobalIterator(IComposite ifcComp)
CompositeGlobalIterator object connected to the
specific IComposite interface.
ifcComp - interface to composite element to iterate| Method Detail |
public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.IteratorIterator.next()public void remove()
next().
remove in interface java.util.IteratorIterator.remove(),
Iterator.next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||