|
||||||||||
| 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.
| 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(java.lang.String lemma)
Returns true if lemma is one of the words contained in this synset. |
boolean |
equals(java.lang.Object object)
Two Synsets are equal if their POS's and offsets are equal |
java.lang.String |
getGloss()
|
java.lang.Object |
getKey()
Get a key that can be used to index this element. |
long |
getLexFileId()
Gets the lexicographer file name containing this synset. |
java.lang.String |
getLexFileName()
Gets the lex file name. |
long |
getOffset()
|
Pointer[] |
getPointers()
Return a list of Target's pointers |
Pointer[] |
getPointers(PointerType type)
Get all pointers of type type. |
PointerTarget[] |
getTargets()
Get all the pointer targets of this synset |
PointerTarget[] |
getTargets(PointerType type)
Get all the targets of the pointers of type type. |
java.lang.String[] |
getVerbFrames()
Returns all Verb Frames that are valid for all the words in this synset |
Word |
getWord(int index)
|
Word[] |
getWords()
|
int |
hashCode()
|
void |
setLexFileId(long lexFileId)
Sets the lexicographer file name containing this synset. |
void |
setSource(Synset source)
|
java.lang.String |
toString()
|
| Methods inherited from class net.didion.jwnl.data.Synset |
|---|
getPOS, getType, getVerbFrameFlags, getVerbFrameIndicies, getWordsSize, isAdjectiveCluster |
| Methods inherited from class java.lang.Object |
|---|
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(java.lang.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 java.lang.String toString()
toString in class Synsetpublic Pointer[] getPointers()
PointerTarget
getPointers in class Synsetpublic java.lang.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 java.lang.Object getKey()
DictionaryElement
getKey in interface DictionaryElementgetKey in class Synsetpublic java.lang.String[] getVerbFrames()
Synset
getVerbFrames in class Synsetpublic boolean containsWord(java.lang.String lemma)
Synsetlemma is one of the words contained in this synset.
containsWord in class Synsetpublic java.lang.String getLexFileName()
Synset
getLexFileName in class Synsetpublic long getLexFileId()
Synset
getLexFileId in class Synsetpublic void setLexFileId(long lexFileId)
Synset
setLexFileId in class SynsetlexFileId - - the lexicographer file name idpublic void setSource(Synset source)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||