CopyInformee
, LocationProvider
, SourceLocationProvider
public class LocationCopier extends java.lang.Object implements CopyInformee, SourceLocationProvider
Note: prior to 9.2, the LocationCopier was a ProxyReceiver that passed all events on the pipeline unchanged. It no longer does this, instead it is found as the LocationProvider on a pipeline, but does not itself see the pipeline events.
Constructor | Description |
---|---|
LocationCopier(boolean wholeDocument) |
Modifier and Type | Method | Description |
---|---|---|
int |
getColumnNumber(long locationId) |
Get the column number within the document, entity, or module containing a particular location
|
int |
getLineNumber(long locationId) |
Get the line number within the document, entity or module containing a particular location
|
java.lang.String |
getSystemId(long locationId) |
Get the URI of the document, entity, or module containing a particular location
|
int |
notifyElementNode(NodeInfo element) |
Provide information about the node being copied.
|
public int notifyElementNode(NodeInfo element)
notifyElementNode
in interface CopyInformee
element
- the node being copied, which must be an element nodepublic java.lang.String getSystemId(long locationId)
LocationProvider
getSystemId
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)public int getLineNumber(long locationId)
LocationProvider
getLineNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)public int getColumnNumber(long locationId)
LocationProvider
getColumnNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)