edu.gwu.jworddrivers
Class WordNetNode

java.lang.Object
  extended byedu.gwu.jworddrivers.JWordNode
      extended byedu.gwu.jworddrivers.WordNetNode

public class WordNetNode
extends JWordNode

WordNetNode Node is a class used for displaying Synonym Sets in a JTree and additional information text component. This component is an additional abstraction from the Wordnet library, it adds no additional functionality.


Constructor Summary
WordNetNode()
           
WordNetNode(Synset sense, java.lang.String curWord)
          Takes in a Synset to create object.
 
Method Summary
 java.lang.String getCurrentDescription()
          Returns an HTML formatted list of each gloss found for the current selected word
 java.lang.String getDescription()
          Returns an HTML formatted list of each gloss found for the synset.
 java.lang.String toString()
          Returns a string containing the first Gloss found for the sense.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WordNetNode

public WordNetNode(Synset sense,
                   java.lang.String curWord)
Takes in a Synset to create object.

Parameters:
sense - Input Synset to break into its String components.

WordNetNode

public WordNetNode()
Method Detail

toString

public java.lang.String toString()
Returns a string containing the first Gloss found for the sense. In addition it returns the number of words contained by the synset.

Specified by:
toString in class JWordNode

getDescription

public java.lang.String getDescription()
Returns an HTML formatted list of each gloss found for the synset.

Specified by:
getDescription in class JWordNode

getCurrentDescription

public java.lang.String getCurrentDescription()
Returns an HTML formatted list of each gloss found for the current selected word

Specified by:
getCurrentDescription in class JWordNode