    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface com.jclark.xml.parse.DTD

public interface DTD

Information about a DTD.

##

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

##

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.
entityNames(byte)
  Returns an enumeration over the names of entities of the specified type.
getDocumentTypeName()
  Returns the document type name or null if there was no DOCTYPE declaration.
getElementType(String)
  Returns information about the element type with the specified name, or null if there was neither an ELEMENT nor an ATTLIST declaration.
getEntity(byte, String)
  Returns information about the entity with the specified name and type or null if there was no such entity declared.
isComplete()
  Returns true if the complete DTD was processed.
isStandalone()
  Returns true if `standalone="yes"` was specified in the XML declaration.

##

GENERAL_ENTITY

     public static final byte GENERAL_ENTITY

  Indicates a general entity.

  See Also:
    getEntity, entityNames

PARAMETER_ENTITY

     public static final byte PARAMETER_ENTITY

  Indicates a parameter entity.

  See Also:
    getEntity, entityNames

NOTATION

     public static final byte NOTATION

  Indicates an entity declared with a NOTATION declaration.

  See Also:
    getEntity, entityNames

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.

##

getDocumentTypeName

     public abstract String getDocumentTypeName()

  Returns the document type name or null if there was no DOCTYPE declaration.

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

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

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.

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.

isComplete

     public abstract boolean isComplete()

  Returns true if the complete DTD was processed.

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