|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.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 | |
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 |
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 java.lang.String getTitle()
JWordDriver
getTitle
in class JWordDriver
public void initDictionary()
initDictionary
in class JWordDriver
public void changeSearchMode(int wordLimiter, int posLimiter)
public void returnPOS(javax.swing.tree.DefaultMutableTreeNode posRoot, int POS, java.lang.String searchWord)
returnPOS
in class JWordDriver
public void returnSearch(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String searchWord)
returnSearch
in class JWordDriver
public void getHeadWordInfo(javax.swing.tree.DefaultMutableTreeNode root, java.lang.String word)
public void printHeadWords()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |