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.SerializableAPointerTargetis the source or target of aPointer. The target of a semanticPointerTargetis aSynset; the target of a lexicalPointerTargetis aWord.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private PointerTarget[]_pointerTargets(package private) static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedPointerTarget()
-
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.booleanequals(java.lang.Object obj)abstract Pointer[]getPointers()Return a list of Target's pointersPointer[]getPointers(PointerType type)Get all pointers of typetype.abstract POSgetPOS()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.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin 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
-
-