The Builder class is responsible for taking a stream of SAX events and constructing
a Document tree.
attribute
public void attribute(int nameCode,
int typeCode,
CharSequence value,
int locationId,
int properties)
throws XPathException
- attribute in interface Receiver
characters
public void characters(CharSequence chars,
int locationId,
int properties)
throws XPathException
Notify a text node. Adjacent text nodes must have already been merged
- characters in interface Receiver
comment
public void comment(CharSequence chars,
int locationId,
int properties)
throws XPathException
Notify a comment
- comment in interface Receiver
graftElement
public void graftElement(ElementImpl element)
throws XPathException
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.
element
- the element to be grafted in as a new child.
namespace
public void namespace(int namespaceCode,
int properties)
- namespace in interface Receiver
processingInstruction
public void processingInstruction(String name,
CharSequence remainder,
int locationId,
int properties)
Notify a processing instruction
- processingInstruction in interface Receiver
setNodeFactory
public void setNodeFactory(NodeFactory factory)
Set the Node Factory to use. If none is specified, the Builder uses its own.
factory
- the node factory to be used. This allows custom objects to be used to represent
the elements in the tree.
setUnparsedEntity
public void setUnparsedEntity(String name,
String uri,
String publicId)
Set an unparsed entity URI for the document
- setUnparsedEntity in interface Receiver
startElement
public void startElement(int nameCode,
int typeCode,
int locationId,
int properties)
throws XPathException
Notify the start of an element
- startElement in interface Receiver