org.biomage.tools.generate_dtd
Class WriteDTDElement

java.lang.Object
  extended by org.biomage.tools.generate_dtd.WriteDTDElement
Direct Known Subclasses:
WriteDTDClassElement, WriteDTDMageElement, WriteDTDPackageElement

public abstract class WriteDTDElement
extends java.lang.Object

Description: Class that is resposible for generating a DTD file for the classes represented by the list of class nodes passed into the constructor.


Constructor Summary
protected WriteDTDElement(CreateFile createFile)
          Description: Constructor for the DTD file generator.
 
Method Summary
protected abstract  void createXMLStrings()
          Description: Creates the different entities, elements and attlists for the class.
protected  void writeBody(java.io.FileWriter writer)
          Description: Method to write out the body.
protected  void writeEntities(java.io.FileWriter writer)
          Description: Method to write out entities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteDTDElement

protected WriteDTDElement(CreateFile createFile)
                   throws java.lang.Exception
Description: Constructor for the DTD file generator.

Parameters:
createFile: - the class to write to the DTD.

Throws:
java.lang.Exception
Method Detail

createXMLStrings

protected abstract void createXMLStrings()
                                  throws java.lang.Exception
Description: Creates the different entities, elements and attlists for the class.

Parameters:
packageOrdering: - the XML configuration element for package ordering information.

Throws:
java.lang.Exception

writeEntities

protected void writeEntities(java.io.FileWriter writer)
                      throws java.lang.Exception
Description: Method to write out entities. The base class does nothing.

Parameters:
write: - the writer to use.

Throws:
java.lang.Exception

writeBody

protected void writeBody(java.io.FileWriter writer)
                  throws java.lang.Exception
Description: Method to write out the body.

Parameters:
write: - the writer to use.

Throws:
java.lang.Exception