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(int locationId)
Get the column number within the document, entity, or module containing a particular location
|
int |
getLineNumber(int locationId)
Get the line number within the document, entity or module containing a particular location
|
String |
getSystemId(int 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(int locationId)
LocationProvider
getSystemId
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)public int getLineNumber(int locationId)
LocationProvider
getLineNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)public int getColumnNumber(int locationId)
LocationProvider
getColumnNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.