Package org.codehaus.stax2.ri
Class Stax2LocationAdapter
java.lang.Object
org.codehaus.stax2.ri.Stax2LocationAdapter
- All Implemented Interfaces:
Location
,XMLStreamLocation2
Simple implementation of
XMLStreamLocation2
, which just
wraps Stax 1.0 Location
and adds no-operation implementation
of the additions.-
Field Summary
FieldsFields inherited from interface org.codehaus.stax2.XMLStreamLocation2
NOT_AVAILABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
Method that can be used to traverse nested locations, like ones created when expanding entities (especially external entities).int
-
Field Details
-
mWrappedLocation
-
mParentLocation
-
-
Constructor Details
-
Stax2LocationAdapter
-
Stax2LocationAdapter
-
-
Method Details
-
getCharacterOffset
public int getCharacterOffset()- Specified by:
getCharacterOffset
in interfaceLocation
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumber
in interfaceLocation
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumber
in interfaceLocation
-
getPublicId
- Specified by:
getPublicId
in interfaceLocation
-
getSystemId
- Specified by:
getSystemId
in interfaceLocation
-
getContext
Description copied from interface:XMLStreamLocation2
Method that can be used to traverse nested locations, like ones created when expanding entities (especially external entities). If so, single location object only contains information about specific offsets and ids, and a link to its context. Outermost location will return null to indicate there is no more information to retrieve.- Specified by:
getContext
in interfaceXMLStreamLocation2
- Returns:
- Location in the context (parent input source), if any; null for locations in the outermost known context
-