public class ElementWalker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
protected IWalkerFactory |
theFactory |
| Constructor and Description |
|---|
ElementWalker(IWalkerFactory _theFactory) |
| Modifier and Type | Method and Description |
|---|---|
IWalkerFactory |
getFactory()
Getter for theFactory attribute.
|
java.lang.String |
toString() |
int |
walkTree(KElement e,
KElement trackElem)
walk the tree starting at e.
|
int |
walkTreeKidsFirst(KElement e)
walk the tree starting at e.
|
protected final IWalkerFactory theFactory
protected final org.apache.commons.logging.Log log
public ElementWalker(IWalkerFactory _theFactory)
_theFactory - used to find the individual instances for the childrenpublic int walkTree(KElement e, KElement trackElem)
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 nullpublic int walkTreeKidsFirst(KElement e)
e - the root element to walkpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public IWalkerFactory getFactory()