uvi
Class Sweeper

java.lang.Object
  extended by uvi.Sweeper

public class Sweeper
extends Object

This class essentially defines the HTML that should be mapped to the XML. The name Sweeper has no particular significance. This class is probably the most important class of the UVI Generator program. The rest of the program is just infrastructure for the purpose of allowing this class to do its job (for the most part).

The power of this class is in its flexibility for future developers or VerbNet users. If another node is added to VerbNet, this program can be extended fairly simply by adding the proper startNODE and endNODE methods. If the tags are in the XML files, the act of declaring the methods to this file (in the same manner the other methods are declared) makes your code active. This is because reflection is used. See Generator.executeHTMLMethod(String, Node). Furthermore, if you want to change the way the XML files are displayed as HTML, changing is easy. If you want to change how the frames are displayed, example, you would look in startFRAMES, startFRAME, endFRAME, and endFRAMES. There the HTML is fairly clearly generated based on the children and attributes of each node.

Remember that the HTML is generated in an "in-order" fashion. First the startFRAMES is executed, then the startFRAME, then the startDESCRIPTION, etc. Then the end tags are executed in the opposite order: endDESCRIPTION, endFRAME, endFRAMES.

It's ok if a "start" or "end" method does not exist for a given XML element. If no matching method is found, it is ignored. For example, those nodes which are defined in the DTD not to have children nodes hardly need "end" methods declared, since you can just put the "closing" HTML at the end of the node's "start" method.

NOTE: Any reference to "HTML Files" should be taken as a synonym for "PHP Files." When this documentation was created, only *.html files were used. Later, they were converted to *.php files to facilitate dynamic content (i.e. comments).

Version:
1.0, 2006.9.8
Author:
Derek Trumbo
See Also:
Generator.executeHTMLMethod(String, Node), Q

Field Summary
private static String curClass
          The name of the current class or subclass being processed.
private static String curFile
          Used only to supply the correct web page link when add a member to the index.
private static int curIndentLevel
          The current nesting level of the classes.
private static int curMem
          A counter maintained by each member section to keep track of which member (verb) is being printed currently.
private static boolean hasBeenOther
          Used by various types of nodes for which there might be a list to display to know if another of their same kind has already been shown, so as to print a space, or a comma and a space.
private static int INIT_MEM_ROW
          The number of verbs (rows) to display per column if the number of verbs is less than INIT_MEM_ROW * NUM_MEM_COL.
private static ArrayList members
          Holds all the member information for a given class/subclass.
private static int memPerCol
          The number of members to be shown per column in the 'Members' area.
private static int NUM_MEM_COL
          The maximum number of verb columns to display in the 'Members' area.
private static boolean prepSelRestrs
          Whether or not the SELRESTRS about to be entered is under a PREP element (as compared to a THEMROLE element).
private static int restrsLevel
          The level of nested SELRESTRS being processed.
private static int totalMem
          The number of members for the current class or subclass.
private static boolean usingOr
          Whether or not nodes which specify logical operators for their children are using 'or'.
 
Constructor Summary
private Sweeper()
          This constructor is private because the class is not intended to ever be instantiated.
 
Method Summary
private static void classHierarchyPrint(Element cls, int level, String rootName)
          Prints the content of the Class Hierarchy box.
static void endADJ(Node n)
          Generates the HTML for the end of a ADJ element.
static void endADV(Node n)
          Generates the HTML for the end of a ADV element.
static void endARG(Node n)
          Generates the HTML for the end of a ARG element.
static void endARGS(Node n)
          Generates the HTML for the end of a ARGS element.
static void endDESCRIPTION(Node n)
          Generates the HTML for the end of a DESCRIPTION element.
static void endEXAMPLE(Node n)
          Generates the HTML for the end of a EXAMPLE element.
static void endEXAMPLES(Node n)
          Generates the HTML for the end of a EXAMPLES element.
static void endFRAME(Node n)
          Generates the HTML for the end of a FRAME element.
static void endFRAMES(Node n)
          Generates the HTML for the end of a FRAMES element.
static void endLEX(Node n)
          Generates the HTML for the end of a LEX element.
static void endMEMBER(Node n)
          Generates the HTML for the end of a MEMBER element.
