Saxon.Api
Class XdmDestination.TreeProtector
- Enclosing class
- XdmDestination
-
public class XdmDestination.TreeProtector
- extends net.sf.saxon.event.ProxyReceiver
TreeProtector is a filter that ensures that the events reaching the Builder constitute a single
tree rooted at an element or document node (because anything else will crash the builder)
Constructor Summary |
|
|---|---|
| TreeProtector (net.sf.saxon.event.Receiver next) Constructor |
|
Method Summary |
|
|---|---|
| void | append(net.sf.saxon.om.Item item, net.sf.saxon.s9api.Location location, int copyNamespaces) Append an arbitrary item (node or atomic value) to the output |
| void | characters(java.lang.CharSequence chars, net.sf.saxon.s9api.Location location, int properties) Character data |
| void | comment(java.lang.CharSequence chars, net.sf.saxon.s9api.Location location, int properties) Output a comment |
| void | endDocument() Notify the end of a document node |
| void | endElement() End of element |
| void | processingInstruction(string target, java.lang.CharSequence data, net.sf.saxon.s9api.Location location, int properties) Processing instruction |
| void | startDocument(int properties) Start of a document node |
| void | startElement(net.sf.saxon.om.NodeName nameCode, net.sf.saxon.type.SchemaType typeCode, net.sf.saxon.om.AttributeMap attributes, net.sf.saxon.om.NamespaceMap namespaces, net.sf.saxon.s9api.Location location, int properties) Notify the start of an element |
Constructor Detail
TreeProtector
Constructor
Parameters:
next - Set the underlying receiverMethod Detail
append
net.sf.saxon.s9api.Location location,
int copyNamespaces)
characters
net.sf.saxon.s9api.Location location,
int properties)
Character data
Parameters:
chars - Character data as inputlocation - Provides information such as line number and system IDproperties - Bit significant value. The following bits are definedcomment
net.sf.saxon.s9api.Location location,
int properties)
Output a comment
Parameters:
chars - The content of the commentlocation - provides information such as line number and system IDproperties - Additional information about the commentendDocument
Notify the end of a document node
endElement
End of element
processingInstruction
java.lang.CharSequence data,
net.sf.saxon.s9api.Location location,
int properties)
Processing instruction
Parameters:
target - The PI name. This must be a legal name (it will not be checked)data - The data portion of the processing instructionlocation - provides information about the PIproperties - Additional information about the PIstartDocument
Start of a document node
Parameters:
propertiesstartElement
net.sf.saxon.type.SchemaType typeCode,
net.sf.saxon.om.AttributeMap attributes,
net.sf.saxon.om.NamespaceMap namespaces,
net.sf.saxon.s9api.Location location,
int properties)
Notify the start of an element
Parameters:
nameCodetypeCodeattributesnamespaceslocationproperties
Append an arbitrary item (node or atomic value) to the output
Parameters:
item- the item to be appendedlocation- the location of the calling instruction, for diagnosticscopyNamespaces- if the item is an element node, this indicates whether its namespace need to be copied. 0x80000 means ALL_NAMESPACE, 0x40000 means LOCAL_NAMESPACE and 0 means no namespace