public class DTDEvent extends BaseEvent implements javax.xml.stream.events.DTD
Constructor and Description |
---|
DTDEvent() |
DTDEvent(java.lang.String dtd) |
Modifier and Type | Method and Description |
---|---|
static javax.xml.stream.events.EntityDeclaration |
createEntityDeclaration(com.wutka.dtd.DTDEntity dtdEntity) |
static javax.xml.stream.events.NotationDeclaration |
createNotationDeclaration(com.wutka.dtd.DTDNotation dtdNotation) |
protected void |
doWriteAsEncodedUnicode(java.io.Writer writer)
Template method to be implemented by sub-classes.
|
java.lang.String |
getDocumentTypeDeclaration()
Returns the entire Document Type Declaration as a string, including
the internal DTD subset.
|
java.util.List |
getEntities()
Return a List containing the general entities,
both external and internal, declared in the DTD.
|
java.util.List |
getNotations()
Return a List containing the notations declared in the DTD.
|
java.lang.Object |
getProcessedDTD()
Returns an implementation defined representation of the DTD.
|
protected void |
init() |
void |
setDTD(java.lang.String dtd) |
void |
setEntities(java.util.List l) |
void |
setNotations(java.util.List l) |
asCharacters, asEndElement, asStartElement, getCharacterOffset, getColumnNumber, getEventType, getLineNumber, getLocation, getLocationURI, getPublicId, getSchemaType, getSourceName, getSystemId, getTypeAsString, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, recycle, setCharacterOffset, setColumnNumber, setEventType, setLineNumber, setLocationURI, toString, 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
protected void init()
public static javax.xml.stream.events.EntityDeclaration createEntityDeclaration(com.wutka.dtd.DTDEntity dtdEntity)
public static javax.xml.stream.events.NotationDeclaration createNotationDeclaration(com.wutka.dtd.DTDNotation dtdNotation)
public void setDTD(java.lang.String dtd)
public void setNotations(java.util.List l)
public void setEntities(java.util.List l)
public java.lang.Object getProcessedDTD()
javax.xml.stream.events.DTD
getProcessedDTD
in interface javax.xml.stream.events.DTD
public java.lang.String getDocumentTypeDeclaration()
javax.xml.stream.events.DTD
getDocumentTypeDeclaration
in interface javax.xml.stream.events.DTD
public java.util.List getEntities()
javax.xml.stream.events.DTD
getEntities
in interface javax.xml.stream.events.DTD
EntityDeclaration
public java.util.List getNotations()
javax.xml.stream.events.DTD
getNotations
in interface javax.xml.stream.events.DTD
NotationDeclaration
protected void doWriteAsEncodedUnicode(java.io.Writer writer) throws java.io.IOException
BaseEvent
doWriteAsEncodedUnicode
in class BaseEvent
java.io.IOException