org.cip4.jdflib.elementwalker
Class ElementWalker
java.lang.Object
org.cip4.jdflib.elementwalker.ElementWalker
- Direct Known Subclasses:
- BaseElementWalker
public class ElementWalker
- extends Object
elementwalker class that allows you to traverse a dom tree starting at a given root
- Author:
- prosirai
theFactory
protected IWalkerFactory theFactory
ElementWalker
public ElementWalker(IWalkerFactory _theFactory)
- Parameters:
_theFactory - used to find the individual instances for the children
walkTree
public int walkTree(KElement e,
KElement trackElem)
- walk the tree starting at e.
- Parameters:
e - the root element to walk, must not be nulltrackElem - a parallel element to e that may additionally be modified during the walk, may be null
- Returns:
- n the number of traversed elements
walkTreeKidsFirst
public int walkTreeKidsFirst(KElement e)
- walk the tree starting at e.
- Parameters:
e - the root element to walk
- Returns:
- n the number of traversed elements
toString
public String toString()
- Overrides:
toString in class Object
- See Also:
Object.toString()
Copyright © 2013. All Rights Reserved.