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.SourceLocator
getColumnNumber
in interface Location
getColumnNumber
in interface org.xml.sax.Locator
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in interface Location
getSystemId
in interface org.xml.sax.Locator
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.transform.SourceLocator
getPublicId
in interface Location
getPublicId
in interface org.xml.sax.Locator
public int getLocalLineNumber()
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in interface Location
getLineNumber
in interface org.xml.sax.Locator
public java.lang.String getNearbyText()
public Location saveLocation()
saveLocation
in interface Location
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.