org.cip4.jdflib.elementwalker
Class BaseElementWalker

java.lang.Object
  extended by org.cip4.jdflib.elementwalker.ElementWalker
      extended by org.cip4.jdflib.elementwalker.BaseElementWalker
Direct Known Subclasses:
AttributeReplacer, EnsureElementUri, EnsureNSUri, FixVersion, IDFinder, LinkRefFinder, RemoveEmpty, RemovePrivate, ResourceIDFinder, SizeWalker, UnLinkFinder, URLExtractor, URLMapper, XJDF20, XJDFSchemaCreator, XJDFSchemaWalker, XJDFToJDFConverter, XJDFToJMFConverter, XPathWalker

public class BaseElementWalker
extends ElementWalker

elementwalker class that allows you to traverse a dom tree starting at a given root also handles the construction of the walker classes by name, just make sure that your walker subclasses match the naming convention $Walk, e.g. if your class is called FixVersion, the subclasses must be called WalkFoo, WalkBar etc.

Author:
rainer prosi

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
 
Constructor Summary
BaseElementWalker(BaseWalkerFactory _theFactory)
           
 
Method Summary
protected  void constructWalkers(String classPrefix)
          construct all walkers confirming to the naming convention public $Walk
protected  BaseWalkerFactory getFactory()
           
 
Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

BaseElementWalker

public BaseElementWalker(BaseWalkerFactory _theFactory)
Parameters:
_theFactory -
Method Detail

constructWalkers

protected void constructWalkers(String classPrefix)
construct all walkers confirming to the naming convention public $Walk

Parameters:
classPrefix -

getFactory

protected BaseWalkerFactory getFactory()
Returns:
the factory for this worker


Copyright © 2013. All Rights Reserved.