|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xerial.util.bean.TreeWalker
org.xerial.util.bean.XMLWalker
public class XMLWalker
XMLWalker traverses XML data in the depth first manner.
| Constructor Summary | |
|---|---|
XMLWalker(TreeVisitor visitor,
Element element)
Constructs an XML DOM walker |
|
XMLWalker(TreeVisitor visitor,
Reader xmlDataReader)
Constructs an XML stream walker |
|
| Method Summary | |
|---|---|
TreeNode |
getSubTree()
Gets the entire subtree beginning from the current node, and skips the descendants. |
void |
skipDescendants()
Skip the descendants of the current node |
void |
walk()
Start walking |
| Methods inherited from class org.xerial.util.bean.TreeWalker |
|---|
getTreeVisitor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLWalker(TreeVisitor visitor,
Reader xmlDataReader)
throws XMLException
visitor - xmlDataReader - xml data stream
XMLException - thrown when some error has found in the XML reader
public XMLWalker(TreeVisitor visitor,
Element element)
visitor - element - | Method Detail |
|---|
public TreeNode getSubTree()
throws BeanException
TreeWalker
getSubTree in class TreeWalkerTreeNode representation of the tree structured data beginning from the current node
BeanException - TODOpublic void skipDescendants()
TreeWalker
skipDescendants in class TreeWalker
public void walk()
throws XerialException
TreeWalker
walk in class TreeWalkerXerialException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
