wt.tools.xref
Class HtmlGen
java.lang.Object
wt.tools.xref.HtmlGen
- Direct Known Subclasses:
- WhereUsedHtmlGen
- public class HtmlGen
- extends Object
This class is simply a convenience class for writing HTML
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
d_outputDirectory
String d_outputDirectory
d_CrLf
String d_CrLf
HtmlGen
public HtmlGen(String outputDirectory)
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)