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, getWordsSize
public SynsetProxy(POS pos)
public Pointer[] getPointers(PointerType type)
PointerTarget
type
.getPointers
in class PointerTarget
public boolean equals(Object object)
Synset
public PointerTarget[] getTargets() throws JWNLException
PointerTarget
getTargets
in class PointerTarget
JWNLException
public PointerTarget[] getTargets(PointerType type) throws JWNLException
PointerTarget
type
.getTargets
in class PointerTarget
JWNLException
public Pointer[] getPointers()
PointerTarget
getPointers
in class Synset
public Object getKey()
DictionaryElement
getKey
in interface DictionaryElement
getKey
in class Synset
public String[] getVerbFrames()
Synset
getVerbFrames
in class Synset
public BitSet getVerbFrameFlags()
getVerbFrameFlags
in class Synset
public int[] getVerbFrameIndicies()
getVerbFrameIndicies
in class Synset
public boolean containsWord(String lemma)
Synset
lemma
is one of the words contained in this synset.containsWord
in class Synset
public String getLexFileName()
Synset
getLexFileName
in class Synset
public long getLexFileNum()
Synset
getLexFileNum
in class Synset
public void setLexFileNum(long lexFileId)
Synset
setLexFileNum
in class Synset
lexFileId
- - the lexicographer file name idprotected Synset getSource()
public void setSource(Synset source)
public boolean isAdjectiveCluster()
isAdjectiveCluster
in class Synset
Copyright © 2016. All rights reserved.