static void endMEMBERS(Node n)
          Generates the HTML for the end of a MEMBERS element.
static void endNP(Node n)
          Generates the HTML for the end of a NP element.
static void endPRED(Node n)
          Generates the HTML for the end of a PRED element.
static void endPREP(Node n)
          Generates the HTML for the end of a PREP element.
static void endSELRESTR(Node n)
          Generates the HTML for the end of a SELRESTR element.
static void endSELRESTRS(Node n)
          Generates the HTML for the end of a SELRESTRS element.
static void endSEMANTICS(Node n)
          Generates the HTML for the end of a SEMANTICS element.
static void endSYNRESTR(Node n)
          Generates the HTML for the end of a SYNRESTR element.
static void endSYNRESTRS(Node n)
          Generates the HTML for the end of a SYNRESTRS element.
static void endSYNTAX(Node n)
          Generates the HTML for the end of a SYNTAX element.
static void endTHEMROLE(Node n)
          Generates the HTML for the end of a THEMROLE element.
static void endTHEMROLES(Node n)
          Generates the HTML for the end of a THEMROLES element.
static void endVERB(Node n)
          Generates the HTML for the end of a VERB element.
static void endVNCLASS(Node n)
          Generates the HTML for the end of a VNCLASS element.
static void endVNSUBCLASS(Node n)
          Generates the HTML for the end of a VNSUBCLASS element.
private static void eprint(String s)
          Used as shorthand for System.err.print.
private static void eprintln(String s)
          Used as shorthand for System.err.println.
private static boolean hasKids(Node n, String which)
          Whether or not the given XML element has children with a given tag name.
private static int numKids(Node n, String which)
          Counts the number of children of a given XML element who have the given tag name.
private static void print(String s)
          Used as shorthand for System.out.print.
private static void println(String s)
          Used as shorthand for System.out.println.
private static void printMembers()
          Prints the HTML for all the members in the current class/subclass.
static void setCurFile(String newFile)
          Sets the current file being processed.
static void startADJ(Node n)
          Generates the HTML for the beginning of a ADJ element.
static void startADV(Node n)
          Generates the HTML for the beginning of a ADV element.
static void startARG(Node n)
          Generates the HTML for the beginning of a ARG element.
static void startARGS(Node n)
          Generates the HTML for the beginning of a ARGS element.
static void startDESCRIPTION(Node n)
          Generates the HTML for the beginning of a DESCRIPTION element.
static void startEXAMPLE(Node n)
          Generates the HTML for the beginning of a EXAMPLE element.
static void startEXAMPLES(Node n)
          Generates the HTML for the beginning of a EXAMPLES element.
static void startFRAME(Node n)
          Generates the HTML for the beginning of a FRAME element.
static void startFRAMES(Node n)
          Generates the HTML for the beginning of a FRAMES element.
static void startLEX(Node n)
          Generates the HTML for the beginning of a LEX element.
static void startMEMBER(Node n)
          Stores all the information for this member into the members array to be processed later in endMEMBERS(Node), once it is completely sorted.
static void startMEMBERS(Node n)
          Generates the HTML for the beginning of a MEMBERS element.
static void startNP(Node n)
          Generates the HTML for the beginning of a NP element.
static void startPRED(Node n)
          Generates the HTML for the beginning of a PRED element.
static void startPREP(Node n)
          Generates the HTML for the beginning of a PREP element.
static void startSELRESTR(Node n)
          Generates the HTML for the beginning of a SELRESTR element.
static void startSELRESTRS(Node n)
          Generates the HTML for the beginning of a SELRESTRS element.
static void startSEMANTICS(Node n)
          Generates the HTML for the beginning of a SEMANTICS element.
static void startSYNRESTR(Node n)
          Generates the HTML for the beginning of a SYNRESTR element.
static void startSYNRESTRS(Node n)
          Generates the HTML for the beginning of a SYNRESTRS element.
static void startSYNTAX(Node n)
          Generates the HTML for the beginning of a SYNTAX element.
static void startTHEMROLE(Node n)
          Generates the HTML for the beginning of a THEMROLE element.
static void startTHEMROLES(Node n)
          Generates the HTML for the beginning of a THEMROLES element.
static void startVERB(Node n)
          Generates the HTML for the beginning of a VERB element.
