net.didion.jwnl.data
Class PointerTarget

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

public abstract class PointerTarget
extends Object
implements 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

Constructor Summary
protected PointerTarget()
           
 
Method Summary
 boolean equals(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  String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PointerTarget

protected PointerTarget()
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 String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class 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


Copyright © 2011. All Rights Reserved.