org.apache.xalan.transformer
Class TreeWalker2Result

java.lang.Object
  extended byorg.apache.xml.dtm.ref.DTMTreeWalker
      extended byorg.apache.xalan.transformer.TreeWalker2Result

public class TreeWalker2Result
extends DTMTreeWalker

Handle a walk of a tree, but screen out attributes for the result tree.


Field Summary
(package private)  ResultTreeHandler m_handler
          The result tree handler
(package private)  int m_startNode
          Node where to start the tree walk
(package private)  TransformerImpl m_transformer
          The transformer instance
 
Fields inherited from class org.apache.xml.dtm.ref.DTMTreeWalker
m_dtm
 
Constructor Summary
TreeWalker2Result(TransformerImpl transformer, ResultTreeHandler handler)
          Constructor.
 
Method Summary
protected  void endNode(int node)
          End processing of given node
protected  void startNode(int node)
          Start traversal of the tree at the given node
 void traverse(int pos)
          Perform a pre-order traversal non-recursive style.
 
Methods inherited from class org.apache.xml.dtm.ref.DTMTreeWalker
getcontentHandler, setcontentHandler, setDTM, traverse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_transformer

TransformerImpl m_transformer
The transformer instance


m_handler

ResultTreeHandler m_handler
The result tree handler


m_startNode

int m_startNode
Node where to start the tree walk

Constructor Detail

TreeWalker2Result

public TreeWalker2Result(TransformerImpl transformer,
                         ResultTreeHandler handler)
Constructor.

Parameters:
transformer - Non-null transformer instance
handler - The Result tree handler to use
Method Detail

traverse

public void traverse(int pos)
              throws org.xml.sax.SAXException
Perform a pre-order traversal non-recursive style.

Overrides:
traverse in class DTMTreeWalker
Parameters:
pos - Start node for traversal
Throws:
TransformerException
org.xml.sax.SAXException

endNode

protected void endNode(int node)
                throws org.xml.sax.SAXException
End processing of given node

Overrides:
endNode in class DTMTreeWalker
Parameters:
node - Node we just finished processing
Throws:
org.xml.sax.SAXException

startNode

protected void startNode(int node)
                  throws org.xml.sax.SAXException
Start traversal of the tree at the given node

Overrides:
startNode in class DTMTreeWalker
Parameters:
node - Starting node for traversal
Throws:
TransformerException
org.xml.sax.SAXException