public class LocationMap extends Object implements LocationProvider, Serializable
| 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(long locationId)
Get the column number within the document, entity, or module containing a particular location
|
int |
getLineNumber(long locationId)
Get the line number corresponding to a locationId
|
String |
getSystemId(long 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(long locationId)
getSystemId in interface LocationProviderlocationId - the location identifierpublic int getLineNumber(long locationId)
getLineNumber in interface LocationProviderlocationId - the location identifierpublic int getColumnNumber(long locationId)
LocationProvidergetColumnNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.