net.didion.jwnl.data
Class Word

java.lang.Object
  extended bynet.didion.jwnl.data.PointerTarget
      extended bynet.didion.jwnl.data.Word
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Adjective, Verb

public class Word
extends PointerTarget

A Word represents the lexical information related to a specific sense of an IndexWord. Word's are linked by Pointers into a network of lexically related words. getTargets retrieves the targets of these links, and getPointers retrieves the pointers themselves.

See Also:
Serialized Form

Constructor Summary
Word(Synset synset, int index, java.lang.String lemma)
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Two words are equal if their parent Synsets are equal and they have the same index
 int getIndex()
           
 java.lang.String getLemma()
           
 Pointer[] getPointers()
          returns all the pointers of the synset that contains this word whose source is this word
 POS getPOS()
          Return this target's POS
 Synset getSynset()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class net.didion.jwnl.data.PointerTarget
getPointers, getTargets, getTargets
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Word

public Word(Synset synset,
            int index,
            java.lang.String lemma)
Method Detail

equals

public boolean equals(java.lang.Object object)
Two words are equal if their parent Synsets are equal and they have the same index

Overrides:
equals in class PointerTarget

hashCode

public int hashCode()

toString

public java.lang.String toString()
Specified by:
toString in class PointerTarget

getSynset

public Synset getSynset()

getPOS

public POS getPOS()
Description copied from class: PointerTarget
Return this target's POS

Specified by:
getPOS in class PointerTarget

getIndex

public int getIndex()

getLemma

public java.lang.String getLemma()

getPointers

public Pointer[] getPointers()
returns all the pointers of the synset that contains this word whose source is this word

Specified by:
getPointers in class PointerTarget



JWNL homepage.