javanet.staxutils
Class SimpleLocation
java.lang.Object
javanet.staxutils.SimpleLocation
- All Implemented Interfaces:
- ExtendedLocation, StaticLocation, javax.xml.stream.Location
public class SimpleLocation
- extends java.lang.Object
- implements ExtendedLocation, StaticLocation
Basic implementation of ExtendedLocation.
- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
|
Constructor Summary |
SimpleLocation(javax.xml.stream.Location loc)
|
SimpleLocation(java.lang.String publicId,
java.lang.String systemId,
int lineNumber,
int columnNumber,
int characterOffset,
javax.xml.stream.Location nestedLocation)
|
SimpleLocation(java.lang.String publicId,
java.lang.String systemId,
int lineNumber,
int columnNumber,
javax.xml.stream.Location nestedLocation)
|
SimpleLocation(java.lang.String publicId,
java.lang.String systemId,
int lineNumber,
javax.xml.stream.Location nestedLocation)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleLocation
public SimpleLocation(java.lang.String publicId,
java.lang.String systemId,
int lineNumber,
javax.xml.stream.Location nestedLocation)
SimpleLocation
public SimpleLocation(java.lang.String publicId,
java.lang.String systemId,
int lineNumber,
int columnNumber,
javax.xml.stream.Location nestedLocation)
SimpleLocation
public SimpleLocation(java.lang.String publicId,
java.lang.String systemId,
int lineNumber,
int columnNumber,
int characterOffset,
javax.xml.stream.Location nestedLocation)
SimpleLocation
public SimpleLocation(javax.xml.stream.Location loc)
getCharacterOffset
public int getCharacterOffset()
- Specified by:
getCharacterOffset in interface javax.xml.stream.Location
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber in interface javax.xml.stream.Location
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber in interface javax.xml.stream.Location
getPublicId
public java.lang.String getPublicId()
- Specified by:
getPublicId in interface javax.xml.stream.Location
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemId in interface javax.xml.stream.Location
getNestedLocation
public javax.xml.stream.Location getNestedLocation()
- Description copied from interface:
ExtendedLocation
- Returns a nested
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.
- Specified by:
getNestedLocation in interface ExtendedLocation
- Returns:
- The nested
Location, or null.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2013. All Rights Reserved.