Package org.apache.axiom.ext.stax
Interface DTDReader
-
public interface DTDReader
Optional interface implemented byXMLStreamReader
implementations that provide additional data aboutXMLStreamConstants.DTD
events.All the requirements outlined in
org.apache.axiom.ext.stax
apply to this extension interface. In particular, to get a reference to the extension, the consumer MUST callXMLStreamReader.getProperty(String)
withPROPERTY
as the property name.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY
The name of the property used to look up this extension interface from aXMLStreamReader
implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getPublicId()
Get the public ID of the external subset.String
getRootName()
Get the root name of the DTD, i.e. the name immediately following theDOCTYPE
keyword.String
getSystemId()
Get the system ID of the external subset.
-
-
-
Field Detail
-
PROPERTY
static final String PROPERTY
The name of the property used to look up this extension interface from aXMLStreamReader
implementation.
-
-
Method Detail
-
getRootName
String getRootName()
Get the root name of the DTD, i.e. the name immediately following theDOCTYPE
keyword.- Returns:
- the root name; must not be
null
- Throws:
IllegalStateException
- if the current event is notXMLStreamConstants.DTD
-
getPublicId
String getPublicId()
Get the public ID of the external subset.- Returns:
- the public ID, or
null
if there is no external subset or no public ID has been specified for the external subset - Throws:
IllegalStateException
- if the current event is notXMLStreamConstants.DTD
-
getSystemId
String getSystemId()
Get the system ID of the external subset.- Returns:
- the system ID, or
null
if there is no external subset - Throws:
IllegalStateException
- if the current event is notXMLStreamConstants.DTD
-
-