gate.lexicon
Interface MutableLexKBSynset

All Superinterfaces:
LexKBSynset
All Known Implementing Classes:
MutableLexKBSynsetImpl

public interface MutableLexKBSynset
extends LexKBSynset


Method Summary
 boolean addWordSense(LexKBWordSense newWordSense)
          add a new word sense at the end of the synset
 boolean addWordSense(LexKBWordSense newWordSense, int offset)
          add a new word sense at a given position
 void removeSense(LexKBWordSense theSense)
           
 void removeSenses()
           
 void setDefinition(String newDefinition)
          textual description of the synset
 void setPOS(Object newPOS)
          sets the part-of-speech for this synset
 boolean setWordSenseIndex(LexKBWordSense wordSense, int newOffset)
          change the offset of an existing word sense
 
Methods inherited from interface gate.lexicon.LexKBSynset
getDefinition, getId, getPOS, getWordSense, getWordSenses
 

Method Detail

setPOS

public void setPOS(Object newPOS)
sets the part-of-speech for this synset


setDefinition

public void setDefinition(String newDefinition)
textual description of the synset


addWordSense

public boolean addWordSense(LexKBWordSense newWordSense)
add a new word sense at the end of the synset


addWordSense

public boolean addWordSense(LexKBWordSense newWordSense,
                            int offset)
add a new word sense at a given position


setWordSenseIndex

public boolean setWordSenseIndex(LexKBWordSense wordSense,
                                 int newOffset)
change the offset of an existing word sense


removeSenses

public void removeSenses()

removeSense

public void removeSense(LexKBWordSense theSense)