public class ExplicitLocation extends Object implements Location
| Modifier and Type | Field and Description |
|---|---|
static ExplicitLocation |
UNKNOWN_LOCATION |
| Constructor and Description |
|---|
ExplicitLocation(SourceLocator loc)
Create an ExpressionLocation, taking the data from a supplied JAXP SourceLocator
|
ExplicitLocation(String systemId,
int lineNumber,
int columnNumber)
Create an ExpressionLocation corresponding to a given module, line number, and column number
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber()
Get the column number
|
int |
getLineNumber()
Get the line number
|
String |
getPublicId()
Get the Public ID
|
String |
getSystemId()
Get the system ID (the module URI)
|
static ExplicitLocation |
makeFromSax(Locator loc)
Create an ExpressionLocation, taking the data from a supplied SAX Locator
|
Location |
saveLocation()
Get an immutable copy of this Location object.
|
public static ExplicitLocation UNKNOWN_LOCATION
public ExplicitLocation(SourceLocator loc)
loc - the JAXP SourceLocatorpublic ExplicitLocation(String systemId, int lineNumber, int columnNumber)
systemId - the module URIlineNumber - the line numbercolumnNumber - the column numberpublic static ExplicitLocation makeFromSax(Locator loc)
loc - the SAX Locatorpublic String getSystemId()
getSystemId in interface SourceLocatorgetSystemId in interface LocationgetSystemId in interface Locatorpublic String getPublicId()
getPublicId in interface SourceLocatorgetPublicId in interface LocationgetPublicId in interface Locatorpublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface Locatorpublic int getColumnNumber()
getColumnNumber in interface SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface Locatorpublic Location saveLocation()
saveLocation in interface LocationCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.