|
||||||||||
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)
PointerTarget
type
.
getPointers
in class PointerTarget
public boolean equals(java.lang.Object object)
Synset
equals
in class Synset
public PointerTarget[] getTargets() throws JWNLException
PointerTarget
getTargets
in class PointerTarget
JWNLException
public int hashCode()
hashCode
in class Synset
public PointerTarget[] getTargets(PointerType type) throws JWNLException
PointerTarget
type
.
getTargets
in class PointerTarget
JWNLException
public java.lang.String toString()
toString
in class Synset
public Pointer[] getPointers()
PointerTarget
getPointers
in class Synset
public java.lang.String getGloss()
getGloss
in class Synset
public Word[] getWords()
getWords
in class Synset
public Word getWord(int index)
getWord
in class Synset
public long getOffset()
getOffset
in class Synset
public java.lang.Object getKey()
DictionaryElement
getKey
in interface DictionaryElement
getKey
in class Synset
public java.lang.String[] getVerbFrames()
Synset
getVerbFrames
in class Synset
public boolean containsWord(java.lang.String lemma)
Synset
lemma
is one of the words contained in this synset.
containsWord
in class Synset
public java.lang.String getLexFileName()
Synset
getLexFileName
in class Synset
public long getLexFileId()
Synset
getLexFileId
in class Synset
public void setLexFileId(long lexFileId)
Synset
setLexFileId
in class Synset
lexFileId
- - 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 |