Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.biomage.tools.generate_dtd
Class WriteDTDPackageElement  view WriteDTDPackageElement download WriteDTDPackageElement.java

java.lang.Object
  extended byorg.biomage.tools.generate_dtd.WriteDTDElement
      extended byorg.biomage.tools.generate_dtd.WriteDTDPackageElement

public class WriteDTDPackageElement
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.


Field Summary
protected  java.lang.StringBuffer packageElement
          Description: For outputting the MAGE-OM element to the file.
 
Fields inherited from class org.biomage.tools.generate_dtd.WriteDTDElement
createFile
 
Constructor Summary
protected WriteDTDPackageElement(org.biomage.tools.generate_classes.CreateFile createFile)
          Description: Constructor for the DTD file generator.
 
Method Summary
protected  void createXMLStrings(org.w3c.dom.Element packageOrdering)
          Description: Creates the element declaration for the package.
protected  java.util.Vector orderedClasses(org.w3c.dom.Element packageOrdering)
          Description: Method to read the XML configuration for the ordering of the lists for this package.
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
 

Field Detail

packageElement

protected java.lang.StringBuffer packageElement
Description: For outputting the MAGE-OM element to the file.

Constructor Detail

WriteDTDPackageElement

protected WriteDTDPackageElement(org.biomage.tools.generate_classes.CreateFile createFile)
                          throws java.lang.Exception
Description: Constructor for the DTD file generator.

Method Detail

orderedClasses

protected java.util.Vector orderedClasses(org.w3c.dom.Element packageOrdering)
                                   throws java.lang.Exception
Description: Method to read the XML configuration for the ordering of the lists for this package.


createXMLStrings

protected void createXMLStrings(org.w3c.dom.Element packageOrdering)
                         throws java.lang.Exception
Description: Creates the element declaration for the package.

Specified by:
createXMLStrings in class WriteDTDElement

writeEntities

protected void writeEntities(java.io.FileWriter writer)
                      throws java.lang.Exception
Description: Method to write out entities. Packages write out a brief comment.

Overrides:
writeEntities in class WriteDTDElement

writeBody

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

Overrides:
writeBody in class WriteDTDElement