Package net.didion.jwnl.data
Class PointerTarget
- java.lang.Object
-
- net.didion.jwnl.data.PointerTarget
-
- All Implemented Interfaces:
Serializable
public abstract class PointerTarget extends Object implements Serializable
APointerTarget
is the source or target of aPointer
. The target of a semanticPointerTarget
is aSynset
; the target of a lexicalPointerTarget
is aWord
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PointerTarget()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
abstract Pointer[]
getPointers()
Return a list of Target's pointersPointer[]
getPointers(PointerType type)
Get all pointers of typetype
.abstract POS
getPOS()
Return this target's POSPointerTarget[]
getTargets()
Get all the pointer targets of this synsetPointerTarget[]
getTargets(PointerType type)
Get all the targets of the pointers of typetype
.abstract String
toString()
-
-
-
Method Detail
-
getPOS
public abstract POS getPOS()
Return this target's POS
-
getPointers
public abstract Pointer[] getPointers()
Return a list of Target's pointers
-
getPointers
public Pointer[] getPointers(PointerType type)
Get all pointers of typetype
.
-
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 typetype
.- Throws:
JWNLException
-
-