public class LocationCopier extends 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 and Description |
---|
LocationCopier(boolean wholeDocument) |
Modifier and Type | Method and 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
|
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 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)Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.