com.sun.xml.stream.events
Class DTDEvent

java.lang.Object
  extended by com.sun.xml.stream.events.DummyEvent
      extended by com.sun.xml.stream.events.DTDEvent
All Implemented Interfaces:
javax.xml.stream.events.DTD, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants

public class DTDEvent
extends DummyEvent
implements javax.xml.stream.events.DTD

Author:
Neeraj Bajaj, Sun Microsystesm.

Field Summary
 
Fields inherited from class com.sun.xml.stream.events.DummyEvent
fLocation
 
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()
          Creates a new instance of DTDEvent
DTDEvent(java.lang.String doctypeDeclaration)
           
 
Method Summary
 java.lang.String getDocumentTypeDeclaration()
           
 java.util.List getEntities()
           
 java.util.List getNotations()
           
 java.lang.Object getProcessedDTD()
          Returns an implementation defined representation of the DTD.
protected  void init()
           
 void setDocumentTypeDeclaration(java.lang.String doctypeDeclaration)
           
 void setEntities(java.util.List entites)
           
 void setNotations(java.util.List notations)
           
 java.lang.String toString()
           
protected  void writeAsEncodedUnicodeEx(java.io.Writer writer)
          Helper method in order to expose IOException.
 
Methods inherited from class com.sun.xml.stream.events.DummyEvent
asCharacters, asEndElement, asStartElement, charEncode, getEventType, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, writeAsEncodedUnicode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Constructor Detail

DTDEvent

public DTDEvent()
Creates a new instance of DTDEvent


DTDEvent

public DTDEvent(java.lang.String doctypeDeclaration)
Method Detail

setDocumentTypeDeclaration

public void setDocumentTypeDeclaration(java.lang.String doctypeDeclaration)

getDocumentTypeDeclaration

public java.lang.String getDocumentTypeDeclaration()
Specified by:
getDocumentTypeDeclaration in interface javax.xml.stream.events.DTD

setEntities

public void setEntities(java.util.List entites)

getEntities

public java.util.List getEntities()
Specified by:
getEntities in interface javax.xml.stream.events.DTD

setNotations

public void setNotations(java.util.List notations)

getNotations

public java.util.List getNotations()
Specified by:
getNotations in interface javax.xml.stream.events.DTD

getProcessedDTD

public java.lang.Object getProcessedDTD()
Returns an implementation defined representation of the DTD. This method may return null if no representation is available.

Specified by:
getProcessedDTD in interface javax.xml.stream.events.DTD

init

protected void init()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

writeAsEncodedUnicodeEx

protected void writeAsEncodedUnicodeEx(java.io.Writer writer)
                                throws java.io.IOException
Description copied from class: DummyEvent
Helper method in order to expose IOException.

Specified by:
writeAsEncodedUnicodeEx in class DummyEvent
Parameters:
writer - The writer that will output the data
Throws:
java.io.IOException - if there is an IO error


Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.