Package javanet.staxutils
Class SimpleLocation
java.lang.Object
javanet.staxutils.SimpleLocation
- All Implemented Interfaces:
ExtendedLocation,StaticLocation,Location
Basic implementation of
ExtendedLocation.- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleLocation(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) SimpleLocation(Location loc) -
Method Summary
-
Constructor Details
-
SimpleLocation
-
SimpleLocation
-
SimpleLocation
-
SimpleLocation
-
-
Method Details
-
getCharacterOffset
public int getCharacterOffset()- Specified by:
getCharacterOffsetin interfaceLocation
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceLocation
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceLocation
-
getPublicId
- Specified by:
getPublicIdin interfaceLocation
-
getSystemId
- Specified by:
getSystemIdin interfaceLocation
-
getNestedLocation
Description copied from interface:ExtendedLocationReturns a nestedLocation. Nested locations can be used to locate errors in linked files. This is useful when working with external entities, included files, and so forth.- Specified by:
getNestedLocationin interfaceExtendedLocation- Returns:
- The nested
Location, ornull.
-
toString
-