static void startVNCLASS(Node n)
          Generates the HTML for the beginning of a VNCLASS element.
static void startVNSUBCLASS(Node n)
          Generates the HTML for the beginning of a VNSUBCLASS element.
private static void warningChecks(int mem, int fra, int subc)
          Shows warnings concerning "curious" conditions in the VerbNet organization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_MEM_COL

private static int NUM_MEM_COL
The maximum number of verb columns to display in the 'Members' area. Verbs are displayed alphabetically downwards. Initially set to 4.

See Also:
startMEMBERS(Node), endMEMBERS(Node)

INIT_MEM_ROW

private static int INIT_MEM_ROW
The number of verbs (rows) to display per column if the number of verbs is less than INIT_MEM_ROW * NUM_MEM_COL. Initially set to 5.

See Also:
startMEMBERS(Node), endMEMBERS(Node)

curIndentLevel

private static int curIndentLevel
The current nesting level of the classes. The top-level class has a indent level of zero.

See Also:
startVNCLASS(Node), startVNSUBCLASS(Node), endVNCLASS(Node), endVNSUBCLASS(Node)

memPerCol

private static int memPerCol
The number of members to be shown per column in the 'Members' area. This variable is calculated in each class's and subclass's MEMBERS element. If there is fewer than or equal to INIT_MEM_ROW * NUM_MEM_COL verbs, the number of members per column is just INIT_MEM_ROW. If the number of verbs exceeds INIT_MEM_ROW * NUM_MEM_COL then a formula is applied to increase the number of verbs per column, so as to keep to the maximum number of columns specified by NUM_MEM_COL.

See Also:
startMEMBERS(Node), endMEMBERS(Node), printMembers()

curMem

private static int curMem
A counter maintained by each member section to keep track of which member (verb) is being printed currently.

See Also:
startMEMBERS(Node), endMEMBERS(Node), printMembers()

totalMem

private static int totalMem
The number of members for the current class or subclass. This is set upon entering a MEMBERS element.

See Also:
startMEMBERS(Node), endMEMBERS(Node)

restrsLevel

private static int restrsLevel
The level of nested SELRESTRS being processed. The definition of SELRESTRS is recursive in the DTD (<!ELEMENT SELRESTRS (SELRESTR|SELRESTRS)*>) and a | or an & should be printed if it's not the top-level element. Currently, this only happens in a few files: bring-11.3.html, carry-11.4.html, cheat-10.6.html, drive-11.5.html, pour-9.5.html, send-11.1.html, slide-11.2.html, spray-9.7.html, steal-10.5.html, throw-17.1.html.

See Also:
startSELRESTRS(Node), endSELRESTRS(Node)

prepSelRestrs

private static boolean prepSelRestrs
Whether or not the SELRESTRS about to be entered is under a PREP element (as compared to a THEMROLE element). This is set upon entering and leaving a PREP element. If the SELRESTRS is from a PREP element, is is for a preposition class and is displayed in a different color

See Also:
startPREP(Node), endPREP(Node), startSELRESTRS(Node), endSELRESTRS(Node)

hasBeenOther

private static boolean hasBeenOther
Used by various types of nodes for which there might be a list to display to know if another of their same kind has already been shown, so as to print a space, or a comma and a space.

See Also:
startSELRESTRS(Node), startSELRESTR(Node), startARGS(Node), startARG(Node), startSYNRESTRS(Node), startSYNRESTR(Node)

usingOr

private static boolean usingOr
Whether or not nodes which specify logical operators for their children are using 'or'. This only happens with SELRESTRS and SYNRESTRS. When their children execute, they know whether to print a | or an &.

See Also:
startSELRESTRS(Node), startSELRESTR(Node), startSYNRESTRS(Node), startSYNRESTR(Node)

curFile

private static String curFile
Used only to supply the correct web page link when add a member to the index. This will contain the value "send-11.1.html", for example, for the main class and all subclasses being processed in this file.

See Also:
setCurFile(String), printMembers()

curClass

private static String curClass
The name of the current class or subclass being processed. This is used not just to print the class name in the header, but also to have for adding members to the index, and most importantly, displaying contextual information when errors or warnings occur (so the user knows in which class the error or warning occurred).

See Also:
startVNCLASS(Node), startVNSUBCLASS(Node), printMembers()

