Class SynsetProxy
java.lang.Object
net.didion.jwnl.data.PointerTarget
net.didion.jwnl.data.Synset
net.didion.jwnl.data.SynsetProxy
- All Implemented Interfaces:
Serializable, DictionaryElement
Proxy for a
Synset. This class wraps a Synset that may be null at
the time of creation. When this Synset is initialized (set), all
method calls are forwarded to it.- See Also:
-
Field Summary
FieldsFields inherited from class Synset
_gloss, _isAdjectiveCluster, _offset, _pointers, _pos, _verbFrameFlags, _words, lexFileName, lexFileNum -
Constructor Summary
ConstructorsConstructorDescriptionSynsetProxy(POS pos) The only value that matters is pos, since the call to getPOS is not forwarded to _source -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsWord(String lemma) Returns true iflemmais one of the words contained in this synset.booleanTwo Synsets are equal if their POS's and offsets are equalgetGloss()getKey()Get a key that can be used to index this element.Gets the lex file name.longGets the lexicographer file name containing this synset.longPointer[]Return a list of Target's pointersPointer[]getPointers(PointerType type) Get all pointers of typetype.protected SynsetGet all the pointer targets of this synsetgetTargets(PointerType type) Get all the targets of the pointers of typetype.int[]String[]Returns all Verb Frames that are valid for all the words in this synsetgetWord(int index) Word[]getWords()inthashCode()booleanvoidsetLexFileNum(long lexFileId) Sets the lexicographer file name containing this synset.voidtoString()Methods inherited from class Synset
getPOS, getSenseKey, getType, getWordsSize
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
_source
-
-
Constructor Details
-
SynsetProxy
The only value that matters is pos, since the call to getPOS is not forwarded to _source
-
-
Method Details
-
getPointers
Description copied from class:PointerTargetGet all pointers of typetype.- Overrides:
getPointersin classPointerTarget
-
equals
-
getTargets
Description copied from class:PointerTargetGet all the pointer targets of this synset- Overrides:
getTargetsin classPointerTarget- Throws:
JWNLException
-
hashCode
-
getTargets
Description copied from class:PointerTargetGet all the targets of the pointers of typetype.- Overrides:
getTargetsin classPointerTarget- Throws:
JWNLException
-
toString
-
getPointers
Description copied from class:PointerTargetReturn a list of Target's pointers- Overrides:
getPointersin classSynset
-
getGloss
-
getWords
-
getWord
-
getOffset
-
getKey
Description copied from interface:DictionaryElementGet a key that can be used to index this element.- Specified by:
getKeyin interfaceDictionaryElement- Overrides:
getKeyin classSynset
-
getVerbFrames
Description copied from class:SynsetReturns all Verb Frames that are valid for all the words in this synset- Overrides:
getVerbFramesin classSynset
-
getVerbFrameFlags
- Overrides:
getVerbFrameFlagsin classSynset
-
getVerbFrameIndicies
public int[] getVerbFrameIndicies()- Overrides:
getVerbFrameIndiciesin classSynset
-
containsWord
Description copied from class:SynsetReturns true iflemmais one of the words contained in this synset.- Overrides:
containsWordin classSynset
-
getLexFileName
Description copied from class:SynsetGets the lex file name.- Overrides:
getLexFileNamein classSynset- Returns:
-
getLexFileNum
public long getLexFileNum()Description copied from class:SynsetGets the lexicographer file name containing this synset.- Overrides:
getLexFileNumin classSynset- Returns:
- two digit decimal integer
-
setLexFileNum
public void setLexFileNum(long lexFileId) Description copied from class:SynsetSets the lexicographer file name containing this synset.- Overrides:
setLexFileNumin classSynset- Parameters:
lexFileId- - the lexicographer file name id
-
getSource
-
setSource
-
isAdjectiveCluster
public boolean isAdjectiveCluster()- Overrides:
isAdjectiveClusterin classSynset
-