javanet.staxutils.events
Class DTDEvent

java.lang.Object
  extended by javanet.staxutils.events.AbstractXMLEvent
      extended by javanet.staxutils.events.DTDEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ExtendedXMLEvent, DTD, XMLEvent, XMLStreamConstants

public class DTDEvent
extends AbstractXMLEvent
implements DTD

DTD event implementation.

Version:
$Revision: 1.2 $
Author:
Christian Niles
See Also:
Serialized Form

Field Summary
protected  java.lang.String declaration
          The full DTD declaration.
protected  java.util.List entities
          The list of EntityDeclarations.
protected  java.util.List notations
          The list of NotationDeclarations.
 
Fields inherited from class javanet.staxutils.events.AbstractXMLEvent
location, schemaType
 
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
DTDEvent(DTD that)
          Copy constructor.
DTDEvent(java.lang.String declaration, java.util.List entities, java.util.List notations, Location location)
           
DTDEvent(java.lang.String declaration, Location location)
           
 
Method Summary
 java.lang.String getDocumentTypeDeclaration()
           
 java.util.List getEntities()
           
 int getEventType()
          Returns XMLStreamConstants.DTD.
 java.util.List getNotations()
           
 java.lang.Object getProcessedDTD()
           
 
Methods inherited from class javanet.staxutils.events.AbstractXMLEvent
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, 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, writeAsEncodedUnicode
 

Field Detail

declaration

protected java.lang.String declaration
The full DTD declaration.


entities

protected java.util.List entities
The list of EntityDeclarations.


notations

protected java.util.List notations
The list of NotationDeclarations.

Constructor Detail

DTDEvent

public DTDEvent(java.lang.String declaration,
                Location location)

DTDEvent

public DTDEvent(java.lang.String declaration,
                java.util.List entities,
                java.util.List notations,
                Location location)

DTDEvent

public DTDEvent(DTD that)
Copy constructor.

Method Detail

getEventType

public int getEventType()
Returns XMLStreamConstants.DTD.

Specified by:
getEventType in interface XMLEvent

getDocumentTypeDeclaration

public java.lang.String getDocumentTypeDeclaration()
Specified by:
getDocumentTypeDeclaration in interface DTD

getEntities

public java.util.List getEntities()
Specified by:
getEntities in interface DTD

getNotations

public java.util.List getNotations()
Specified by:
getNotations in interface DTD

getProcessedDTD

public java.lang.Object getProcessedDTD()
Specified by:
getProcessedDTD in interface DTD