members

private static ArrayList members
Holds all the member information for a given class/subclass. Information for a single member consists of the verb and its list of WordNet senses. It is cleared at the start of each class/subclass, loaded up during the tag scanning, and sorted & dumped upon reaching the tag. This was only added to facilitate sorted member sections. If sorting was not a priority, then members would just be printed as they were reached.

See Also:
startMEMBERS(Node), startMEMBER(Node), printMembers()
Constructor Detail

Sweeper

private Sweeper()
This constructor is private because the class is not intended to ever be instantiated. The UVI generation is a very procedural process and thus all the members are static.

Method Detail

println

private static void println(String s)
Used as shorthand for System.out.println.

Parameters:
s - the string to print.
See Also:
PrintStream.println(String)

print

private static void print(String s)
Used as shorthand for System.out.print.

Parameters:
s - the string to print.
See Also:
PrintStream.print(String)

eprintln

private static void eprintln(String s)
Used as shorthand for System.err.println.

Parameters:
s - the string to print
See Also:
PrintStream.println(String)

eprint

private static void eprint(String s)
Used as shorthand for System.err.print.

Parameters:
s - the string to print
See Also:
PrintStream.print(String)

setCurFile

public static void setCurFile(String newFile)
Sets the current file being processed.

Parameters:
newFile - the current file being processed in Generator.generateHTMLFiles()
See Also:
Generator.generateHTMLFiles()

hasKids

private static boolean hasKids(Node n,
                               String which)
Whether or not the given XML element has children with a given tag name.

Parameters:
n - the node whose children should be checked
which - the tag name to look for among the children
Returns:
whether or not the node contains one or more children of the given type

numKids

private static int numKids(Node n,
                           String which)
Counts the number of children of a given XML element who have the given tag name.

Parameters:
n - the node whose children should be checked
which - the tag name to look for among the children
Returns:
the number of children of the given type that the node contains

warningChecks

private static void warningChecks(int mem,
                                  int fra,
                                  int subc)
Shows warnings concerning "curious" conditions in the VerbNet organization. The warnings are:

Parameters:
mem - the number of members the class/subclass has
fra - the number of frames the class/subclass has
subc - the number of subclasses the class/subclass has

classHierarchyPrint

private static void classHierarchyPrint(Element cls,
                                        int level,
                                        String rootName)
Prints the content of the Class Hierarchy box. This is done recursively.

Parameters:
cls - the top level XML element representing the main class being printed
level - the current subclass level (0 for the main class). This is used to perform the proper indentation.
rootName - the name of the main class being printed recursively. This is used only to flag subclasses whose names do not correspond to the naming convention of the main class.
See Also:
startVNCLASS(Node)

startVNCLASS

public static void startVNCLASS(Node n)
Generates the HTML for the beginning of a VNCLASS element.

Parameters:
n - the Node object representing the active VNCLASS element

endVNCLASS

public static void endVNCLASS(Node n)
Generates the HTML for the end of a VNCLASS element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active VNCLASS element

startVNSUBCLASS

public static void startVNSUBCLASS(Node n)
Generates the HTML for the beginning of a VNSUBCLASS element.

Parameters:
n - the Node object representing the active VNSUBCLASS element

endVNSUBCLASS

public static void endVNSUBCLASS(Node n)
Generates the HTML for the end of a VNSUBCLASS element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active VNSUBCLASS element

startMEMBERS

public static void startMEMBERS(Node n)
Generates the HTML for the beginning of a MEMBERS element.

Parameters:
n - the Node object representing the active MEMBERS element

endMEMBERS

public static void endMEMBERS(Node n)
Generates the HTML for the end of a MEMBERS element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active MEMBERS element
See Also:
printMembers()

startMEMBER

public static void startMEMBER(Node n)
Stores all the information for this member into the members array to be processed later in endMEMBERS(Node), once it is completely sorted. A formal sorting algorithm is not used, but rather when each new member is added inside this method, it is inserted in alphabetical order. Also, the sorting only occurs if the "-s" or "--sort" flag was supplied to the program.

Parameters:
n - the Node object representing the active MEMBER element

endMEMBER

public static void endMEMBER(Node n)
Generates the HTML for the end of a MEMBER element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT MEMBER EMPTY> in the DTD, so any "closing HTML" could just be placed at the end of the startMEMBER(Node) method.

