|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.myarch.treeiterator.DOMAdapter
This adapter maps org.w3c.dom.Node
interface to
the generic methods of the TreeIteratorAdapter
.
java.util.Iterator
interface implementation is provided by the
ChildrenAdapter
nested class since it is not directly supported
by org.w3c.dom.Node
.
Inner Class Summary | |
static class |
DOMAdapter.ChildrenAdapter
Implements java.util.Iterator methods for the
node list. |
Constructor Summary | |
DOMAdapter()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DOMAdapter()
Method Detail |
public java.util.Iterator getChildren(java.lang.Object node)
java.util.Iterator
to iterate over children of the node.getChildren
in interface TreeNodeAdapter
node
- nodejava.util.Iterator
for the list of children.public boolean hasChildren(java.lang.Object node)
hasChildren
in interface TreeNodeAdapter
node
- nodetrue
if the node has children
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |