net.sf.saxon.dom

Class DOMSender

Implemented Interfaces:
Locator, LocationProvider, SaxonLocator, SourceLocator, SourceLocationProvider

public class DOMSender
extends java.lang.Object
implements SaxonLocator, SourceLocationProvider

DOMSender.java: pseudo-SAX driver for a DOM source document. This class takes an existing DOM Document and walks around it in a depth-first traversal, calling a Receiver to process the nodes as it does so

Field Summary

protected Node
root
protected String
systemId

Method Summary

int
getColumnNumber()
int
getLineNumber()
int
getLineNumber(long locationId)
String
getPublicId()
String
getSystemId()
String
getSystemId(long locationId)
void
send()
Walk a document (traversing the nodes depth first)
void
setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration
void
setReceiver(Receiver receiver)
Set the receiver.
void
setStartNode(Node start)
Set the DOM Document that will be walked
void
setSystemId(String systemId)
Set the systemId of the source document (which will also be used for the destination)

Field Details

root

protected Node root

systemId

protected String systemId

Method Details

getColumnNumber

public int getColumnNumber()

getLineNumber

public int getLineNumber()

getLineNumber

public int getLineNumber(long locationId)
Specified by:
getLineNumber in interface LocationProvider

getPublicId

public String getPublicId()

getSystemId

public String getSystemId()

getSystemId

public String getSystemId(long locationId)
Specified by:
getSystemId in interface LocationProvider

send

public void send()
            throws XPathException
Walk a document (traversing the nodes depth first)
Throws:
XPathException - On any error in the document

setPipelineConfiguration

public void setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration
Parameters:
pipe - the pipeline configuration

setReceiver

public void setReceiver(Receiver receiver)
Set the receiver.
Parameters:
receiver - The object to receive content events.

setStartNode

public void setStartNode(Node start)
Set the DOM Document that will be walked
Parameters:
start - the root node from which the tree walk will start

setSystemId

public void setSystemId(String systemId)
Set the systemId of the source document (which will also be used for the destination)
Parameters:
systemId - the systemId of the source document