com.xmlcalabash.util
Class TreeWriter
java.lang.Object
com.xmlcalabash.util.TreeWriter
- Direct Known Subclasses:
- ProcessMatch
public class TreeWriter
- extends java.lang.Object
- Author:
- ndw
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TreeWriter
public TreeWriter(XProcRuntime xproc)
- Creates a new instance of ProcessMatch
TreeWriter
public TreeWriter(net.sf.saxon.s9api.Processor proc)
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)