javax.xml.transform.SourceLocator, LocationProvider, SaxonLocator, SourceLocationProvider, org.xml.sax.Locatorpublic class DOMSender extends java.lang.Object implements SaxonLocator, SourceLocationProvider
| Modifier and Type | Field | Description |
|---|---|---|
protected org.w3c.dom.Node |
root |
|
protected java.lang.String |
systemId |
| Constructor | Description |
|---|---|
DOMSender() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getColumnNumber() |
|
int |
getColumnNumber(long locationId) |
Get the column number within the document or module containing a particular location
|
int |
getLineNumber() |
|
int |
getLineNumber(long locationId) |
Get the line number within the document or module containing a particular location
|
java.lang.String |
getPublicId() |
|
java.lang.String |
getSystemId() |
|
java.lang.String |
getSystemId(long locationId) |
Get the URI of the document or module containing a particular location
|
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(org.w3c.dom.Node start) |
Set the DOM Document that will be walked
|
void |
setSystemId(java.lang.String systemId) |
Set the systemId of the source document (which will also be
used for the destination)
|
public void setPipelineConfiguration(PipelineConfiguration pipe)
pipe - the pipeline configurationpublic void setReceiver(Receiver receiver)
receiver - The object to receive content events.public void setStartNode(org.w3c.dom.Node start)
start - the root node from which the tree walk will startpublic void setSystemId(java.lang.String systemId)
systemId - the systemId of the source documentpublic void send()
throws XPathException
XPathException - On any error in the documentpublic int getColumnNumber()
getColumnNumber in interface org.xml.sax.LocatorgetColumnNumber in interface javax.xml.transform.SourceLocatorpublic int getLineNumber()
getLineNumber in interface org.xml.sax.LocatorgetLineNumber in interface javax.xml.transform.SourceLocatorpublic java.lang.String getPublicId()
getPublicId in interface org.xml.sax.LocatorgetPublicId in interface javax.xml.transform.SourceLocatorpublic java.lang.String getSystemId()
getSystemId in interface org.xml.sax.LocatorgetSystemId in interface javax.xml.transform.SourceLocatorpublic java.lang.String getSystemId(long locationId)
LocationProvidergetSystemId in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)public int getLineNumber(long locationId)
LocationProvidergetLineNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)public int getColumnNumber(long locationId)
LocationProvidergetColumnNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)