org.codehaus.staxmate.util
Class Stax2LocationAdapter

java.lang.Object
  extended by org.codehaus.staxmate.util.Stax2LocationAdapter
All Implemented Interfaces:
javax.xml.stream.Location, org.codehaus.stax2.XMLStreamLocation2

public class Stax2LocationAdapter
extends java.lang.Object
implements org.codehaus.stax2.XMLStreamLocation2

Simple implementation of XMLStreamLocation2, which just wraps Stax 1.0 Location and adds simple chaining functionality (although it's unlikely it will be used here)


Field Summary
protected  javax.xml.stream.Location mParentLocation
           
protected  javax.xml.stream.Location mWrappedLocation
           
 
Constructor Summary
Stax2LocationAdapter(javax.xml.stream.Location loc)
           
Stax2LocationAdapter(javax.xml.stream.Location loc, javax.xml.stream.Location parent)
           
 
Method Summary
 int getCharacterOffset()
           
 int getColumnNumber()
           
 org.codehaus.stax2.XMLStreamLocation2 getContext()
           
 int getLineNumber()
           
 java.lang.String getPublicId()
           
 java.lang.String getSystemId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mWrappedLocation

protected final javax.xml.stream.Location mWrappedLocation

mParentLocation

protected final javax.xml.stream.Location mParentLocation
Constructor Detail

Stax2LocationAdapter

public Stax2LocationAdapter(javax.xml.stream.Location loc)

Stax2LocationAdapter

public Stax2LocationAdapter(javax.xml.stream.Location loc,
                            javax.xml.stream.Location parent)
Method Detail

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

getContext

public org.codehaus.stax2.XMLStreamLocation2 getContext()
Specified by:
getContext in interface org.codehaus.stax2.XMLStreamLocation2