Package net.didion.jwnl.data
Class PointerTarget
- java.lang.Object
-
- net.didion.jwnl.data.PointerTarget
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class PointerTarget extends java.lang.Object implements java.io.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
-
-
Field Summary
Fields Modifier and Type Field Description private PointerTarget[]
_pointerTargets
(package private) static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protected
PointerTarget()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private PointerTarget[]
collectTargets(Pointer[] pointers)
Get an array of all the targets ofpointers
.boolean
equals(java.lang.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 java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
_pointerTargets
private transient PointerTarget[] _pointerTargets
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
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
-
collectTargets
private PointerTarget[] collectTargets(Pointer[] pointers) throws JWNLException
Get an array of all the targets ofpointers
.- Throws:
JWNLException
-
-