gate.lexicon
Class NLGLexWordSenseImpl

java.lang.Object
  extended bygate.lexicon.MutableLexKBWordSenseImpl
      extended bygate.lexicon.NLGLexWordSenseImpl
All Implemented Interfaces:
LexKBWordSense, MutableLexKBWordSense, NLGLexWordSense, Serializable

public class NLGLexWordSenseImpl
extends MutableLexKBWordSenseImpl
implements NLGLexWordSense, Serializable

See Also:
Serialized Form

Field Summary
protected  HashMap extraLexInfo
           
(package private) static long serialVersionUID
           
 
Fields inherited from class gate.lexicon.MutableLexKBWordSenseImpl
orderInSynset, senseNumber, senseSynset, senseWord
 
Constructor Summary
NLGLexWordSenseImpl(Word myWord, MutableLexKBSynset mySynset, int mySenseNumber, int myOrderInSynset)
           
 
Method Summary
 void addExtraInfo(String key, Object value)
          Add extra info for the given key and value
 HashMap getExtraInfo()
          Returns all extra info for this entry
 Object getExtraInfo(String key)
          Returns the extra info associated with a key
 void setExtraInfo(HashMap newInfo)
          Sets the extra syntactic info, which is a hash map with keys strings (e.g., synt-category) and values any object that is serialisable
 
Methods inherited from class gate.lexicon.MutableLexKBWordSenseImpl
getOrderInSynset, getPOS, getSenseNumber, getSynset, getWord, setOrderInSynset, setSenseNumber, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gate.lexicon.MutableLexKBWordSense
setOrderInSynset, setSenseNumber
 
Methods inherited from interface gate.lexicon.LexKBWordSense
getOrderInSynset, getPOS, getSenseNumber, getSynset, getWord
 

Field Detail

extraLexInfo

protected HashMap extraLexInfo

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

NLGLexWordSenseImpl

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

setExtraInfo

public void setExtraInfo(HashMap newInfo)
Description copied from interface: NLGLexWordSense
Sets the extra syntactic info, which is a hash map with keys strings (e.g., synt-category) and values any object that is serialisable

Specified by:
setExtraInfo in interface NLGLexWordSense

addExtraInfo

public void addExtraInfo(String key,
                         Object value)
Description copied from interface: NLGLexWordSense
Add extra info for the given key and value

Specified by:
addExtraInfo in interface NLGLexWordSense

getExtraInfo

public Object getExtraInfo(String key)
Description copied from interface: NLGLexWordSense
Returns the extra info associated with a key

Specified by:
getExtraInfo in interface NLGLexWordSense

getExtraInfo

public HashMap getExtraInfo()
Description copied from interface: NLGLexWordSense
Returns all extra info for this entry

Specified by:
getExtraInfo in interface NLGLexWordSense