public static class XPathParser.NestedLocation extends java.lang.Object implements Location
| Constructor and Description |
|---|
NestedLocation(Location containingLocation,
int localLineNumber,
int localColumnNumber)
Create a NestedLocation
|
NestedLocation(Location containingLocation,
int localLineNumber,
int localColumnNumber,
java.lang.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.
|
java.lang.String |
getNearbyText()
Get text appearing near to the error (typically a syntax error) within the source
text of the expression or query.
|
java.lang.String |
getPublicId()
Get the public identifier.
|
java.lang.String |
getSystemId()
Get the system identifier of the expression's container.
|
Location |
saveLocation()
Save an immutable copy of the location information.
|
public 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 NestedLocation(Location containingLocation, int localLineNumber, int localColumnNumber, java.lang.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 javax.xml.transform.SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface org.xml.sax.Locatorpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in interface LocationgetSystemId in interface org.xml.sax.Locatorpublic java.lang.String getPublicId()
getPublicId in interface javax.xml.transform.SourceLocatorgetPublicId in interface LocationgetPublicId in interface org.xml.sax.Locatorpublic int getLocalLineNumber()
public int getLineNumber()
getLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface org.xml.sax.Locatorpublic java.lang.String getNearbyText()
public Location saveLocation()
saveLocation in interface LocationCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.