com.xmlcalabash.util
Class TreeWriter

java.lang.Object
  extended by com.xmlcalabash.util.TreeWriter
Direct Known Subclasses:
ProcessMatch

public class TreeWriter
extends java.lang.Object

Author:
ndw

Field Summary
protected  net.sf.saxon.Controller controller
           
protected  net.sf.saxon.s9api.XdmDestination destination
           
protected  net.sf.saxon.expr.instruct.Executable exec
           
protected  boolean inDocument
           
protected static java.lang.String logger
           
protected  net.sf.saxon.om.NamePool pool
           
protected  net.sf.saxon.event.Receiver receiver
           
protected  XProcRuntime runtime
           
protected  boolean seenRoot
           
protected  XProcLocationProvider xLocationProvider
           
 
Constructor Summary
TreeWriter(net.sf.saxon.s9api.Processor proc)
           
TreeWriter(XProcRuntime xproc)
          Creates a new instance of ProcessMatch
 
Method Summary
 void addAttribute(net.sf.saxon.om.NodeName elemName, net.sf.saxon.type.SimpleType typeCode, java.lang.String newValue)
           
 void addAttribute(net.sf.saxon.s9api.QName attrName, java.lang.String newValue)
           
 void addAttribute(net.sf.saxon.s9api.XdmNode xdmattr)
           
 void addAttribute(net.sf.saxon.s9api.XdmNode xdmattr, java.lang.String newValue)
           
 void addAttributes(net.sf.saxon.s9api.XdmNode element)
           
 void addComment(java.lang.String comment)
           
 void addEndElement()
           
 void addNamespace(java.lang.String prefix, java.lang.String uri)
           
 void addPI(java.lang.String target, java.lang.String data)
           
 void addStartElement(net.sf.saxon.om.NodeName elemName, net.sf.saxon.type.SchemaType typeCode, net.sf.saxon.om.NamespaceBinding[] nscodes)
           
 void addStartElement(net.sf.saxon.s9api.QName newName)
           
 void addStartElement(net.sf.saxon.s9api.XdmNode node)
           
 void addStartElement(net.sf.saxon.s9api.XdmNode node, net.sf.saxon.s9api.QName newName)
           
 void addSubtree(net.sf.saxon.s9api.XdmNode node)
           
 void addText(java.lang.String text)
           
 void endDocument()
           
 net.sf.saxon.s9api.XdmNode getResult()
           
 boolean inDocument()
           
 void startContent()
           
 void startDocument(java.net.URI baseURI)
           
protected  void writeChildren(net.sf.saxon.s9api.XdmNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final java.lang.String logger
See Also:
Constant Field Values

controller

protected net.sf.saxon.Controller controller

runtime

protected XProcRuntime runtime

exec

protected net.sf.saxon.expr.instruct.Executable exec

pool

protected net.sf.saxon.om.NamePool pool

destination

protected net.sf.saxon.s9api.XdmDestination destination

receiver

protected net.sf.saxon.event.Receiver receiver

xLocationProvider

protected XProcLocationProvider xLocationProvider

seenRoot

protected boolean seenRoot

inDocument

protected boolean inDocument
Constructor Detail

TreeWriter

public TreeWriter(XProcRuntime xproc)
Creates a new instance of ProcessMatch


TreeWriter

public TreeWriter(net.sf.saxon.s9api.Processor proc)
Method Detail

getResult

public net.sf.saxon.s9api.XdmNode getResult()

inDocument

public boolean inDocument()

startDocument

public void startDocument(java.net.URI baseURI)

endDocument

public void endDocument()

addSubtree

public void addSubtree(net.sf.saxon.s9api.XdmNode node)

writeChildren

protected void writeChildren(net.sf.saxon.s9api.XdmNode node)

addStartElement

public void addStartElement(net.sf.saxon.s9api.XdmNode node)

addStartElement

public void addStartElement(net.sf.saxon.s9api.XdmNode node,
                            net.sf.saxon.s9api.QName newName)

addStartElement

public void addStartElement(net.sf.saxon.s9api.QName newName)

addStartElement

public void addStartElement(net.sf.saxon.om.NodeName elemName,
                            net.sf.saxon.type.SchemaType typeCode,
                            net.sf.saxon.om.NamespaceBinding[] nscodes)

addNamespace

public void addNamespace(java.lang.String prefix,
                         java.lang.String uri)

addAttributes

public void addAttributes(net.sf.saxon.s9api.XdmNode element)

addAttribute

public void addAttribute(net.sf.saxon.s9api.XdmNode xdmattr)

addAttribute

public void addAttribute(net.sf.saxon.s9api.XdmNode xdmattr,
                         java.lang.String newValue)

addAttribute

public void addAttribute(net.sf.saxon.om.NodeName elemName,
                         net.sf.saxon.type.SimpleType typeCode,
                         java.lang.String newValue)

addAttribute

public void addAttribute(net.sf.saxon.s9api.QName attrName,
                         java.lang.String newValue)

startContent

public void startContent()

addEndElement

public void addEndElement()

addComment

public void addComment(java.lang.String comment)

addText

public void addText(java.lang.String text)

addPI

public void addPI(java.lang.String target,
                  java.lang.String data)