net.didion.jwnl.data
Class PointerTarget

java.lang.Object
  extended by net.didion.jwnl.data.PointerTarget
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Synset, Word

public abstract class PointerTarget
extends java.lang.Object
implements java.io.Serializable

A PointerTarget is the source or target of a Pointer. The target of a semantic PointerTarget is a Synset; the target of a lexical PointerTarget is a Word.

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object obj)
           
abstract  Pointer[] getPointers()
          Return a list of Target's pointers
 Pointer[] getPointers(PointerType type)
          Get all pointers of type type.
abstract  POS getPOS()
          Return this target's POS
 PointerTarget[] getTargets()
          Get all the pointer targets of this synset
 PointerTarget[] getTargets(PointerType type)
          Get all the targets of the pointers of type type.
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPOS

public abstract POS getPOS()
Return this target's POS


getPointers

public abstract Pointer[] getPointers()
Return a list of Target's pointers


toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getPointers

public Pointer[] getPointers(PointerType type)
Get all pointers of type type.


getTargets

public PointerTarget[] getTargets()
                           throws JWNLException
Get all the pointer targets of this synset

Throws:
JWNLException

getTargets

public PointerTarget[] getTargets(PointerType type)
                           throws JWNLException
Get all the targets of the pointers of type type.

Throws:
JWNLException