All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.jclark.xml.parse.DTD

public interface DTD
Information about a DTD.


Variable Index

 o EXTERNAL_SUBSET_NAME
The external subset declared in the document type declaration is modelled as a parameter entity with this name.
 o GENERAL_ENTITY
Indicates a general entity.
 o NOTATION
Indicates an entity declared with a NOTATION declaration.
 o PARAMETER_ENTITY
Indicates a parameter entity.

Method Index

 o elementTypeNames()
Returns an enumeration over the names of element types which were declared in the DTD or for which attributes were declared in the DTD.
 o entityNames(byte)
Returns an enumeration over the names of entities of the specified type.
 o getDocumentTypeName()
Returns the document type name or null if there was no DOCTYPE declaration.
 o getElementType(String)
Returns information about the element type with the specified name, or null if there was neither an ELEMENT nor an ATTLIST declaration.
 o getEntity(byte, String)
Returns information about the entity with the specified name and type or null if there was no such entity declared.
 o isComplete()
Returns true if the complete DTD was processed.
 o isStandalone()
Returns true if standalone="yes" was specified in the XML declaration.

Variables

 o GENERAL_ENTITY
 public static final byte GENERAL_ENTITY
Indicates a general entity.

See Also:
getEntity, entityNames
 o PARAMETER_ENTITY
 public static final byte PARAMETER_ENTITY
Indicates a parameter entity.

See Also:
getEntity, entityNames
 o NOTATION
 public static final byte NOTATION
Indicates an entity declared with a NOTATION declaration.

See Also:
getEntity, entityNames
 o EXTERNAL_SUBSET_NAME
 public static final String EXTERNAL_SUBSET_NAME
The external subset declared in the document type declaration is modelled as a parameter entity with this name. This will not be included in the names enumerated by entityNames. If there is an external subset then its contents will be preceded by a StartEntityReferenceEvent with this name, and followed by an EndEntityReferenceEvent.

Methods

 o getDocumentTypeName
 public abstract String getDocumentTypeName()
Returns the document type name or null if there was no DOCTYPE declaration.

 o getEntity
 public abstract Entity getEntity(byte entityType,
                                  String name)
Returns information about the entity with the specified name and type or null if there was no such entity declared.

See Also:
GENERAL_ENTITY, PARAMETER_ENTITY, NOTATION
 o entityNames
 public abstract Enumeration entityNames(byte entityType)
Returns an enumeration over the names of entities of the specified type.

See Also:
GENERAL_ENTITY, PARAMETER_ENTITY, NOTATION
 o getElementType
 public abstract ElementType getElementType(String name)
Returns information about the element type with the specified name, or null if there was neither an ELEMENT nor an ATTLIST declaration.

 o elementTypeNames
 public abstract Enumeration elementTypeNames()
Returns an enumeration over the names of element types which were declared in the DTD or for which attributes were declared in the DTD.

 o isComplete
 public abstract boolean isComplete()
Returns true if the complete DTD was processed.

 o isStandalone
 public abstract boolean isStandalone()
Returns true if standalone="yes" was specified in the XML declaration.


All Packages  Class Hierarchy  This Package  Previous  Next  Index