|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.event.Builder
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.
Field Summary | |
protected Configuration |
config
|
protected DocumentInfo |
currentDocument
|
protected boolean |
lineNumbering
|
protected org.xml.sax.Locator |
locator
|
protected NamePool |
namePool
|
static int |
STANDARD_TREE
|
protected boolean |
started
|
protected java.lang.String |
systemId
|
protected boolean |
timing
|
static int |
TINY_TREE
|
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
Builder()
create a Builder and initialise variables |
Method Summary | |
static NodeInfo |
build(javax.xml.transform.Source source,
Stripper stripper,
Configuration config)
Static method to build a document from any kind of Source object. |
void |
endDocument()
Notify the end of the document |
Configuration |
getConfiguration()
Get the configuration |
DocumentInfo |
getCurrentDocument()
Get the current document |
java.lang.String |
getSystemId()
|
boolean |
isTiming()
Get timing option |
void |
setConfiguration(Configuration config)
Set the configuration |
void |
setDocumentLocator(org.xml.sax.Locator loc)
Set locator, to identify position in the document. |
void |
setLineNumbering(boolean onOrOff)
Set line numbering on or off |
void |
setRootNode(DocumentInfo doc)
Set the root (document) node to use. |
void |
setSystemId(java.lang.String systemId)
Set the System ID of the destination tree |
void |
setTiming(boolean on)
Set timing option on or off |
void |
startDocument()
Set output for error messages produced by the default error handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.event.Receiver |
attribute, characters, comment, endElement, namespace, processingInstruction, setUnparsedEntity, startContent, startElement |
Field Detail |
public static final int STANDARD_TREE
public static final int TINY_TREE
protected Configuration config
protected NamePool namePool
protected java.lang.String systemId
protected org.xml.sax.Locator locator
protected DocumentInfo currentDocument
protected boolean started
protected boolean timing
protected boolean lineNumbering
Constructor Detail |
public Builder()
Method Detail |
public void setConfiguration(Configuration config)
Receiver
setConfiguration
in interface Receiver
public Configuration getConfiguration()
Receiver
getConfiguration
in interface Receiver
public void setSystemId(java.lang.String systemId)
Receiver
setSystemId
in interface Receiver
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Result
public void setDocumentLocator(org.xml.sax.Locator loc)
Receiver
setDocumentLocator
in interface Receiver
public void setRootNode(DocumentInfo doc)
public void setTiming(boolean on)
public boolean isTiming()
public void setLineNumbering(boolean onOrOff)
public void startDocument() throws javax.xml.transform.TransformerException
startDocument
in interface Receiver
javax.xml.transform.TransformerException
public void endDocument() throws javax.xml.transform.TransformerException
Receiver
endDocument
in interface Receiver
javax.xml.transform.TransformerException
public DocumentInfo getCurrentDocument()
public static NodeInfo build(javax.xml.transform.Source source, Stripper stripper, Configuration config) throws XPathException
source
- Any javax.xml.transform.Source objectstripper
- A stripper object, if whitespace text nodes are to be stripped;
otherwise null.config
- The Configuration object
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |