|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.gwu.jworddrivers.JWordDriver | +--edu.gwu.jworddrivers.RogetDriver
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 |
public static final int MODE_ALLWORDS
public static final int MODE_HEADWORDS
public static final int MODE_POS_NOUN
public static final int MODE_POS_VERB
public static final int MODE_POS_ADJECTIVE
public static final int MODE_POS_ADVERB
Constructor Detail |
public RogetDriver()
Method Detail |
public static void initDictionary()
public static void changeSearchMode(int wordLimiter, int posLimiter)
public static void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot, int POS, java.lang.String searchWord)
public static void returnSearch(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String searchWord)
public static void getHeadWordInfo(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String word)
public static void getWordInfo(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String word)
public static void printHeadWords()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |