org.biomage.tools.generate_dtd
Class WriteDTDMageElement

java.lang.Object
  extended by org.biomage.tools.generate_dtd.WriteDTDElement
      extended by org.biomage.tools.generate_dtd.WriteDTDMageElement

public class WriteDTDMageElement
extends WriteDTDElement

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 WriteDTDMageElement(CreateFile createFile)
          Description: Constructor for the DTD file generator.
 
Method Summary
protected  void createXMLStrings()
          Description: Creates the element declaration for the top-level model.
protected  void setPackageOrder(org.w3c.dom.Element packageOrdering)
          Description: Method to read the XML configuration for the ordering of the packages.
protected  void writeBody(java.io.FileWriter writer)
          Description: Method to write out the body.
 
Methods inherited from class org.biomage.tools.generate_dtd.WriteDTDElement
writeEntities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteDTDMageElement

protected WriteDTDMageElement(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

setPackageOrder

protected void setPackageOrder(org.w3c.dom.Element packageOrdering)
                        throws java.lang.Exception
Description: Method to read the XML configuration for the ordering of the packages.

Parameters:
packageOrdering: - the XML configuration element.

Throws:
java.lang.Exception

createXMLStrings

protected void createXMLStrings()
                         throws java.lang.Exception
Description: Creates the element declaration for the top-level model.

Specified by:
createXMLStrings in class WriteDTDElement
Parameters:
packageOrdering: - the XML configuration element for package ordering information.

Throws:
java.lang.Exception

writeBody

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

Overrides:
writeBody in class WriteDTDElement
Parameters:
write: - the writer to use.

Throws:
java.lang.Exception