| java.lang.Object net.sf.saxon.event.Builder net.sf.saxon.tree.TreeBuilder
TreeBuilder | public class TreeBuilder extends Builder (Code) | | The Builder class is responsible for taking a stream of SAX events and constructing
a Document tree.
author: Michael H. Kay |
Method Summary | |
public void | attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) | public void | characters(CharSequence chars, int locationId, int properties) Notify a text node. | public void | close() | public void | comment(CharSequence chars, int locationId, int properties) | public void | endElement() | public void | graftElement(ElementImpl element) graftElement() allows an element node to be transferred from one tree to another. | public void | namespace(int namespaceCode, int properties) | public void | open() | public void | processingInstruction(String name, CharSequence remainder, int locationId, int properties) | public void | setNodeFactory(NodeFactory factory) Set the Node Factory to use. | public void | setUnparsedEntity(String name, String uri, String publicId) | public void | startContent() | public void | startElement(int nameCode, int typeCode, int locationId, int properties) |
TreeBuilder | public TreeBuilder()(Code) | | create a Builder and initialise variables
|
characters | public void characters(CharSequence chars, int locationId, int properties) throws XPathException(Code) | | Notify a text node. Adjacent text nodes must have already been merged
|
close | public void close() throws XPathException(Code) | | Callback interface for SAX: not for application use
|
graftElement | public void graftElement(ElementImpl element) throws XPathException(Code) | | graftElement() allows an element node to be transferred from one tree to another.
This is a dangerous internal interface which is used only to contruct a stylesheet
tree from a stylesheet using the "literal result element as stylesheet" syntax.
The supplied element is grafted onto the current element as its only child.
|
namespace | public void namespace(int namespaceCode, int properties)(Code) | | |
open | public void open() throws XPathException(Code) | | Callback interface for SAX: not for application use
|
processingInstruction | public void processingInstruction(String name, CharSequence remainder, int locationId, int properties)(Code) | | Notify a processing instruction
|
setNodeFactory | public void setNodeFactory(NodeFactory factory)(Code) | | Set the Node Factory to use. If none is specified, the Builder uses its own.
|
setUnparsedEntity | public void setUnparsedEntity(String name, String uri, String publicId)(Code) | | Set an unparsed entity URI for the document
|
startElement | public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException(Code) | | Notify the start of an element
|
|
|