Public Member Functions

org.exolab.castor.xml.dtd.DTDdocument Class Reference

List of all members.

Public Member Functions

 DTDdocument ()
 DTDdocument (String name)
String getName ()
synchronized void addElement (Element element) throws DTDException
Element getElement (String name)
synchronized void addNotation (Notation notation) throws DTDException
Notation getNotation (String name)
synchronized void addGeneralEntity (GeneralEntity generalEntity)
GeneralEntity getGeneralEntity (String name)
Enumeration getElements ()
Enumeration getGeneralEntities ()
Enumeration getNotations ()

Detailed Description

Implementation of DTD document specification.

Author:
Alexander Totok
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:19

Constructor & Destructor Documentation

org.exolab.castor.xml.dtd.DTDdocument.DTDdocument (  ) 
org.exolab.castor.xml.dtd.DTDdocument.DTDdocument ( String  name  ) 

Constructor, setting the name of the document.


Member Function Documentation

synchronized void org.exolab.castor.xml.dtd.DTDdocument.addElement ( Element  element  )  throws DTDException

Adds Element Declaration to the document.

Exceptions:
DTDException if an element has no name or there already exists element with the same name in the document.
synchronized void org.exolab.castor.xml.dtd.DTDdocument.addGeneralEntity ( GeneralEntity  generalEntity  ) 

Adds General Entity Declaration to the document. If there already exists General Entity with the same name in the document, does nothing.

References org.exolab.castor.xml.dtd.GeneralEntity.getName().

synchronized void org.exolab.castor.xml.dtd.DTDdocument.addNotation ( Notation  notation  )  throws DTDException

Adds a Notation Declaration to the document.

Exceptions:
DTDException if a notation has no name or there already exists notation with the same name in the document.
Element org.exolab.castor.xml.dtd.DTDdocument.getElement ( String  name  ) 

Returns requested Element Declaration.

Returns:
Element Declaration with the given name, null if there is no Element with this name in the document.
Enumeration org.exolab.castor.xml.dtd.DTDdocument.getElements (  ) 

Returns enumeration of the Element declarations in the DTD document.

Enumeration org.exolab.castor.xml.dtd.DTDdocument.getGeneralEntities (  ) 

Returns enumeration of the General Entity declarations in the DTD document.

GeneralEntity org.exolab.castor.xml.dtd.DTDdocument.getGeneralEntity ( String  name  ) 

Returns requested Genaral Entity Declaration.

Returns:
General Entity Declaration with the given name, null if there is no General Entity with this name in the document.
String org.exolab.castor.xml.dtd.DTDdocument.getName (  ) 

Returns the name of the document.

Notation org.exolab.castor.xml.dtd.DTDdocument.getNotation ( String  name  ) 

Returns requested Notation Declaration.

Returns:
Notation Declaration with the given name, null if there is no Notation with this name in the document.
Enumeration org.exolab.castor.xml.dtd.DTDdocument.getNotations (  ) 

Returns enumeration of the Notation declarations in the DTD document.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties