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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.biomage.tools.generate_dtd.WriteDTDElement
      extended byorg.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.


Field Summary
(package private)  java.lang.StringBuffer mageML
          Description: For outputting the MAGE-OM element to the file.
(package private)  java.util.Map packageOrder
          Description: Map that specifies the order of the packages.
 
Fields inherited from class org.biomage.tools.generate_dtd.WriteDTDElement
createFile
 
Constructor Summary
protected WriteDTDMageElement(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 top-level model.
protected  java.util.Vector orderPackages()
          Description: Creates an orderd map to order the packages based on packageOrder then returns the values from that map as a Vector.
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
 

Field Detail

mageML

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


packageOrder

java.util.Map packageOrder
Description: Map that specifies the order of the packages. Population of the map comes from a the parameter packageOrdering resource.

Constructor Detail

WriteDTDMageElement

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

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.


createXMLStrings

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

Specified by:
createXMLStrings in class WriteDTDElement

orderPackages

protected java.util.Vector orderPackages()
                                  throws java.lang.Exception
Description: Creates an orderd map to order the packages based on packageOrder then returns the values from that map as a Vector.


writeBody

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

Overrides:
writeBody in class WriteDTDElement