net.sf.saxon.dom
public class DOMWriter extends Object implements Receiver
Method Summary | |
---|---|
void | attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) |
void | characters(CharSequence chars, int locationId, int properties)
Character data. |
void | close()
End of the document. |
void | comment(CharSequence chars, int locationId, int properties)
Handle a comment. |
void | endDocument()
Notify the end of a document node |
void | endElement()
End of an element. |
PipelineConfiguration | getPipelineConfiguration()
Get the pipeline configuration used for this document |
String | getSystemId()
Get the system identifier that was set with setSystemId.
|
void | namespace(int namespaceCode, int properties) |
void | open()
Start of the document. |
void | processingInstruction(String target, CharSequence data, int locationId, int properties)
Handle a processing instruction. |
void | setNextSibling(Node nextSibling)
Set next sibling |
void | setNode(Node node)
Set the attachment point for the new subtree |
void | setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipelineConfiguration |
void | setSystemId(String systemId)
Set the System ID of the destination tree |
void | setUnparsedEntity(String name, String systemID, String publicID)
Notify an unparsed entity URI.
|
void | startContent() |
void | startDocument(int properties)
Start of a document node. |
void | startElement(int nameCode, int typeCode, int locationId, int properties)
Start of an element. |
boolean | usesTypeAnnotations()
Ask whether this Receiver (or the downstream pipeline) makes any use of the type annotations
supplied on element and attribute events |
Returns: The system identifier that was set with setSystemId, or null if setSystemId was not called.
Parameters: nextSibling the node, which must be a child of the attachment point, before which the new subtree will be created. If this is null the new subtree will be added after any existing children of the attachment point.
Parameters: node the node to which the new subtree will be attached
Parameters: name The name of the unparsed entity systemID The system identifier of the unparsed entity publicID The public identifier of the unparsed entity
Returns: true if the Receiver makes any use of this information. If false, the caller may supply untyped nodes instead of supplying the type annotation