public class DTDEvent extends EventBase implements javax.xml.stream.events.DTD
_eventType, _locationATTRIBUTE, 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 dtd) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDocumentTypeDeclaration()
Returns the entire Document Type Declaration as a string, including
the internal DTD subset.
|
List |
getEntities()
Return a List containing the general entities,
both external and internal, declared in the DTD.
|
List |
getNotations()
Return a List containing the notations declared in the DTD.
|
Object |
getProcessedDTD()
Returns an implementation defined representation of the DTD.
|
void |
setDTD(String dtd) |
void |
setEntities(List entites) |
void |
setNotations(List notations) |
String |
toString() |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, 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 dtd)
public String getDocumentTypeDeclaration()
getDocumentTypeDeclaration in interface javax.xml.stream.events.DTDpublic void setDTD(String dtd)
public List getEntities()
getEntities in interface javax.xml.stream.events.DTDEntityDeclarationpublic List getNotations()
getNotations in interface javax.xml.stream.events.DTDNotationDeclarationpublic Object getProcessedDTD()
getProcessedDTD in interface javax.xml.stream.events.DTDpublic void setEntities(List entites)
public void setNotations(List notations)
Copyright © 2012 Oracle Corpration. All Rights Reserved.