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 SourceLocator
getColumnNumber
in interface Location
getColumnNumber
in interface Locator
public String getSystemId()
getSystemId
in interface SourceLocator
getSystemId
in interface Location
getSystemId
in interface Locator
public String getPublicId()
getPublicId
in interface SourceLocator
getPublicId
in interface Location
getPublicId
in interface Locator
public int getLocalLineNumber()
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface Location
getLineNumber
in interface Locator
public String getNearbyText()
public Location saveLocation()
saveLocation
in interface Location
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.