Parameters:
n - the Node object representing the active MEMBER element

printMembers

private static void printMembers()
Prints the HTML for all the members in the current class/subclass. This directly uses the information gathered in startMEMBER(Node).

See Also:
startMEMBER(Node), endMEMBERS(Node), Generator.addOthers(int), WordNet, VN_FN_Map

startTHEMROLES

public static void startTHEMROLES(Node n)
Generates the HTML for the beginning of a THEMROLES element.

Parameters:
n - the Node object representing the active THEMROLES element

endTHEMROLES

public static void endTHEMROLES(Node n)
Generates the HTML for the end of a THEMROLES element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active THEMROLES element

startTHEMROLE

public static void startTHEMROLE(Node n)
Generates the HTML for the beginning of a THEMROLE element.

Parameters:
n - the Node object representing the active THEMROLE element

endTHEMROLE

public static void endTHEMROLE(Node n)
Generates the HTML for the end of a THEMROLE element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active THEMROLE element

startSELRESTRS

public static void startSELRESTRS(Node n)
Generates the HTML for the beginning of a SELRESTRS element.

Parameters:
n - the Node object representing the active SELRESTRS element

endSELRESTRS

public static void endSELRESTRS(Node n)
Generates the HTML for the end of a SELRESTRS element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active SELRESTRS element

startSELRESTR

public static void startSELRESTR(Node n)
Generates the HTML for the beginning of a SELRESTR element.

Parameters:
n - the Node object representing the active SELRESTR element

endSELRESTR

public static void endSELRESTR(Node n)
Generates the HTML for the end of a SELRESTR element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT SELRESTR EMPTY> in the DTD, so any "closing HTML" could just be placed at the end of the startSELRESTR(Node) method.

Parameters:
n - the Node object representing the active SELRESTR element

startFRAMES

public static void startFRAMES(Node n)
Generates the HTML for the beginning of a FRAMES element.

Parameters:
n - the Node object representing the active FRAMES element

endFRAMES

public static void endFRAMES(Node n)
Generates the HTML for the end of a FRAMES element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active FRAMES element

startFRAME

public static void startFRAME(Node n)
Generates the HTML for the beginning of a FRAME element.

Parameters:
n - the Node object representing the active FRAME element

endFRAME

public static void endFRAME(Node n)
Generates the HTML for the end of a FRAME element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active FRAME element

startDESCRIPTION

public static void startDESCRIPTION(Node n)
Generates the HTML for the beginning of a DESCRIPTION element.

Parameters:
n - the Node object representing the active DESCRIPTION element

endDESCRIPTION

public static void endDESCRIPTION(Node n)
Generates the HTML for the end of a DESCRIPTION element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT DESCRIPTION EMPTY> in the DTD, so any "closing HTML" could just be placed at the end of the startDESCRIPTION(Node) method.

Parameters:
n - the Node object representing the active DESCRIPTION element

startEXAMPLES

public static void startEXAMPLES(Node n)
Generates the HTML for the beginning of a EXAMPLES element.

Parameters:
n - the Node object representing the active EXAMPLES element

endEXAMPLES

public static void endEXAMPLES(Node n)
Generates the HTML for the end of a EXAMPLES element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active EXAMPLES element

startEXAMPLE

public static void startEXAMPLE(Node n)
Generates the HTML for the beginning of a EXAMPLE element.

Parameters:
n - the Node object representing the active EXAMPLE element

endEXAMPLE

