GATE
Version 3.1-2270

gate.lexicon
Class MutableLexKBWordSenseImpl

java.lang.Object
  extended by gate.lexicon.MutableLexKBWordSenseImpl
All Implemented Interfaces:
LexKBWordSense, MutableLexKBWordSense, Serializable
Direct Known Subclasses:
NLGLexWordSenseImpl

public class MutableLexKBWordSenseImpl
extends Object
implements MutableLexKBWordSense, Serializable

See Also:
Serialized Form

Constructor Summary
MutableLexKBWordSenseImpl(Word myWord, MutableLexKBSynset mySynset, int mySenseNumber, int myOrderInSynset)
           
 
Method Summary
 int getOrderInSynset()
          order of this sense relative to the synset- i.e. most important senses of the same synset come first
 Object getPOS()
          part-of-speech for this sense (inherited from the containing synset)
 int getSenseNumber()
          order of this sense relative to the word - i.e. most important senses of the same word come first
 LexKBSynset getSynset()
          synset of this sense
 Word getWord()
          returns the Word of this WordSense
 void setOrderInSynset(int newIndex)
           
 void setSenseNumber(int newNumber)
          Needed for when senses get renumbered after deletion
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableLexKBWordSenseImpl

public MutableLexKBWordSenseImpl(Word myWord,
                                 MutableLexKBSynset mySynset,
                                 int mySenseNumber,
                                 int myOrderInSynset)
Method Detail

getWord

public Word getWord()
Description copied from interface: LexKBWordSense
returns the Word of this WordSense

Specified by:
getWord in interface LexKBWordSense

getPOS

public Object getPOS()
Description copied from interface: LexKBWordSense
part-of-speech for this sense (inherited from the containing synset)

Specified by:
getPOS in interface LexKBWordSense

getSynset

public LexKBSynset getSynset()
Description copied from interface: LexKBWordSense
synset of this sense

Specified by:
getSynset in interface LexKBWordSense

getSenseNumber

public int getSenseNumber()
Description copied from interface: LexKBWordSense
order of this sense relative to the word - i.e. most important senses of the same word come first

Specified by:
getSenseNumber in interface LexKBWordSense

getOrderInSynset

public int getOrderInSynset()
Description copied from interface: LexKBWordSense
order of this sense relative to the synset- i.e. most important senses of the same synset come first

Specified by:
getOrderInSynset in interface LexKBWordSense

setOrderInSynset

public void setOrderInSynset(int newIndex)
Specified by:
setOrderInSynset in interface MutableLexKBWordSense

toString

public String toString()
Overrides:
toString in class Object

setSenseNumber

public void setSenseNumber(int newNumber)
Description copied from interface: MutableLexKBWordSense
Needed for when senses get renumbered after deletion

Specified by:
setSenseNumber in interface MutableLexKBWordSense

GATE
Version 3.1-2270