APIdia Launch Partner
Top Description Methods
javax.xml.stream.events

public Interface DTD

extends XMLEvent
Known Direct Implementers
com.sun.xml.internal.stream.events.DTDEvent
Imports
java.util.List

This is the top level interface for events dealing with DTDs
Author
Copyright (c) 2009 by Oracle Corporation. All Rights Reserved.
Since
1.6
Version
1.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the Document Type Declaration
getDocumentTypeDeclaration
()

Returns the entire Document Type Declaration as a string, including the internal DTD subset.

public List<EntityDeclaration>

Returns:

an unordered list of EntityDeclaration events
getEntities
()

Return a List containing the general entities, both external and internal, declared in the DTD.

public List<NotationDeclaration>

Returns:

an unordered list of NotationDeclaration events
getNotations
()

Return a List containing the notations declared in the DTD.

public Object

Returns:

the representation of the DTD
getProcessedDTD
()

Returns an implementation defined representation of the DTD.

Inherited from javax.xml.stream.events.XMLEvent:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypeisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementwriteAsEncodedUnicode

Method Detail

getDocumentTypeDeclarationback to summary
public 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

Returns:String

the Document Type Declaration

getEntitiesback to summary
public List<EntityDeclaration> getEntities()

Return a List containing the general entities, both external and internal, declared in the DTD. This list must contain EntityDeclaration events.

Returns:List<EntityDeclaration>

an unordered list of EntityDeclaration events

See Also
EntityDeclaration
getNotationsback to summary
public List<NotationDeclaration> getNotations()

Return a List containing the notations declared in the DTD. This list must contain NotationDeclaration events.

Returns:List<NotationDeclaration>

an unordered list of NotationDeclaration events

See Also
NotationDeclaration
getProcessedDTDback to summary
public Object getProcessedDTD()

Returns an implementation defined representation of the DTD. This method may return null if no representation is available.

Returns:Object

the representation of the DTD