public static void endEXAMPLE(Node n)
Generates the HTML for the end of a EXAMPLE element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT EXAMPLE (#PCDATA)> in the DTD, so any "closing HTML" could just be placed at the end of the startEXAMPLE(Node) method.

Parameters:
n - the Node object representing the active EXAMPLE element

startSYNTAX

public static void startSYNTAX(Node n)
Generates the HTML for the beginning of a SYNTAX element.

Parameters:
n - the Node object representing the active SYNTAX element

endSYNTAX

public static void endSYNTAX(Node n)
Generates the HTML for the end of a SYNTAX element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active SYNTAX element

startSEMANTICS

public static void startSEMANTICS(Node n)
Generates the HTML for the beginning of a SEMANTICS element.

Parameters:
n - the Node object representing the active SEMANTICS element

endSEMANTICS

public static void endSEMANTICS(Node n)
Generates the HTML for the end of a SEMANTICS element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active SEMANTICS element

startPRED

public static void startPRED(Node n)
Generates the HTML for the beginning of a PRED element.

Parameters:
n - the Node object representing the active PRED element

endPRED

public static void endPRED(Node n)
Generates the HTML for the end of a PRED element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active PRED element

startARGS

public static void startARGS(Node n)
Generates the HTML for the beginning of a ARGS element.

Parameters:
n - the Node object representing the active ARGS element

endARGS

public static void endARGS(Node n)
Generates the HTML for the end of a ARGS element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active ARGS element

startARG

public static void startARG(Node n)
Generates the HTML for the beginning of a ARG element.

Parameters:
n - the Node object representing the active ARG element

endARG

public static void endARG(Node n)
Generates the HTML for the end of a ARG element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT ARG EMPTY> in the DTD, so any "closing HTML" could just be placed at the end of the startARG(Node) method.

Parameters:
n - the Node object representing the active ARG element

startNP

public static void startNP(Node n)
Generates the HTML for the beginning of a NP element.

Parameters:
n - the Node object representing the active NP element

endNP

public static void endNP(Node n)
Generates the HTML for the end of a NP element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active NP element

startPREP

public static void startPREP(Node n)
Generates the HTML for the beginning of a PREP element.

Parameters:
n - the Node object representing the active PREP element

endPREP

public static void endPREP(Node n)
Generates the HTML for the end of a PREP element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active PREP element

startSYNRESTRS

public static void startSYNRESTRS(Node n)
Generates the HTML for the beginning of a SYNRESTRS element.

Parameters:
n - the Node object representing the active SYNRESTRS element

endSYNRESTRS

public static void endSYNRESTRS(Node n)
Generates the HTML for the end of a SYNRESTRS element. Occurs after all child nodes' HTML has already been output.

Parameters:
n - the Node object representing the active SYNRESTRS element

startSYNRESTR

public static void startSYNRESTR(Node n)
Generates the HTML for the beginning of a SYNRESTR element.

Parameters:
n - the Node object representing the active SYNRESTR element

endSYNRESTR

public static void endSYNRESTR(Node n)
Generates the HTML for the end of a SYNRESTR element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT SYNRESTR EMPTY> in the DTD, so any "closing HTML" could just be placed at the end of the startSYNRESTR(Node) method.

Parameters:
n - the Node object representing the active SYNRESTR element

startVERB

public static void startVERB(Node n)
Generates the HTML for the beginning of a VERB element.

Parameters:
n - the Node object representing the active VERB element

endVERB

public static void endVERB(Node n)
Generates the HTML for the end of a VERB element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT VERB EMPTY> in the DTD, so any "closing HTML" could just be placed at the end of the startVERB(Node) method.

Parameters:
n - the Node object representing the active VERB element

startADJ

public static void startADJ(Node n)
Generates the HTML for the beginning of a ADJ element.

Parameters:
n - the Node object representing the active ADJ element

endADJ

public static void endADJ(Node n)
Generates the HTML for the end of a ADJ element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT ADJ EMPTY> in the DTD, so any "closing HTML" could just be placed at the end of the startADJ(Node) method.

Parameters:
n - the Node object representing the active ADJ element

startADV

public static void startADV(Node n)
Generates the HTML for the beginning of a ADV element.

Parameters:
n - the Node object representing the active ADV element

endADV

public static void endADV(Node n)
Generates the HTML for the end of a ADV element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT ADV EMPTY> in the DTD, so any "closing HTML" could just be placed at the end of the startADV(Node) method.

Parameters:
n - the Node object representing the active ADV element

startLEX

public static void startLEX(Node n)
Generates the HTML for the beginning of a LEX element.

Parameters:
n - the Node object representing the active LEX element

endLEX

public static void endLEX(Node n)
Generates the HTML for the end of a LEX element. Although it is specified for completeness, this method does not do anything useful. This is because <!ELEMENT LEX EMPTY> in the DTD, so any "closing HTML" could just be placed at the end of the startLEX(Node) method.

Parameters:
n - the Node object representing the active LEX element