Package javanet.staxutils
Class SimpleLocation
- java.lang.Object
-
- javanet.staxutils.SimpleLocation
-
- All Implemented Interfaces:
ExtendedLocation,StaticLocation,Location
public class SimpleLocation extends Object implements ExtendedLocation, StaticLocation
Basic implementation ofExtendedLocation.- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
-
-
Constructor Summary
Constructors Constructor Description 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)SimpleLocation(Location loc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCharacterOffset()intgetColumnNumber()intgetLineNumber()LocationgetNestedLocation()Returns a nestedLocation.StringgetPublicId()StringgetSystemId()StringtoString()
-
-
-
Constructor Detail
-
SimpleLocation
public SimpleLocation(String publicId, String systemId, int lineNumber, Location nestedLocation)
-
SimpleLocation
public SimpleLocation(String publicId, String systemId, int lineNumber, int columnNumber, Location nestedLocation)
-
SimpleLocation
public SimpleLocation(String publicId, String systemId, int lineNumber, int columnNumber, int characterOffset, Location nestedLocation)
-
SimpleLocation
public SimpleLocation(Location loc)
-
-
Method Detail
-
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
public String getPublicId()
- Specified by:
getPublicIdin interfaceLocation
-
getSystemId
public String getSystemId()
- Specified by:
getSystemIdin interfaceLocation
-
getNestedLocation
public Location 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.
-
-