Package org.apache.axiom.util.stax
Class DummyLocation
- java.lang.Object
-
- org.apache.axiom.util.stax.DummyLocation
-
- All Implemented Interfaces:
Location
public class DummyLocation extends Object implements Location
DummyLocation
implementation. It always returns -1 for the location andnull
for the publicId and systemId. It may be used byXMLStreamReader
implementations that don't support the concept of location.
-
-
Field Summary
Fields Modifier and Type Field Description static DummyLocation
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protected
DummyLocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCharacterOffset()
int
getColumnNumber()
int
getLineNumber()
String
getPublicId()
String
getSystemId()
-
-
-
Field Detail
-
INSTANCE
public static final DummyLocation INSTANCE
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interfaceLocation
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interfaceLocation
-
getCharacterOffset
public int getCharacterOffset()
- Specified by:
getCharacterOffset
in interfaceLocation
-
getPublicId
public String getPublicId()
- Specified by:
getPublicId
in interfaceLocation
-
getSystemId
public String getSystemId()
- Specified by:
getSystemId
in interfaceLocation
-
-