|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.data.Pointer
public class Pointer
A Pointer
encodes a lexical or semantic relationship between WordNet entities. A lexical
relationship holds between Words; a semantic relationship holds between Synsets. Relationships
are PointerType
, and can
be retrieved via getType
.
Constructor Summary | |
---|---|
Pointer(PointerTarget source,
PointerType pointerType,
POS targetPOS,
long targetOffset,
int targetIndex)
|
|
Pointer(PointerType pointerType,
PointerTarget source,
PointerTarget target)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
PointerTarget |
getSource()
Returns the source of this pointer. |
int |
getSourceIndex()
|
PointerTarget |
getTarget()
Returns the actual target of this pointer. |
int |
getTargetIndex()
|
long |
getTargetOffset()
Returns the offset of the target synset. |
POS |
getTargetPOS()
|
Synset |
getTargetSynset()
Returns the synset that is a) the target of this pointer, or b) the synset that contains the target of this pointer. |
PointerType |
getType()
|
int |
hashCode()
|
boolean |
isLexical()
Returns whether this pointer's source is a Word. |
void |
setTarget(PointerTarget target)
Sets the actual target of this pointer. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Pointer(PointerTarget source, PointerType pointerType, POS targetPOS, long targetOffset, int targetIndex)
public Pointer(PointerType pointerType, PointerTarget source, PointerTarget target)
Method Detail |
---|
public String toString()
toString
in class Object
public int getSourceIndex()
public PointerType getType()
public boolean isLexical()
public PointerTarget getSource()
public PointerTarget getTarget()
public void setTarget(PointerTarget target)
target
- actual target of this pointerpublic Synset getTargetSynset()
public long getTargetOffset()
public int getTargetIndex()
public POS getTargetPOS()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |