net.sf.saxon.expr
public class ExpressionLocation extends Object implements SaxonLocator, Serializable
Constructor Summary | |
---|---|
ExpressionLocation() | |
ExpressionLocation(SourceLocator loc) | |
ExpressionLocation(LocationProvider provider, int locationId) | |
ExpressionLocation(String systemId, int lineNumber, int columnNumber) |
Method Summary | |
---|---|
int | getColumnNumber() |
int | getLineNumber() |
int | getLineNumber(int locationId) |
String | getPublicId() |
static SaxonLocator | getSourceLocator(int locationId, LocationProvider locationProvider)
Construct an object holding location information for a validation error message |
String | getSystemId() |
String | getSystemId(int locationId) |
void | setColumnNumber(int columnNumber) |
void | setLineNumber(int lineNumber) |
void | setPublicId(String publicId) |
void | setSystemId(String systemId) |
static String | truncateURI(String uri)
Truncate a URI to its last component |
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