org.apache.anakia
Class TreeWalker
java.lang.Object
   org.apache.anakia.TreeWalker
org.apache.anakia.TreeWalker
- public class TreeWalker- extends Object
This class allows you to walk a tree of JDOM Element objects.
 It first walks the tree itself starting at the Element passed
 into allElements() and stores each node of the tree
 in a Vector which allElements() returns as a result of its
 execution. You can then use a #foreach in Velocity to walk
 over the Vector and visit each Element node. However, you can
 achieve the same effect by calling element.selectNodes("//*").
- Version:
- $Id: TreeWalker.java 524478 2007-03-31 20:51:49Z wglass $
- Author:
- Jon S. Stevens, Attila Szegedi
| Constructor Summary | 
| TreeWalker()Empty constructor
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TreeWalker
public TreeWalker()
- Empty constructor
 
allElements
public NodeList allElements(Element e)
- Creates a new Vector and walks the Element tree.
 
- 
- Parameters:
- e- the starting Element node
- Returns:
- Vector a vector of Element nodes
 
Copyright © 2000-${build.year} Apache Software Foundation. All Rights Reserved.