public abstract class PointerTarget extends java.lang.Object implements java.io.Serializable, Owned
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
.Modifier and Type | Field and Description |
---|---|
protected Dictionary |
dictionary |
Modifier | Constructor and Description |
---|---|
protected |
PointerTarget(Dictionary dictionary) |
Modifier and Type | Method and Description |
---|---|
Dictionary |
getDictionary()
Returns the dictionary this object belongs to.
|
abstract int |
getIndex() |
abstract java.util.List<Pointer> |
getPointers()
Returns a list of Target's pointers.
|
java.util.List<Pointer> |
getPointers(PointerType type)
Returns all pointers of type type.
|
abstract POS |
getPOS() |
abstract Synset |
getSynset() |
java.util.List<PointerTarget> |
getTargets()
Returns all the pointer targets of this synset.
|
java.util.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 java.lang.String |
toString() |
protected transient Dictionary dictionary
protected PointerTarget(Dictionary dictionary)
public abstract POS getPOS()
public abstract Synset getSynset()
public abstract int getIndex()
public abstract java.util.List<Pointer> getPointers()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<Pointer> getPointers(PointerType type)
type
- pointer typepublic java.util.List<PointerTarget> getTargets() throws JWNLException
JWNLException
- JWNLExceptionpublic java.util.List<PointerTarget> getTargets(PointerType type) throws JWNLException
type
- pointer typeJWNLException
- JWNLExceptionpublic Dictionary getDictionary()
Owned
getDictionary
in interface Owned
public void setDictionary(Dictionary dictionary) throws JWNLException
Owned
setDictionary
in interface Owned
dictionary
- the dictionary this object belongs toJWNLException
- JWNLException