gate.wordnet
Class WordImpl

java.lang.Object
  extended bygate.wordnet.WordImpl
All Implemented Interfaces:
Word

public class WordImpl
extends Object
implements Word


Field Summary
private  String lemma
           
private  int senseCount
           
private  net.didion.jwnl.dictionary.Dictionary wnDictionary
           
private  ArrayList wordSenses
           
 
Constructor Summary
WordImpl(String _lemma, int _senseCount, net.didion.jwnl.dictionary.Dictionary _wnDictionary)
           
 
Method Summary
private  void _loadWordSenses()
           
 String getLemma()
          returns the lemma of this word
 int getSenseCount()
          returns the number of senses of this word (not necessarily loading them from storage)
 List getWordSenses()
          returns the senses of this word
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lemma

private String lemma

senseCount

private int senseCount

wordSenses

private ArrayList wordSenses

wnDictionary

private net.didion.jwnl.dictionary.Dictionary wnDictionary
Constructor Detail

WordImpl

public WordImpl(String _lemma,
                int _senseCount,
                net.didion.jwnl.dictionary.Dictionary _wnDictionary)
Method Detail

getWordSenses

public List getWordSenses()
                   throws WordNetException
returns the senses of this word

Specified by:
getWordSenses in interface Word
Throws:
WordNetException

_loadWordSenses

private void _loadWordSenses()
                      throws WordNetException
Throws:
WordNetException

getLemma

public String getLemma()
returns the lemma of this word

Specified by:
getLemma in interface Word

getSenseCount

public int getSenseCount()
returns the number of senses of this word (not necessarily loading them from storage)

Specified by:
getSenseCount in interface Word