|
||||||||||
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 LocationProvider |
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 |
close()
Notify the end of the event stream |
void |
endDocument()
Notify the end of a document node |
Configuration |
getConfiguration()
Get the configuration |
DocumentInfo |
getCurrentDocument()
Get the current document |
LocationProvider |
getDocumentLocator()
Get the Document Locator |
java.lang.String |
getSystemId()
|
boolean |
isTiming()
Get timing option |
void |
open()
Notify the start of the event stream |
void |
setConfiguration(Configuration config)
Set the configuration |
void |
setDocumentLocator(LocationProvider loc)
Set location provider, to identify position in the source document or stylesheet. |
void |
setLineNumbering(boolean is)
|
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(int properties)
Start of a document node. |
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 LocationProvider locator
protected DocumentInfo currentDocument
protected boolean lineNumbering
protected boolean started
protected boolean timing
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 setLineNumbering(boolean is)
public void setDocumentLocator(LocationProvider loc)
Receiver
setDocumentLocator
in interface Receiver
public LocationProvider getDocumentLocator()
getDocumentLocator
in interface Receiver
public void setRootNode(DocumentInfo doc)
public void setTiming(boolean on)
public boolean isTiming()
public void open() throws XPathException
Receiver
open
in interface Receiver
XPathException
public void close() throws XPathException
Receiver
close
in interface Receiver
XPathException
public void startDocument(int properties) throws XPathException
startDocument
in interface Receiver
XPathException
public void endDocument() throws XPathException
endDocument
in interface Receiver
XPathException
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 |