|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.ExpressionLocation
public class ExpressionLocation
Class to hold details of the location of an expression, of an error in a source file, etc.
Constructor Summary | |
---|---|
ExpressionLocation()
|
|
ExpressionLocation(LocationProvider provider,
int locationId)
|
|
ExpressionLocation(SourceLocator loc)
|
|
ExpressionLocation(String systemId,
int lineNumber,
int columnNumber)
|
Method Summary | |
---|---|
int |
getColumnNumber()
|
int |
getLineNumber()
|
int |
getLineNumber(int locationId)
Get the line number within the document or module containing a particular location |
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)
Get the URI of the document or module containing a particular location |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionLocation()
public ExpressionLocation(SourceLocator loc)
public ExpressionLocation(LocationProvider provider, int locationId)
public ExpressionLocation(String systemId, int lineNumber, int columnNumber)
Method Detail |
---|
public String getSystemId()
getSystemId
in interface SourceLocator
getSystemId
in interface Locator
public String getPublicId()
getPublicId
in interface SourceLocator
getPublicId
in interface Locator
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface Locator
public int getColumnNumber()
getColumnNumber
in interface SourceLocator
getColumnNumber
in interface Locator
public void setSystemId(String systemId)
public void setPublicId(String publicId)
public void setLineNumber(int lineNumber)
public void setColumnNumber(int columnNumber)
public String getSystemId(int locationId)
LocationProvider
getSystemId
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)
public int getLineNumber(int locationId)
LocationProvider
getLineNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)
public static SaxonLocator 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 locationId
public static String truncateURI(String uri)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |