org.mmbase.bridge.util
Interface TreeIterator

All Superinterfaces:
Iterator<Node>, ListIterator<Node>, NodeIterator
All Known Implementing Classes:
TreeList.TreeItr

public interface TreeIterator
extends NodeIterator

A specialized iterator for 'TreeLists'

Since:
MMBase-1.7
Version:
$Id: TreeIterator.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Michiel Meeuwissen
See Also:
TreeList

Method Summary
 int currentDepth()
          Depth of the last node fetched with next() or nextNode()
 Node getParent()
          Returns the 'parent' node of the most recently returned Node.
 NodeList getSiblings()
          Returns all nodes with the same parent as the most recently return Node (include that node itself).
 
Methods inherited from interface org.mmbase.bridge.NodeIterator
nextNode, previousNode
 
Methods inherited from interface java.util.ListIterator
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
 

Method Detail

currentDepth

int currentDepth()
Depth of the last node fetched with next() or nextNode()

Returns:
Depth of the last node fetched

getParent

Node getParent()
Returns the 'parent' node of the most recently returned Node. Or null if there is no such node.

Since:
MMBase-1.8.6

getSiblings

NodeList getSiblings()
Returns all nodes with the same parent as the most recently return Node (include that node itself).

Since:
MMBase-1.8.6


MMBase 2.0-SNAPSHOT - null