org.apache.xalan.transformer
Class ClonerToResultTree

java.lang.Object
  extended byorg.apache.xalan.transformer.ClonerToResultTree

public class ClonerToResultTree
extends Object

Class used to clone a node, possibly including its children to a result tree.


Field Summary
private  ResultTreeHandler m_rth
          Result tree handler for the cloned tree
private  TransformerImpl m_transformer
          Transformer instance to use for cloning
 
Constructor Summary
ClonerToResultTree(TransformerImpl transformer, ResultTreeHandler rth)
          Constructor ClonerToResultTree
 
Method Summary
static void cloneToResultTree(int node, int nodeType, DTM dtm, ResultTreeHandler rth, boolean shouldCloneAttributes)
          Clone an element with or without children.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_rth

private ResultTreeHandler m_rth
Result tree handler for the cloned tree


m_transformer

private TransformerImpl m_transformer
Transformer instance to use for cloning

Constructor Detail

ClonerToResultTree

public ClonerToResultTree(TransformerImpl transformer,
                          ResultTreeHandler rth)
Constructor ClonerToResultTree

Parameters:
transformer - non-null transformer instance to use for the cloning
rth - non-null result tree handler for the cloned tree
Method Detail

cloneToResultTree

public static void cloneToResultTree(int node,
                                     int nodeType,
                                     DTM dtm,
                                     ResultTreeHandler rth,
                                     boolean shouldCloneAttributes)
                              throws javax.xml.transform.TransformerException
Clone an element with or without children. TODO: Fix or figure out node clone failure! the error condition is severe enough to halt processing.

Parameters:
node - The node to clone
shouldCloneAttributes - Flag indicating whether to clone children attributes
Throws:
javax.xml.transform.TransformerException