net.sf.saxon.expr
public class ExpressionLocation extends Object implements SaxonLocator, Serializable
| Constructor Summary | |
|---|---|
| ExpressionLocation()
Create an ExpressionLocation | |
| ExpressionLocation(SourceLocator loc)
Create an ExpressionLocation, taking the data from a supplied JAXP SourceLocator | |
| ExpressionLocation(LocationProvider provider, long locationId)
Create an ExpressionLocation, taking the data from a supplied locationId along with a
LocationProvider to interpret its meaning | |
| ExpressionLocation(String systemId, int lineNumber, int columnNumber)
Create an ExpressionLocation corresponding to a given module, line number, and column number | |
| Method Summary | |
|---|---|
| int | getColumnNumber()
Get the column number |
| int | getColumnNumber(long locationId) |
| int | getLineNumber()
Get the line number |
| int | getLineNumber(long locationId)
Get the line number corresponding to a given location Id |
| String | getPublicId()
Get the Public ID |
| static SaxonLocator | getSourceLocator(long locationId, LocationProvider locationProvider)
Construct an object holding location information for a validation error message |
| String | getSystemId()
Get the system ID (the module URI) |
| String | getSystemId(long locationId)
Get the system Id corresponding to a given location Id |
| static ExpressionLocation | makeFromSax(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(String systemId)
Set the systemId (the module URI) |
| static String | truncateURI(String uri)
Truncate a URI to its last component |
Parameters: loc the JAXP SourceLocator
Parameters: provider the LocationProvider locationId the locationId
Parameters: systemId the module URI lineNumber the line number columnNumber the column number
Returns: the column number
Returns: the line number
Parameters: locationId the location Id
Returns: the line number
Returns: always null in this implementation
Parameters: locationId The locationId as supplied with an event such as startElement or attribute locationProvider The object that understands how to interpret the locationId
Returns: a SaxonLocator containing the location information
Returns: the system ID
Parameters: locationId the location Id
Returns: the system Id
Parameters: loc the SAX Locator
Parameters: columnNumber the column number
Parameters: lineNumber the line number within the module
Parameters: systemId the systemId
Parameters: uri the URI to be truncated
Returns: the last component of the supplied URI