public class ExpressionLocation
extends java.lang.Object
implements javax.xml.transform.SourceLocator, org.xml.sax.Locator
Constructor and Description |
---|
ExpressionLocation()
Create an ExpressionLocation
|
ExpressionLocation(LocationProvider provider,
int locationId)
Create an ExpressionLocation, taking the data from a supplied locationId along with a
LocationProvider to interpret its meaning
|
ExpressionLocation(javax.xml.transform.SourceLocator loc)
Create an ExpressionLocation, taking the data from a supplied JAXP SourceLocator
|
ExpressionLocation(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
|
static javax.xml.transform.SourceLocator |
getSourceLocator(int locationId,
LocationProvider locationProvider)
Construct an object holding location information for a validation error message
|
java.lang.String |
getSystemId()
Get the system ID (the module URI)
|
static ExpressionLocation |
makeFromSax(org.xml.sax.Locator loc)
Create an ExpressionLocation, taking the data from a supplied SAX Locator
|
void |
setColumnNumber(int columnNumber)
Set the column number
|
void |
setLineNumber(int lineNumber)
Set the line number
|
void |
setSystemId(java.lang.String systemId)
Set the systemId (the module URI)
|
public ExpressionLocation()
public ExpressionLocation(javax.xml.transform.SourceLocator loc)
loc
- the JAXP SourceLocatorpublic ExpressionLocation(LocationProvider provider, int locationId)
provider
- the LocationProviderlocationId
- the locationIdpublic ExpressionLocation(java.lang.String systemId, int lineNumber, int columnNumber)
systemId
- the module URIlineNumber
- the line numbercolumnNumber
- the column numberpublic static ExpressionLocation makeFromSax(org.xml.sax.Locator loc)
loc
- the SAX Locatorpublic java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in interface org.xml.sax.Locator
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.transform.SourceLocator
getPublicId
in interface org.xml.sax.Locator
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in interface org.xml.sax.Locator
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in interface org.xml.sax.Locator
public void setSystemId(java.lang.String systemId)
systemId
- the systemIdpublic void setLineNumber(int lineNumber)
lineNumber
- the line number within the modulepublic void setColumnNumber(int columnNumber)
columnNumber
- the column numberpublic static javax.xml.transform.SourceLocator getSourceLocator(int locationId, LocationProvider locationProvider)
locationId
- The locationId as supplied with an event such as startElement or attributelocationProvider
- The object that understands how to interpret the locationIdCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.