com.myarch.treeiterator
Interface TreeNodeAdapter

All Known Implementing Classes:
DOMAdapter, SwingAdapter

public interface TreeNodeAdapter

Generic node interface used by tree iterator.


Method Summary
 java.util.Iterator getChildren(java.lang.Object node)
          Returns java.util.Iterator to iterate over children of the node.
 boolean hasChildren(java.lang.Object node)
          Returns true if the node has children.
 

Method Detail

getChildren

public java.util.Iterator getChildren(java.lang.Object node)
Returns java.util.Iterator to iterate over children of the node.
Parameters:
node - node
Returns:
java.util.Iterator for the collection that contains children of the given node.

hasChildren

public boolean hasChildren(java.lang.Object node)
Returns true if the node has children.
Parameters:
node - node
Returns:
true if the node has children


Copyright © 2001 Alexander Ananiev & MyArch.com. All Rights Reserved.