public class SynsetProxy extends Synset
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._gloss, _isAdjectiveCluster, _offset, _pointers, _pos, _verbFrameFlags, _words, lexFileName, lexFileNum| Constructor and Description |
|---|
SynsetProxy(POS pos)
The only value that matters is pos, since the
call to getPOS is not forwarded to _source
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsWord(String lemma)
Returns true if
lemma is one of the words contained in this synset. |
boolean |
equals(Object object)
Two Synsets are equal if their POS's and offsets are equal
|
String |
getGloss() |
Object |
getKey()
Get a key that can be used to index this element.
|
String |
getLexFileName()
Gets the lex file name.
|
long |
getLexFileNum()
Gets the lexicographer file name containing this synset.
|
long |
getOffset() |
Pointer[] |
getPointers()
Return a list of Target's pointers
|
Pointer[] |
getPointers(PointerType type)
Get all pointers of type
type. |
protected Synset |
getSource() |
PointerTarget[] |
getTargets()
Get all the pointer targets of this synset
|
PointerTarget[] |
getTargets(PointerType type)
Get all the targets of the pointers of type
type. |
BitSet |
getVerbFrameFlags() |
int[] |
getVerbFrameIndicies() |
String[] |
getVerbFrames()
Returns all Verb Frames that are valid for all the words in this synset
|
Word |
getWord(int index) |
Word[] |
getWords() |
int |
hashCode() |
boolean |
isAdjectiveCluster() |
void |
setLexFileNum(long lexFileId)
Sets the lexicographer file name containing this synset.
|
void |
setSource(Synset source) |
String |
toString() |
getPOS, getSenseKey, getType, getWordsSizepublic SynsetProxy(POS pos)
public Pointer[] getPointers(PointerType type)
PointerTargettype.getPointers in class PointerTargetpublic boolean equals(Object object)
Synsetpublic PointerTarget[] getTargets() throws JWNLException
PointerTargetgetTargets in class PointerTargetJWNLExceptionpublic PointerTarget[] getTargets(PointerType type) throws JWNLException
PointerTargettype.getTargets in class PointerTargetJWNLExceptionpublic Pointer[] getPointers()
PointerTargetgetPointers in class Synsetpublic Object getKey()
DictionaryElementgetKey in interface DictionaryElementgetKey in class Synsetpublic String[] getVerbFrames()
SynsetgetVerbFrames in class Synsetpublic BitSet getVerbFrameFlags()
getVerbFrameFlags in class Synsetpublic int[] getVerbFrameIndicies()
getVerbFrameIndicies in class Synsetpublic boolean containsWord(String lemma)
Synsetlemma is one of the words contained in this synset.containsWord in class Synsetpublic String getLexFileName()
SynsetgetLexFileName in class Synsetpublic long getLexFileNum()
SynsetgetLexFileNum in class Synsetpublic void setLexFileNum(long lexFileId)
SynsetsetLexFileNum in class SynsetlexFileId - - the lexicographer file name idprotected Synset getSource()
public void setSource(Synset source)
public boolean isAdjectiveCluster()
isAdjectiveCluster in class SynsetCopyright © 2023. All rights reserved.