01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10:
11: package org.mmbase.bridge.util;
12:
13: import org.mmbase.bridge.*;
14:
15: /**
16: * A specialized iterator for 'TreeLists'
17: *
18: * @author Michiel Meeuwissen
19: * @version $Id: TreeIterator.java,v 1.4 2008/02/28 12:23:51 michiel Exp $
20: * @since MMBase-1.7
21: * @see org.mmbase.bridge.util.TreeList
22: */
23:
24: public interface TreeIterator extends NodeIterator {
25: /**
26: * Depth of the last node fetched with next() or nextNode()
27: * @return Depth of the last node fetched
28: */
29: int currentDepth();
30:
31: /**
32: * Returns the 'parent' node of the most recently returned Node. Or <code>null</code> if there
33: * is no such node.
34: * @since MMBase-1.8.6
35: */
36: Node getParent();
37:
38: /**
39: * Returns all nodes with the same parent as the most recently return Node (include that node
40: * itself).
41: * @since MMBase-1.8.6
42: */
43: NodeList getSiblings();
44:
45: }
|