edu.gwu.jworddrivers
Class RogetDriver

java.lang.Object
  extended byedu.gwu.jworddrivers.JWordDriver
      extended byedu.gwu.jworddrivers.RogetDriver
Direct Known Subclasses:
RogetwithLemmaDriver

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
 void changeSearchMode(int wordLimiter, int posLimiter)
          Use the MODE_ constants to set these flags determines how thorough returnSearch should be
 void getHeadWordInfo(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String word)
          Perform a search only looking at headwords as key values
 java.lang.String getTitle()
          This method should return the title of the dictionary
 void initDictionary()
          Load the dictionary file into memory
 void printHeadWords()
           
 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
 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

getTitle

public java.lang.String getTitle()
Description copied from class: JWordDriver
This method should return the title of the dictionary

Specified by:
getTitle in class JWordDriver

initDictionary

public void initDictionary()
Load the dictionary file into memory

Specified by:
initDictionary in class JWordDriver

changeSearchMode

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


returnPOS

public 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

Specified by:
returnPOS in class JWordDriver

returnSearch

public 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

Specified by:
returnSearch in class JWordDriver

getHeadWordInfo

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


printHeadWords

public void printHeadWords()