| java.lang.Object net.sf.saxon.event.Builder
All known Subclasses: net.sf.saxon.tinytree.TinyBuilder, net.sf.saxon.tree.TreeBuilder,
Builder | abstract public class Builder implements Receiver(Code) | | The abstract Builder class is responsible for taking a stream of SAX events
and constructing a Document tree. There is one concrete subclass for each
tree implementation.
author: Michael H. Kay |
Constructor Summary | |
public | Builder() |
STANDARD_TREE | final public static int STANDARD_TREE(Code) | | |
TINY_TREE | final public static int TINY_TREE(Code) | | |
lineNumbering | protected boolean lineNumbering(Code) | | |
started | protected boolean started(Code) | | |
timing | protected boolean timing(Code) | | |
Builder | public Builder()(Code) | | create a Builder and initialise variables
|
build | public static NodeInfo build(Source source, Stripper stripper, Configuration config) throws XPathException(Code) | | Static method to build a document from any kind of Source object. If the source
is already in the form of a tree, it is wrapped as required.
Parameters: source - Any javax.xml.transform.Source object Parameters: stripper - A stripper object, if whitespace text nodes are to be stripped;otherwise null. Parameters: config - The Configuration object the NodeInfo of the start node in the resulting document object. |
build | public static NodeInfo build(Source source, Stripper stripper, PipelineConfiguration pipe) throws XPathException(Code) | | Static method to build a document from any kind of Source object. If the source
is already in the form of a tree, it is wrapped as required.
Parameters: source - Any javax.xml.transform.Source object Parameters: stripper - A stripper object, if whitespace text nodes are to be stripped;otherwise null. Parameters: pipe - The PipelineConfiguration object the NodeInfo of the start node in the resulting document object. |
getCurrentRoot | public NodeInfo getCurrentRoot()(Code) | | Get the current root node. This will normally be a document node, but if the root of the tree
is an element node, it can be an element.
the root of the tree that is currently being built, or that has been most recently builtusing this builder |
isTiming | public boolean isTiming()(Code) | | Get timing option
|
setLineNumbering | public void setLineNumbering(boolean is)(Code) | | |
setTiming | public void setTiming(boolean on)(Code) | | Set timing option on or off
|
startDocument | public void startDocument(int properties) throws XPathException(Code) | | Start of a document node.
This event is ignored: we simply add the contained elements to the current document
|
|
|