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 SourceLocator
getSystemId
in interface Location
getSystemId
in interface Locator
public String getPublicId()
getPublicId
in interface SourceLocator
getPublicId
in interface Location
getPublicId
in interface Locator
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface Location
getLineNumber
in interface Locator
public int getColumnNumber()
getColumnNumber
in interface SourceLocator
getColumnNumber
in interface Location
getColumnNumber
in interface Locator
public Location saveLocation()
saveLocation
in interface Location
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.