|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.event.SequenceReceiver
net.sf.saxon.event.ProxyReceiver
net.sf.saxon.event.LocationCopier
public class LocationCopier
A Receiver that can be inserted into an event pipeline to copy location information. The class acts as a LocationProvider, so it supports getSystemId() and getLineNumber() methods; the location returned can vary for each node, and is set by the class generating the events. The class is used when it is necessary to copy a subtree along with its location information; for example, when copying an inline schema within a stylesheet to a separate schema document.
| Field Summary |
|---|
| Fields inherited from interface javax.xml.transform.Result |
|---|
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
| Constructor Summary | |
|---|---|
LocationCopier()
|
|
LocationCopier(Receiver nextReceiver)
|
|
| Method Summary | |
|---|---|
int |
getLineNumber()
Get the line number |
int |
getLineNumber(long locationId)
Get the line number within the document or module containing a particular location |
String |
getSystemId(long locationId)
Get the URI of the document or module containing a particular location |
void |
setLineNumber(int lineNumber)
Set the line number |
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration |
| Methods inherited from class net.sf.saxon.event.ProxyReceiver |
|---|
append, attribute, characters, close, comment, endDocument, endElement, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, open, processingInstruction, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument, startElement |
| Methods inherited from class net.sf.saxon.event.SequenceReceiver |
|---|
getPipelineConfiguration, getSystemId |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocationCopier()
public LocationCopier(Receiver nextReceiver)
| Method Detail |
|---|
public void setPipelineConfiguration(PipelineConfiguration pipe)
Receiver
setPipelineConfiguration in interface ReceiversetPipelineConfiguration in class ProxyReceiverpipe - the pipeline configurationpublic void setLineNumber(int lineNumber)
lineNumber - the line numberpublic int getLineNumber()
public String getSystemId(long locationId)
LocationProvider
getSystemId in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)
public int getLineNumber(long locationId)
LocationProvider
getLineNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||