-
- All Superinterfaces:
- XMLEvent, XMLStreamConstants
public interface DTD extends XMLEvent
This is the top level interface for events dealing with DTDs- Since:
- 1.6
-
-
Field Summary
-
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
-
-
Method Summary
Methods 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.-
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
-
-
-
-
Method Detail
-
getDocumentTypeDeclaration
String getDocumentTypeDeclaration()
Returns the entire Document Type Declaration as a string, including the internal DTD subset. This may be null if there is not an internal subset. If it is not null it must return the entire Document Type Declaration which matches the doctypedecl production in the XML 1.0 specification
-
getProcessedDTD
Object getProcessedDTD()
Returns an implementation defined representation of the DTD. This method may return null if no representation is available.
-
getNotations
List getNotations()
Return a List containing the notations declared in the DTD. This list must contain NotationDeclaration events.- Returns:
- an unordered list of NotationDeclaration events
- See Also:
NotationDeclaration
-
getEntities
List getEntities()
Return a List containing the general entities, both external and internal, declared in the DTD. This list must contain EntityDeclaration events.- Returns:
- an unordered list of EntityDeclaration events
- See Also:
EntityDeclaration
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/xml/stream/events/dtd.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.