public class SimpleLocation extends Object implements ExtendedLocation, StaticLocation
ExtendedLocation
.Constructor and Description |
---|
SimpleLocation(Location loc) |
SimpleLocation(String publicId,
String systemId,
int lineNumber,
int columnNumber,
int characterOffset,
Location nestedLocation) |
SimpleLocation(String publicId,
String systemId,
int lineNumber,
int columnNumber,
Location nestedLocation) |
SimpleLocation(String publicId,
String systemId,
int lineNumber,
Location nestedLocation) |
Modifier and Type | Method and Description |
---|---|
int |
getCharacterOffset() |
int |
getColumnNumber() |
int |
getLineNumber() |
Location |
getNestedLocation()
Returns a nested
Location . |
String |
getPublicId() |
String |
getSystemId() |
String |
toString() |
public SimpleLocation(String publicId, String systemId, int lineNumber, Location nestedLocation)
public SimpleLocation(String publicId, String systemId, int lineNumber, int columnNumber, Location nestedLocation)
public SimpleLocation(String publicId, String systemId, int lineNumber, int columnNumber, int characterOffset, Location nestedLocation)
public SimpleLocation(Location loc)
public int getCharacterOffset()
getCharacterOffset
in interface Location
public int getColumnNumber()
getColumnNumber
in interface Location
public int getLineNumber()
getLineNumber
in interface Location
public String getPublicId()
getPublicId
in interface Location
public String getSystemId()
getSystemId
in interface Location
public Location getNestedLocation()
ExtendedLocation
Location
. Nested locations can be used to locate
errors in linked files. This is useful when working with external entities,
included files, and so forth.getNestedLocation
in interface ExtendedLocation
Location
, or null
.