com.japisoft.fastparser.walker
Class TreeWalker
java.lang.Object
|
+--com.japisoft.fastparser.walker.TreeWalker
- public class TreeWalker
- extends java.lang.Object
This class is a toolkit for navigating through your XML tree easily.
is is able to return you a list of tag by name...
- Version:
- 1.1
- Author:
- (c) 2002-2003 JAPISOFT
Method Summary |
java.util.Enumeration |
getNodeByCriteria(ValidCriteria vc,
boolean deep)
Sample of criteria :
new OrCriteria( new NodeNameCriteria( "aa" ), new NodeNameCriteria( "bb" ) ) for
returning 'aa' or 'bb' node. |
java.util.Enumeration |
getTagNodeByName(java.lang.String name,
boolean deep)
|
java.util.Enumeration |
getTextNode(java.lang.String subcontent,
boolean deep)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeWalker
public TreeWalker(SimpleNode node)
- Reference node. It is illegal to use a
null
node
getTagNodeByName
public java.util.Enumeration getTagNodeByName(java.lang.String name,
boolean deep)
- Parameters:
deep
- deeply found tag
- Returns:
- a list of tag mathing the name
getTextNode
public java.util.Enumeration getTextNode(java.lang.String subcontent,
boolean deep)
- Returns:
- all text node containing the subcontent
getNodeByCriteria
public java.util.Enumeration getNodeByCriteria(ValidCriteria vc,
boolean deep)
- Sample of criteria :
new OrCriteria( new NodeNameCriteria( "aa" ), new NodeNameCriteria( "bb" ) )
for
returning 'aa' or 'bb' node.
- Parameters:
vc
- Criteria for searching nodedeep
- deeply found tag
- Returns:
- SimpleNode enumeration