net.sf.swan.xml.input.tree
Class TreeResultAdapter

java.lang.Object
  |
  +--net.sf.swan.xml.input.tree.TreeResultAdapter
All Implemented Interfaces:
TreeResultHandler

public abstract class TreeResultAdapter
extends java.lang.Object
implements TreeResultHandler

TreeResultHandler with a no-op implementation for initializeSelector(net.sf.swan.xpath.Selector). Useful as a base class for inline adapters that do not need to initialize a Selector.


Constructor Summary
TreeResultAdapter()
           
 
Method Summary
 void initializeSelector(Selector selector)
          Permits the component to initialize a Selector for later use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.swan.xml.input.tree.TreeResultHandler
treeResult
 

Constructor Detail

TreeResultAdapter

public TreeResultAdapter()
Method Detail

initializeSelector

public void initializeSelector(Selector selector)
Description copied from interface: TreeResultHandler
Permits the component to initialize a Selector for later use. This gets called exactly once during the lifetime of a TreeResultListener and permits the component to setup namespace mappings, function contexts, or prototype variable values. The Selector is then used as a prototype for thread-specific instances employed internally by the TreeResult object passed to the component's treeResult method.
Specified by:
initializeSelector in interface TreeResultHandler