net.didion.jwnl.data.list
Class PointerTargetNode

java.lang.Object
  extended bynet.didion.jwnl.data.list.PointerTargetNode
All Implemented Interfaces:
java.lang.Cloneable, DeepCloneable, Node
Direct Known Subclasses:
PointerTargetTreeNode

public class PointerTargetNode
extends java.lang.Object
implements Node

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

PointerTargetNode

public PointerTargetNode(PointerTarget target)

PointerTargetNode

public PointerTargetNode(PointerTarget target,
                         PointerType type)
Method Detail

setType

public void setType(PointerType type)

getType

public PointerType getType()

getPointerTarget

public PointerTarget getPointerTarget()

isLexical

public boolean isLexical()
Returns true if the target is a Word, else false.


getSynset

public Synset getSynset()
If the target is a synset, return it, otherwise it's a word so return the word's parent synset.


getWord

public Word getWord()
If the target is a word, return it, otherwise return null.


equals

public boolean equals(java.lang.Object object)
Two PointerTargetNodes are equal if they have the same type and PointerTarget


toString

public java.lang.String toString()

hashCode

public int hashCode()

clone

public java.lang.Object clone()
Description copied from interface: DeepCloneable
Create a shallow clone of the object

Specified by:
clone in interface DeepCloneable

deepClone

public java.lang.Object deepClone()
                           throws java.lang.UnsupportedOperationException
Description copied from interface: DeepCloneable
Create a deep clone of the object

Specified by:
deepClone in interface DeepCloneable
Throws:
java.lang.UnsupportedOperationException



JWNL homepage.