|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.didion.jwnl.data.PointerTarget
net.didion.jwnl.data.Synset
net.didion.jwnl.data.SynsetProxy
public class SynsetProxy
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.
| Field Summary |
|---|
| Fields inherited from class net.didion.jwnl.data.Synset |
|---|
_gloss, _isAdjectiveCluster, _offset, _pointers, _pos, _verbFrameFlags, _words, lexFileName, lexFileNum |
| Constructor Summary | |
|---|---|
SynsetProxy(POS pos)
The only value that matters is pos, since the call to getPOS is not forwarded to _source |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class net.didion.jwnl.data.Synset |
|---|
getPOS, getSenseKey, getType, getWordsSize |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SynsetProxy(POS pos)
| Method Detail |
|---|
public Pointer[] getPointers(PointerType type)
PointerTargettype.
getPointers in class PointerTargetpublic boolean equals(Object object)
Synset
equals in class Synset
public PointerTarget[] getTargets()
throws JWNLException
PointerTarget
getTargets in class PointerTargetJWNLExceptionpublic int hashCode()
hashCode in class Synset
public PointerTarget[] getTargets(PointerType type)
throws JWNLException
PointerTargettype.
getTargets in class PointerTargetJWNLExceptionpublic String toString()
toString in class Synsetpublic Pointer[] getPointers()
PointerTarget
getPointers in class Synsetpublic String getGloss()
getGloss in class Synsetpublic Word[] getWords()
getWords in class Synsetpublic Word getWord(int index)
getWord in class Synsetpublic long getOffset()
getOffset in class Synsetpublic Object getKey()
DictionaryElement
getKey in interface DictionaryElementgetKey in class Synsetpublic String[] getVerbFrames()
Synset
getVerbFrames 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()
Synset
getLexFileName in class Synsetpublic long getLexFileNum()
Synset
getLexFileNum in class Synsetpublic void setLexFileNum(long lexFileId)
Synset
setLexFileNum in class SynsetlexFileId - - the lexicographer file name idprotected Synset getSource()
public void setSource(Synset source)
public boolean isAdjectiveCluster()
isAdjectiveCluster in class Synset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||