public static class XPathParser.NestedLocation extends Object implements Location
| Constructor and Description |
|---|
XPathParser.NestedLocation(Location containingLocation,
int localLineNumber,
int localColumnNumber)
Create a NestedLocation
|
XPathParser.NestedLocation(Location containingLocation,
int localLineNumber,
int localColumnNumber,
String nearbyText)
Create a NestedLocation
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber()
Get the column number of the error within the expression or query
|
Location |
getContainingLocation()
Get the location of the container.
|
int |
getLineNumber()
Get the line number within the containing entity.
|
int |
getLocalLineNumber()
Get the local line number, that is the line number relative to the start of the
expression or query.
|
String |
getNearbyText()
Get text appearing near to the error (typically a syntax error) within the source
text of the expression or query.
|
String |
getPublicId()
Get the public identifier.
|
String |
getSystemId()
Get the system identifier of the expression's container.
|
Location |
saveLocation()
Save an immutable copy of the location information.
|
public XPathParser.NestedLocation(Location containingLocation, int localLineNumber, int localColumnNumber)
containingLocation - the location of the containing construct, typically an attribute or
text node in an XML documentlocalLineNumber - the line number within the containing construct, starting at zerolocalColumnNumber - the column number within the containing construct, starting at zeropublic XPathParser.NestedLocation(Location containingLocation, int localLineNumber, int localColumnNumber, String nearbyText)
containingLocation - the location of the containing construct, typically an attribute or
text node in an XML documentlocalLineNumber - the line number within the containing construct, starting at zerolocalColumnNumber - the column number within the containing construct, starting at zeronearbyText - text appearing in the vicinity of the error locationpublic Location getContainingLocation()
public int getColumnNumber()
getColumnNumber in interface SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface Locatorpublic String getSystemId()
getSystemId in interface SourceLocatorgetSystemId in interface LocationgetSystemId in interface Locatorpublic String getPublicId()
getPublicId in interface SourceLocatorgetPublicId in interface LocationgetPublicId in interface Locatorpublic int getLocalLineNumber()
public int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface Locatorpublic String getNearbyText()
public Location saveLocation()
saveLocation in interface LocationCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.