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
DummyLocationimplementation. It always returns -1 for the location andnullfor the publicId and systemId. It may be used byXMLStreamReaderimplementations that don't support the concept of location.
-
-
Field Summary
Fields Modifier and Type Field Description static DummyLocationINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protectedDummyLocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCharacterOffset()intgetColumnNumber()intgetLineNumber()StringgetPublicId()StringgetSystemId()
-
-
-
Field Detail
-
INSTANCE
public static final DummyLocation INSTANCE
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumberin interfaceLocation
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumberin interfaceLocation
-
getCharacterOffset
public int getCharacterOffset()
- Specified by:
getCharacterOffsetin interfaceLocation
-
getPublicId
public String getPublicId()
- Specified by:
getPublicIdin interfaceLocation
-
getSystemId
public String getSystemId()
- Specified by:
getSystemIdin interfaceLocation
-
-