public class DTDEvent extends EventBase implements javax.xml.stream.events.DTD
_eventType, _location
ATTRIBUTE, 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, writeAsEncodedUnicode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
public DTDEvent()
public DTDEvent(String dtd)
public String getDocumentTypeDeclaration()
getDocumentTypeDeclaration
in interface javax.xml.stream.events.DTD
public void setDTD(String dtd)
public List getEntities()
getEntities
in interface javax.xml.stream.events.DTD
EntityDeclaration
public List getNotations()
getNotations
in interface javax.xml.stream.events.DTD
NotationDeclaration
public Object getProcessedDTD()
getProcessedDTD
in interface javax.xml.stream.events.DTD
public void setEntities(List entites)
public void setNotations(List notations)
Copyright © 2019 Oracle Corpration. All rights reserved.