GATE
Version 3.1-2270

gate.lexicon
Class MutableLexKBSynsetImpl

java.lang.Object
  extended by gate.lexicon.MutableLexKBSynsetImpl
All Implemented Interfaces:
LexKBSynset, MutableLexKBSynset, Serializable

public class MutableLexKBSynsetImpl
extends Object
implements MutableLexKBSynset, Serializable

See Also:
Serialized Form

Constructor Summary
MutableLexKBSynsetImpl()
           
 
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
 String getDefinition()
          textual description of the synset
 Object getId()
          Returns the Id of the synset, each synset has a unique Id for connection to the ontology
 Object getPOS()
          returns the part-of-speech for this synset
 LexKBWordSense getWordSense(int offset)
          get specific WordSense according to its order in the synset - most important senses come first
 List getWordSenses()
          WordSenses contained in this synset
 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
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableLexKBSynsetImpl

public MutableLexKBSynsetImpl()
Method Detail

setPOS

public void setPOS(Object newPOS)
Description copied from interface: MutableLexKBSynset
sets the part-of-speech for this synset

Specified by:
setPOS in interface MutableLexKBSynset

setDefinition

public void setDefinition(String newDefinition)
Description copied from interface: MutableLexKBSynset
textual description of the synset

Specified by:
setDefinition in interface MutableLexKBSynset

addWordSense

public boolean addWordSense(LexKBWordSense newWordSense)
Description copied from interface: MutableLexKBSynset
add a new word sense at the end of the synset

Specified by:
addWordSense in interface MutableLexKBSynset

addWordSense

public boolean addWordSense(LexKBWordSense newWordSense,
                            int offset)
Description copied from interface: MutableLexKBSynset
add a new word sense at a given position

Specified by:
addWordSense in interface MutableLexKBSynset

setWordSenseIndex

public boolean setWordSenseIndex(LexKBWordSense wordSense,
                                 int newOffset)
Description copied from interface: MutableLexKBSynset
change the offset of an existing word sense

Specified by:
setWordSenseIndex in interface MutableLexKBSynset

getId

public Object getId()
Description copied from interface: LexKBSynset
Returns the Id of the synset, each synset has a unique Id for connection to the ontology

Specified by:
getId in interface LexKBSynset

getPOS

public Object getPOS()
returns the part-of-speech for this synset

Specified by:
getPOS in interface LexKBSynset

getDefinition

public String getDefinition()
textual description of the synset

Specified by:
getDefinition in interface LexKBSynset

getWordSenses

public List getWordSenses()
WordSenses contained in this synset

Specified by:
getWordSenses in interface LexKBSynset

getWordSense

public LexKBWordSense getWordSense(int offset)
get specific WordSense according to its order in the synset - most important senses come first

Specified by:
getWordSense in interface LexKBSynset

toString

public String toString()
Overrides:
toString in class Object

removeSenses

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

removeSense

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

GATE
Version 3.1-2270