org.apache.axiom.util.stax
Class DummyLocation
java.lang.Object
org.apache.axiom.util.stax.DummyLocation
- All Implemented Interfaces:
- javax.xml.stream.Location
- Direct Known Subclasses:
- EmptyOMLocation
public class DummyLocation
- extends java.lang.Object
- implements javax.xml.stream.Location
Dummy Location implementation. It always returns -1 for the location
and null for the publicId and systemId. It may be used by
XMLStreamReader implementations that don't support
the concept of location.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final DummyLocation INSTANCE
DummyLocation
protected DummyLocation()
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber in interface javax.xml.stream.Location
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber in interface javax.xml.stream.Location
getCharacterOffset
public int getCharacterOffset()
- Specified by:
getCharacterOffset 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
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.