Matra DTD Parser 0.8b

com.conradroche.matra.decl
Class DocType

java.lang.Object
  |
  +--com.conradroche.matra.decl.DocType

public class DocType
extends Object

Class to hold all the declaration in the DTD.


Constructor Summary
DocType()
          DocType constructor comment.
 
Method Summary
 void addAttList(AttList attList)
          Adds an attribute list.
 void addElementType(ElementType eleType)
          Adds an element type declaration.
 void addEntity(Entity ent)
          Adds an entity.
 void addParamEntity(Entity ent)
          Adds a parameter entity.
 Hashtable getAllAttributes()
          Returns a Hashtable of all attribute lists.
 AttList getAttributeList(String elementName)
          Returns all the attributes for the specified Element Type.
 Hashtable getElementList()
          Returns a Hashtable of all Element types.
 Enumeration getElementNames()
          Returns the element names for all the element types.
 ElementType getElementType(String elementName)
          Returns the Element Type declaration for the specified element name.
 Entity getEntity(String entityName)
          Returns an entity with the specified name.
 Hashtable getEntityList()
          Returns all the entity definitions.
 String getEntityValue(String entityName)
          Returns the literal value for the specified entity.
 Enumeration getNotationList()
          Returns all the notations.
 Entity getParamEntity(String pEntityName)
          Returns the parameter entity with the specified name.
 String getParamEntityValue(String pEntityName)
          Returns the literal value for the specified entity.
 Enumeration getRootElements()
          Returns the potential root elements for this doctype.
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocType

public DocType()
DocType constructor comment.
Method Detail

addAttList

public void addAttList(AttList attList)
Adds an attribute list.
Parameters:
attList - The attribute list to add.

addElementType

public void addElementType(ElementType eleType)
                    throws DuplicateDefinitionException
Adds an element type declaration.
Parameters:
eleType - The element type declaration.
Throws:
DuplicateDefinitionException - If an element type with the same name already exists.

addEntity

public void addEntity(Entity ent)
Adds an entity.
Parameters:
ent - The entity to add.

addParamEntity

public void addParamEntity(Entity ent)
Adds a parameter entity.
Parameters:
ent - The parameter entity to add.

getAllAttributes

public Hashtable getAllAttributes()
Returns a Hashtable of all attribute lists.
Returns:
A Hashtable of all attribute lists.

getAttributeList

public AttList getAttributeList(String elementName)
Returns all the attributes for the specified Element Type.
Parameters:
elementName - The name of the Element Type.
Returns:
java.util.Enumeration

getElementList

public Hashtable getElementList()
Returns a Hashtable of all Element types.
Returns:
A Hashtable of all Element types.

getElementNames

public Enumeration getElementNames()
Returns the element names for all the element types.
Returns:
An enumeration of element names.

getElementType

public ElementType getElementType(String elementName)
Returns the Element Type declaration for the specified element name.
Parameters:
elementName - The name of the Element Type.
Returns:
The Element Type declaration.

getEntity

public Entity getEntity(String entityName)
Returns an entity with the specified name.
Parameters:
entityName - The name of the entity.
Returns:
An entity with the specified name.

getEntityList

public Hashtable getEntityList()
Returns all the entity definitions.
Returns:
All the entities.

getEntityValue

public String getEntityValue(String entityName)
Returns the literal value for the specified entity.
Parameters:
entityName - The name of the entity.
Returns:
The literal value.

getNotationList

public Enumeration getNotationList()
Returns all the notations.
Returns:
All the notations.

getParamEntity

public Entity getParamEntity(String pEntityName)
Returns the parameter entity with the specified name.
Parameters:
pEntityName - The name of the parameter entity.
Returns:
The parameter entity.

getParamEntityValue

public String getParamEntityValue(String pEntityName)
Returns the literal value for the specified entity.
Parameters:
pEntityName - The name of the parameter entity.
Returns:
The literal value.

getRootElements

public Enumeration getRootElements()
Returns the potential root elements for this doctype.
Returns:
an Enumeration object representing the root elements value

toString

public String toString()
Deprecated.  

Returns the String representation of this DTD.
Overrides:
toString in class Object
Returns:
the String representation of this DTD.

Matra DTD Parser 0.8b