edu.gwu.jworddrivers
Class JWordDriver
java.lang.Object
|
+--edu.gwu.jworddrivers.JWordDriver
- Direct Known Subclasses:
- RogetDriver, WordNetDriver
- public abstract class JWordDriver
- extends java.lang.Object
Method Summary |
static void |
initDictionary()
This method should be implemented to load all dictionary resources
this method will be called by JWord before running any other
methods in the class |
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 the starting position on a JTree and a search word
this method will construct DefatultMutableTreeNodes containing JWordNodes
based on the dictionary's word relationships matched by the searchWord |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POS_NOUN
public static final int POS_NOUN
- See Also:
- Constant Field Values
POS_VERB
public static final int POS_VERB
- See Also:
- Constant Field Values
POS_ADJECTIVE
public static final int POS_ADJECTIVE
- See Also:
- Constant Field Values
POS_ADVERB
public static final int POS_ADVERB
- See Also:
- Constant Field Values
JWordDriver
public JWordDriver()
initDictionary
public static void initDictionary()
- This method should be implemented to load all dictionary resources
this method will be called by JWord before running any other
methods in the class
returnSearch
public static void returnSearch(javax.swing.tree.DefaultMutableTreeNode root,
java.lang.String searchWord)
- Given the starting position on a JTree and a search word
this method will construct DefatultMutableTreeNodes containing JWordNodes
based on the dictionary's word relationships matched by the searchWord
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