Top Description Fields Constructors Methods
com.sun.xml.fastinfoset.stax.events

public Class DTDEvent

extends EventBase
implements DTD
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.DTD, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
java.util.List, javax.xml.stream.events.DTD, .EntityDeclaration, .NotationDeclaration

DTDEvent. Notations and Entities are not used

Field Summary

Modifier and TypeField and Description
private String
private List<EntityDeclaration>
private List<NotationDeclaration>
Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
_eventType_location

Constructor Summary

AccessConstructor and Description
public
DTDEvent()

Creates a new instance of DTDEvent

public

Method Summary

Modifier and TypeMethod and Description
public String
getDocumentTypeDeclaration()

Implements javax.xml.stream.events.DTD.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.

public List<EntityDeclaration>

Returns:

an unordered list of EntityDeclaration events
getEntities
()

Implements javax.xml.stream.events.DTD.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
()

Implements javax.xml.stream.events.DTD.getNotations.

Return a List containing the notations declared in the DTD.

public Object
getProcessedDTD()

Implements javax.xml.stream.events.DTD.getProcessedDTD.

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

public void
public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypegetSystemIdisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementsetEventTypesetLocationwriteAsEncodedUnicode

Field Detail

_dtdback to summary
private String _dtd
_entitiesback to summary
private List<EntityDeclaration> _entities
_notationsback to summary
private List<NotationDeclaration> _notations

Constructor Detail

DTDEventback to summary
public DTDEvent()

Creates a new instance of DTDEvent

Annotations
@SuppressWarnings:this-escape
DTDEventback to summary
public DTDEvent(String dtd)
Annotations
@SuppressWarnings:this-escape

Method Detail

getDocumentTypeDeclarationback to summary
public String getDocumentTypeDeclaration()

Implements javax.xml.stream.events.DTD.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

Annotations
@Override
getEntitiesback to summary
public List<EntityDeclaration> getEntities()

Implements javax.xml.stream.events.DTD.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

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

Implements javax.xml.stream.events.DTD.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

Annotations
@Override
See Also
NotationDeclaration
getProcessedDTDback to summary
public Object getProcessedDTD()

Implements javax.xml.stream.events.DTD.getProcessedDTD.

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

Annotations
@Override
setDTDback to summary
public void setDTD(String dtd)
setEntitiesback to summary
public void setEntities(List<EntityDeclaration> entites)
setNotationsback to summary
public void setNotations(List<NotationDeclaration> notations)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override