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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.biomage.tools.generate_dtd.WriteDTDFile

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


Nested Class Summary
static interface WriteDTDFile.CreateClassTransformer
          Description: An interface implemented by classes that take a class list and transform the members by either changing the relationships or adding or subtracting classes.
protected static class WriteDTDFile.PackageDependencies
          Description: An inner class to hold the inter and intra package dependencies.
 
Field Summary
protected static java.util.Vector topElementNames
          Description: The top level class.
protected  WriteDTDFile.CreateClassTransformer transformer
          Description: A class that implements the transformation interface.
 
Constructor Summary
WriteDTDFile(java.util.Vector classFiles, java.lang.String dtdFileName, java.lang.String outputDir, java.io.File header, java.lang.String transformClassName, org.w3c.dom.Element packageOrder, org.w3c.dom.Element topElements)
          Description: Constructor for the DTD file generator.
 
Method Summary
 java.util.Vector CreateWriteFiles(java.util.Vector classFiles)
          Description: Create the write classes for each of the class files.
protected static boolean isReferencedClass(org.biomage.tools.generate_classes.CreateFile createFile)
          Description: Utility method to verify whether class has roles or is top-level.
protected  void setTopElements(org.w3c.dom.Element topElements)
           
static java.util.Vector sortWriteFiles(java.util.Vector classFiles)
          Description: Create the write classes for each of the class files.
protected  void writeHeader(java.io.FileWriter writer, java.io.File header)
          Description: Writes the header information out to the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topElementNames

protected static java.util.Vector topElementNames
Description: The top level class. Even though it has no roles, must not be treated the same since it has no roles because it is the top element


transformer

protected WriteDTDFile.CreateClassTransformer transformer
Description: A class that implements the transformation interface. Can be null.

Constructor Detail

WriteDTDFile

public WriteDTDFile(java.util.Vector classFiles,
                    java.lang.String dtdFileName,
                    java.lang.String outputDir,
                    java.io.File header,
                    java.lang.String transformClassName,
                    org.w3c.dom.Element packageOrder,
                    org.w3c.dom.Element topElements)
             throws java.lang.Exception
Description: Constructor for the DTD file generator.

Method Detail

setTopElements

protected void setTopElements(org.w3c.dom.Element topElements)
                       throws java.lang.Exception

isReferencedClass

protected static boolean isReferencedClass(org.biomage.tools.generate_classes.CreateFile createFile)
Description: Utility method to verify whether class has roles or is top-level.


CreateWriteFiles

public java.util.Vector CreateWriteFiles(java.util.Vector classFiles)
                                  throws java.lang.Exception
Description: Create the write classes for each of the class files.


sortWriteFiles

public static java.util.Vector sortWriteFiles(java.util.Vector classFiles)
                                       throws java.lang.Exception
Description: Create the write classes for each of the class files.


writeHeader

protected void writeHeader(java.io.FileWriter writer,
                           java.io.File header)
                    throws java.lang.Exception
Description: Writes the header information out to the file.