|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.didion.jwnl.data.list.PointerTargetNode
A node in a PointerTargetNodeList.
| Constructor Summary | |
PointerTargetNode(PointerTarget target)
|
|
PointerTargetNode(PointerTarget target,
PointerType type)
|
|
| Method Summary | |
java.lang.Object |
clone()
Create a shallow clone of the object |
java.lang.Object |
deepClone()
Create a deep clone of the object |
boolean |
equals(java.lang.Object object)
Two PointerTargetNodes are equal if they have the same type and PointerTarget |
PointerTarget |
getPointerTarget()
|
Synset |
getSynset()
If the target is a synset, return it, otherwise it's a word so return the word's parent synset. |
PointerType |
getType()
|
Word |
getWord()
If the target is a word, return it, otherwise return null. |
int |
hashCode()
|
boolean |
isLexical()
Returns true if the target is a Word, else false. |
void |
setType(PointerType type)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PointerTargetNode(PointerTarget target)
public PointerTargetNode(PointerTarget target,
PointerType type)
| Method Detail |
public void setType(PointerType type)
public PointerType getType()
public PointerTarget getPointerTarget()
public boolean isLexical()
public Synset getSynset()
public Word getWord()
public boolean equals(java.lang.Object object)
public java.lang.String toString()
public int hashCode()
public java.lang.Object clone()
DeepCloneable
clone in interface DeepCloneable
public java.lang.Object deepClone()
throws java.lang.UnsupportedOperationException
DeepCloneable
deepClone in interface DeepCloneablejava.lang.UnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||