public class DTDEvent extends DummyEvent implements DTD
fLocationATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
DTDEvent()
Creates a new instance of DTDEvent
|
DTDEvent(String doctypeDeclaration) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDocumentTypeDeclaration() |
List |
getEntities() |
List |
getNotations() |
Object |
getProcessedDTD()
Returns an implementation defined representation of the DTD.
|
protected void |
init() |
void |
setDocumentTypeDeclaration(String doctypeDeclaration) |
void |
setEntities(List entites) |
void |
setNotations(List notations) |
String |
toString() |
protected void |
writeAsEncodedUnicodeEx(Writer writer)
Helper method in order to expose IOException.
|
asCharacters, asEndElement, asStartElement, charEncode, getEventType, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, writeAsEncodedUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic DTDEvent()
public DTDEvent(String doctypeDeclaration)
public void setDocumentTypeDeclaration(String doctypeDeclaration)
public String getDocumentTypeDeclaration()
getDocumentTypeDeclaration in interface DTDpublic void setEntities(List entites)
public List getEntities()
getEntities in interface DTDpublic void setNotations(List notations)
public List getNotations()
getNotations in interface DTDpublic Object getProcessedDTD()
getProcessedDTD in interface DTDprotected void init()
protected void writeAsEncodedUnicodeEx(Writer writer) throws IOException
DummyEventwriteAsEncodedUnicodeEx in class DummyEventwriter - The writer that will output the dataIOException - if there is an IO errorCopyright © 2018–2021 mhoffrogge. All rights reserved.