All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.xmlmiddleware.schemas.dtds.DTD
DTD and the classes it points to are designed to be read-only. While you can use them to create your own model of a DTD, you do so at your own risk. This is because DTD and the classes it points to use public class variables to hold information. The lack of mutator (set) methods means it is easy to construct an invalid DTD.
public Hashtable elementTypes
Keyed by the element type's XMLName.
public Hashtable notations
Keyed by the notation's name.
public Hashtable parameterEntities
Keyed by the entity's name.
WARNING! The ParameterEntity objects in this Hashtable are used during parsing. After parsing, this Hashtable and the ParameterEntity objects it contains are not guaranteed to contain useful information. In particular, ParameterEntity objects cannot be used to reconstruct a DTD and are not reference from where they were used, such as in content models. This is because DTD and its related classes are designed to be used by applications that want to explore the "logical" structure of a DTD -- that is, its element types, attributes, and notations -- rather than its physical structure.
public Hashtable parsedGeneralEntities
Keyed by the entity's name.
public Hashtable unparsedEntities
Keyed by the entity's name.
public DTD()
public ElementType createElementType(XMLName name)
If the ElementType already exists, it is returned. Otherwise, a new ElementType is created.
public ElementType createElementType(String uri, String localName, String prefix)
If the ElementType already exists, it is returned. Otherwise, a new ElementType is created.
All Packages Class Hierarchy This Package Previous Next Index