GATE
Version 3.1-2270

gate.lexicon
Class MutableWordImpl

java.lang.Object
  extended by gate.lexicon.MutableWordImpl
All Implemented Interfaces:
MutableWord, Word, Serializable
Direct Known Subclasses:
NLGLexWordImpl

public class MutableWordImpl
extends Object
implements MutableWord, Serializable

See Also:
Serialized Form

Constructor Summary
MutableWordImpl(String newLemma)
           
 
Method Summary
 LexKBWordSense addSense(int index, MutableLexKBSynset wordSynset)
          Add a new sense to this word at the given index
 LexKBWordSense addSense(MutableLexKBSynset wordSynset)
          Add a new sense to this word
 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
 void removeSense(LexKBWordSense theSense)
           
 void removeSenses()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableWordImpl

public MutableWordImpl(String newLemma)
Method Detail

addSense

public LexKBWordSense addSense(MutableLexKBSynset wordSynset)
Description copied from interface: MutableWord
Add a new sense to this word

Specified by:
addSense in interface MutableWord

addSense

public LexKBWordSense addSense(int index,
                               MutableLexKBSynset wordSynset)
Description copied from interface: MutableWord
Add a new sense to this word at the given index

Specified by:
addSense in interface MutableWord

getWordSenses

public List getWordSenses()
Description copied from interface: Word
returns the senses of this word

Specified by:
getWordSenses in interface Word

getLemma

public String getLemma()
Description copied from interface: Word
returns the lemma of this word

Specified by:
getLemma in interface Word

getSenseCount

public int getSenseCount()
Description copied from interface: Word
returns the number of senses of this word (not necessarily loading them from storage)

Specified by:
getSenseCount in interface Word

removeSenses

public void removeSenses()
Specified by:
removeSenses in interface MutableWord

removeSense

public void removeSense(LexKBWordSense theSense)
Specified by:
removeSense in interface MutableWord

GATE
Version 3.1-2270