net.sf.extjwnl.data
Class PointerTarget

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

public abstract class PointerTarget
extends Object
implements Serializable, Owned

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.

Author:
John Didion , Aliaksandr Autayeu
See Also:
Serialized Form

Field Summary
protected  Dictionary dictionary
           
 
Constructor Summary
protected PointerTarget(Dictionary dictionary)
           
 
Method Summary
 boolean equals(Object obj)
           
 Dictionary getDictionary()
          Returns the dictionary this object belongs to.
abstract  int getIndex()
           
abstract  List<Pointer> getPointers()
          Returns a list of Target's pointers.
 List<Pointer> getPointers(PointerType type)
          Returns all pointers of type type.
abstract  POS getPOS()
           
abstract  Synset getSynset()
           
 List<PointerTarget> getTargets()
          Returns all the pointer targets of this synset.
 List<PointerTarget> getTargets(PointerType type)
          Returns all the targets of the pointers of type type.
 void setDictionary(Dictionary dictionary)
          Sets the dictionary this object belongs to.
abstract  String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dictionary

protected transient Dictionary dictionary
Constructor Detail

PointerTarget

protected PointerTarget(Dictionary dictionary)
Method Detail

getPOS

public abstract POS getPOS()

getSynset

public abstract Synset getSynset()

getIndex

public abstract int getIndex()

getPointers

public abstract List<Pointer> getPointers()
Returns a list of Target's pointers.

Returns:
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 List<Pointer> getPointers(PointerType type)
Returns all pointers of type type.

Parameters:
type - pointer type
Returns:
all pointers of type type

getTargets

public List<PointerTarget> getTargets()
Returns all the pointer targets of this synset.

Returns:
all the pointer targets of this synset

getTargets

public List<PointerTarget> getTargets(PointerType type)
Returns all the targets of the pointers of type type.

Parameters:
type - pointer type
Returns:
all the targets of the pointers of type type

getDictionary

public Dictionary getDictionary()
Description copied from interface: Owned
Returns the dictionary this object belongs to.

Specified by:
getDictionary in interface Owned
Returns:
the dictionary this object belongs to

setDictionary

public void setDictionary(Dictionary dictionary)
                   throws JWNLException
Description copied from interface: Owned
Sets the dictionary this object belongs to.

Specified by:
setDictionary in interface Owned
Parameters:
dictionary - the dictionary this object belongs to
Throws:
JWNLException - JWNLException


Copyright © 2011. All Rights Reserved.