public class Stax2LocationAdapter extends java.lang.Object implements XMLStreamLocation2
XMLStreamLocation2, which just
wraps Stax 1.0 Location and adds no-operation implementation
of the additions.| Modifier and Type | Field and Description |
|---|---|
protected javax.xml.stream.Location |
mParentLocation |
protected javax.xml.stream.Location |
mWrappedLocation |
NOT_AVAILABLE| Constructor and Description |
|---|
Stax2LocationAdapter(javax.xml.stream.Location loc) |
Stax2LocationAdapter(javax.xml.stream.Location loc,
javax.xml.stream.Location parent) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCharacterOffset() |
int |
getColumnNumber() |
XMLStreamLocation2 |
getContext()
Method that can be used to traverse nested locations, like ones
created when expanding entities (especially external entities).
|
int |
getLineNumber() |
java.lang.String |
getPublicId() |
java.lang.String |
getSystemId() |
protected final javax.xml.stream.Location mWrappedLocation
protected final javax.xml.stream.Location mParentLocation
public Stax2LocationAdapter(javax.xml.stream.Location loc)
public Stax2LocationAdapter(javax.xml.stream.Location loc,
javax.xml.stream.Location parent)
public int getCharacterOffset()
getCharacterOffset in interface javax.xml.stream.Locationpublic int getColumnNumber()
getColumnNumber in interface javax.xml.stream.Locationpublic int getLineNumber()
getLineNumber in interface javax.xml.stream.Locationpublic java.lang.String getPublicId()
getPublicId in interface javax.xml.stream.Locationpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.stream.Locationpublic XMLStreamLocation2 getContext()
XMLStreamLocation2getContext in interface XMLStreamLocation2