public class LocationMap extends Object implements LocationProvider
Constructor and Description |
---|
LocationMap()
Create a location map
|
Modifier and Type | Method and Description |
---|---|
int |
allocateLocationId(String module,
int lineNumber)
Allocate a location identifier to an expression
|
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 corresponding to a locationId
|
String |
getSystemId(int locationId)
Get the system identifier corresponding to a locationId
|
public int allocateLocationId(String module, int lineNumber)
module
- the URI (system identifier) of the modulelineNumber
- the line number of the expression within the modulepublic String getSystemId(int locationId)
getSystemId
in interface LocationProvider
locationId
- the location identifierpublic int getLineNumber(int locationId)
getLineNumber
in interface LocationProvider
locationId
- the location identifierpublic 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.