wt.tools.xref
Class HtmlGen

java.lang.Object
  extended bywt.tools.xref.HtmlGen
Direct Known Subclasses:
WhereUsedHtmlGen

public class HtmlGen
extends Object

This class is simply a convenience class for writing HTML


Field Summary
(package private)  String d_CrLf
           
(package private)  String d_outputDirectory
           
 
Constructor Summary
HtmlGen(String outputDirectory)
           
 
Method Summary
(package private)  String directoryCheck(String packageSpec)
          This method is used by openPrintWriter(String,String) to: 1.
 Vector getVector(Hashtable classInterfaces, int objectType)
           
 String hrefPrefix(String directoryName)
          This method produces the proper prefix for an statement that will work with both IE and Netscape.
(package private)  PrintWriter openPrintWriter(String fileName)
           
(package private)  PrintWriter openPrintWriter(String packageName, String fileName)
          This method is for opening files for specified package names
(package private)  void outputStringArray(PrintWriter pw, String[] array)
           
(package private)  void writeClassInterfaceListFrame(PackageSpec pkg)
           
(package private)  void writeClassInterfaceUnknownList_OLD(PrintWriter pw, String title, Vector theVector)
           
(package private)  void writeClassInterfaceUnknownList(PrintWriter pw, String title, Vector theVector)
           
(package private)  void writeEndOfLeftFrame(PrintWriter pw)
           
(package private)  void writeEndOfRightFrame(PrintWriter pw)
           
(package private)  void writeIndexHtml(String firstHtmlFileName)
           
(package private)  String writePackageListFrame()
           
(package private)  void writeStartOfLeftFrame(PrintWriter pw)
           
(package private)  void writeStartOfRightFrame(PrintWriter pw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d_outputDirectory

String d_outputDirectory

d_CrLf

String d_CrLf
Constructor Detail

HtmlGen

public HtmlGen(String outputDirectory)
Method Detail

openPrintWriter

PrintWriter openPrintWriter(String fileName)

directoryCheck

String directoryCheck(String packageSpec)
This method is used by openPrintWriter(String,String) to: 1. convert the package specification to a directory name. The dots are replaced with slashes so that wt.query.specification become wt/query/specification 2. the directory is the checked to see if it doesn't exist and if not, it is created 3. lastly the resultant directory name is returned to the caller. This directory includes a trailing slash!


openPrintWriter

PrintWriter openPrintWriter(String packageName,
                            String fileName)
This method is for opening files for specified package names


outputStringArray

void outputStringArray(PrintWriter pw,
                       String[] array)

writeStartOfLeftFrame

void writeStartOfLeftFrame(PrintWriter pw)

writeEndOfLeftFrame

void writeEndOfLeftFrame(PrintWriter pw)

writeStartOfRightFrame

void writeStartOfRightFrame(PrintWriter pw)

writeEndOfRightFrame

void writeEndOfRightFrame(PrintWriter pw)

writePackageListFrame

String writePackageListFrame()

hrefPrefix

public String hrefPrefix(String directoryName)
This method produces the proper prefix for an statement that will work with both IE and Netscape. For example if directoryName is: wt/tools/xref this method will produce : ../../wt/tools/xref


writeClassInterfaceUnknownList

void writeClassInterfaceUnknownList(PrintWriter pw,
                                    String title,
                                    Vector theVector)

writeClassInterfaceUnknownList_OLD

void writeClassInterfaceUnknownList_OLD(PrintWriter pw,
                                        String title,
                                        Vector theVector)

getVector

public Vector getVector(Hashtable classInterfaces,
                        int objectType)

writeClassInterfaceListFrame

void writeClassInterfaceListFrame(PackageSpec pkg)

writeIndexHtml

void writeIndexHtml(String firstHtmlFileName)