edu.gwu.jworddrivers
Class RogetDriver

java.lang.Object
  |
  +--edu.gwu.jworddrivers.JWordDriver
        |
        +--edu.gwu.jworddrivers.RogetDriver

public class RogetDriver
extends JWordDriver


Field Summary
static int MODE_ALLWORDS
           
static int MODE_HEADWORDS
           
static int MODE_POS_ADJECTIVE
           
static int MODE_POS_ADVERB
           
static int MODE_POS_NOUN
           
static int MODE_POS_VERB
           
 
Fields inherited from class edu.gwu.jworddrivers.JWordDriver
POS_ADJECTIVE, POS_ADVERB, POS_NOUN, POS_VERB
 
Constructor Summary
RogetDriver()
           
 
Method Summary
static void changeSearchMode(int wordLimiter, int posLimiter)
          Use the MODE_ constants to set these flags determines how thorough returnSearch should be
static void getHeadWordInfo(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String word)
          Perform a search only looking at headwords as key values
static void getWordInfo(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String word)
          Perform a search using any text found in the dictionary
static void initDictionary()
          Load the dictionary file into memory
static void printHeadWords()
           
static void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot, int POS, java.lang.String searchWord)
          This method is identical to that of returnSearch except that it generates the tree starting at the Part of Speech level rather than the dictionary level
static void returnSearch(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String searchWord)
          Given a DefaultMutableTreeNode to start at and a word to search for this will build the tree based on the thesauras's word relationship using the
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_ALLWORDS

public static final int MODE_ALLWORDS
See Also:
Constant Field Values

MODE_HEADWORDS

public static final int MODE_HEADWORDS
See Also:
Constant Field Values

MODE_POS_NOUN

public static final int MODE_POS_NOUN
See Also:
Constant Field Values

MODE_POS_VERB

public static final int MODE_POS_VERB
See Also:
Constant Field Values

MODE_POS_ADJECTIVE

public static final int MODE_POS_ADJECTIVE
See Also:
Constant Field Values

MODE_POS_ADVERB

public static final int MODE_POS_ADVERB
See Also:
Constant Field Values
Constructor Detail

RogetDriver

public RogetDriver()
Method Detail

initDictionary

public static void initDictionary()
Load the dictionary file into memory


changeSearchMode

public static void changeSearchMode(int wordLimiter,
                                    int posLimiter)
Use the MODE_ constants to set these flags determines how thorough returnSearch should be


returnPOS

public static void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot,
                             int POS,
                             java.lang.String searchWord)
This method is identical to that of returnSearch except that it generates the tree starting at the Part of Speech level rather than the dictionary level


returnSearch

public static void returnSearch(javax.swing.tree.DefaultMutableTreeNode root,
                                java.lang.String searchWord)
Given a DefaultMutableTreeNode to start at and a word to search for this will build the tree based on the thesauras's word relationship using the


getHeadWordInfo

public static void getHeadWordInfo(javax.swing.tree.DefaultMutableTreeNode root,
                                   java.lang.String word)
Perform a search only looking at headwords as key values


getWordInfo

public static void getWordInfo(javax.swing.tree.DefaultMutableTreeNode root,
                               java.lang.String word)
Perform a search using any text found in the dictionary


printHeadWords

public static void printHeadWords()