net.didion.jwnl.data
Class Word
java.lang.Object
net.didion.jwnl.data.PointerTarget
net.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)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Word
public Word(Synset synset,
int index,
java.lang.String lemma)
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.