de.dv.sbu.filehandler.ftl.dataprovider.navigation
Class NavigationIterator

java.lang.Object
  extended by de.dv.sbu.filehandler.ftl.dataprovider.navigation.NavigationIterator
All Implemented Interfaces:
java.util.Iterator<NavigationNode>

public class NavigationIterator
extends java.lang.Object
implements java.util.Iterator<NavigationNode>

Top-down iterator from a Navigation to its NavigationNode children.

Author:
Daniel Vogtland

Constructor Summary
NavigationIterator(Navigation navigation)
          Creates a new instance from a Navigation object.
NavigationIterator(NavigationNode node)
          Creates a new instance from a NavigationNode object.
 
Method Summary
 boolean hasNext()
          
 NavigationNode next()
          
 void remove()
          not supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationIterator

public NavigationIterator(Navigation navigation)
Creates a new instance from a Navigation object.

Parameters:
navigation - The navigation to iterate through.

NavigationIterator

public NavigationIterator(NavigationNode node)
Creates a new instance from a NavigationNode object.

Parameters:
node - The node to iterate through from.
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface java.util.Iterator<NavigationNode>
See Also:
Iterator.hasNext()

next

public NavigationNode next()

Specified by:
next in interface java.util.Iterator<NavigationNode>
See Also:
Iterator.next()

remove

public void remove()
not supported

Specified by:
remove in interface java.util.Iterator<NavigationNode>