net.sf.saxon.tinytree
public class TinyBuilder extends Builder
Field Summary | |
---|---|
static int | PARENT_POINTER_INTERVAL |
Constructor Summary | |
---|---|
TinyBuilder()
Create a TinyTree builder |
Method Summary | |
---|---|
void | attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) |
void | characters(CharSequence chars, int locationId, int properties)
Callback interface for SAX: not for application use |
void | close() |
void | comment(CharSequence chars, int locationId, int properties)
Callback interface for SAX: not for application use |
void | endDocument()
Callback interface for SAX: not for application use |
void | endElement()
Callback interface for SAX: not for application use |
int | getCurrentDepth()
Get the current depth in the tree |
NodeInfo | getLastCompletedElement()
Get the last completed element node. |
int[] | getSizeParameters()
Get the size parameters for the tree |
TinyTree | getTree()
Get the tree being built by this builder |
protected int | makeTextNode(CharSequence chars, int len)
Create a text node. |
void | namespace(int namespaceCode, int properties) |
void | open()
Open the event stream |
void | processingInstruction(String piname, CharSequence remainder, int locationId, int properties)
Callback interface for SAX: not for application use |
void | reset() |
void | setSizeParameters(int[] params)
Set the size parameters for the tree |
void | setUnparsedEntity(String name, String uri, String publicId)
Set an unparsed entity in the document |
void | startContent() |
void | startDocument(int properties)
Write a document node to the tree |
void | startElement(int nameCode, int typeCode, int locationId, int properties)
Notify the start tag of an element |
Returns: the current depth
Returns: the last completed element node, that is, the element whose endElement event is the most recent endElement event to be reported
Returns: an array of four integers giving the actual number of non-attribute nodes, the actual number of attributes, the actual number of namespace declarations, and the actual total length of character data
Returns: the TinyTree
Parameters: chars the contents of the text node len the length of the text node
Parameters: params an array of four integers giving the expected number of non-attribute nodes, the expected number of attributes, the expected number of namespace declarations, and the expected total length of character data