Package org.codehaus.stax2.ri.evt
Class DTDEventImpl
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
org.codehaus.stax2.ri.evt.DTDEventImpl
- All Implemented Interfaces:
DTD
,XMLEvent
,XMLStreamConstants
,DTD2
,XMLEvent2
Vanilla implementation of a DTD event. Note that as is, it is not
really complete, since there is no way to access declared notations
and entities, because Stax 1.0 has no method for dispatching calls.
As such, it is expected that actual implementations would usually
extend this class, instead of using it as is.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Object
protected String
Full textual presentation of the DOCTYPE event; usually only constructed when needed, but sometimes (when using 'broken' older StAX interfaces), may be the only piece that's actually passed.protected final String
protected final String
protected final String
protected final String
Fields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocation
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
Constructor Summary
ConstructorsConstructorDescriptionDTDEventImpl
(Location loc, String fullText) DTDEventImpl
(Location loc, String rootName, String intSubset) Constructor used when only partial information is available.DTDEventImpl
(Location loc, String rootName, String sysId, String pubId, String intSubset, Object dtd) -
Method Summary
Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
-
Field Details
-
mRootName
-
mSystemId
-
mPublicId
-
mInternalSubset
-
mDTD
-
mFullText
Full textual presentation of the DOCTYPE event; usually only constructed when needed, but sometimes (when using 'broken' older StAX interfaces), may be the only piece that's actually passed.
-
-
Constructor Details
-
DTDEventImpl
-
DTDEventImpl
Constructor used when only partial information is available. -
DTDEventImpl
-
-
Method Details
-
getDocumentTypeDeclaration
- Specified by:
getDocumentTypeDeclaration
in interfaceDTD
-
getEntities
- Specified by:
getEntities
in interfaceDTD
-
getNotations
- Specified by:
getNotations
in interfaceDTD
-
getProcessedDTD
- Specified by:
getProcessedDTD
in interfaceDTD
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLEvent
- Specified by:
getEventType
in classBaseEventImpl
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicode
in interfaceXMLEvent
- Specified by:
writeAsEncodedUnicode
in classBaseEventImpl
- Throws:
XMLStreamException
-
writeUsing
- Specified by:
writeUsing
in interfaceXMLEvent2
- Specified by:
writeUsing
in classBaseEventImpl
- Throws:
XMLStreamException
-
getRootName
- Specified by:
getRootName
in interfaceDTD2
-
getSystemId
- Specified by:
getSystemId
in interfaceDTD2
-
getPublicId
- Specified by:
getPublicId
in interfaceDTD2
-
getInternalSubset
- Specified by:
getInternalSubset
in interfaceDTD2
-
equals
Description copied from class:BaseEventImpl
Declared abstract to force redefinition by sub-classes- Specified by:
equals
in classBaseEventImpl
-
hashCode
public int hashCode()Description copied from class:BaseEventImpl
Declared abstract to force redefinition by sub-classes- Specified by:
hashCode
in classBaseEventImpl
-
doGetDocumentTypeDeclaration
- Throws:
XMLStreamException
-