| Modifier and Type | Field and Description |
|---|---|
static ExplicitLocation |
UNKNOWN_LOCATION |
| Constructor and Description |
|---|
ExplicitLocation(javax.xml.transform.SourceLocator loc)
Create an ExpressionLocation, taking the data from a supplied JAXP SourceLocator
|
ExplicitLocation(java.lang.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
|
java.lang.String |
getPublicId()
Get the Public ID
|
java.lang.String |
getSystemId()
Get the system ID (the module URI)
|
static boolean |
isUnknown(Location location)
Ask whether this is an "unknown location"
|
static ExplicitLocation |
makeFromSax(org.xml.sax.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(javax.xml.transform.SourceLocator loc)
loc - the JAXP SourceLocatorpublic ExplicitLocation(java.lang.String systemId,
int lineNumber,
int columnNumber)
systemId - the module URIlineNumber - the line number (starting at 1; -1 means unknown)columnNumber - the column number (starting at 1; -1 means unknown)public static ExplicitLocation makeFromSax(org.xml.sax.Locator loc)
loc - the SAX Locatorpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in interface LocationgetSystemId in interface org.xml.sax.Locatorpublic java.lang.String getPublicId()
getPublicId in interface javax.xml.transform.SourceLocatorgetPublicId in interface LocationgetPublicId in interface org.xml.sax.Locatorpublic int getLineNumber()
getLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface org.xml.sax.Locatorpublic int getColumnNumber()
getColumnNumber in interface javax.xml.transform.SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface org.xml.sax.Locatorpublic Location saveLocation()
saveLocation in interface Locationpublic static boolean isUnknown(Location location)
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.