|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.data.relationship.Relationship
public abstract class Relationship
A Relationship
encapsulates the relationship between two synsets. Basically, it is a list of
synsets/words that one must traverse to get from the source synset to the target synset of the
relationship, for some relationship type.
Symmetric
and Asymmetric
.
Constructor Summary | |
---|---|
protected |
Relationship(PointerType type,
PointerTargetNodeList nodes,
Synset sourceSynset,
Synset targetSynset)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Two relationships are assumed equal if they have the same source synset, target synset, and type |
int |
getDepth()
Returns the depth of this relationship. |
PointerTargetNodeList |
getNodeList()
Returns the list that contains the nodes of this relationship. |
int |
getSize()
|
PointerTarget |
getSourcePointerTarget()
Returns the pointer target of the source node. |
Synset |
getSourceSynset()
Returns the synset that is the source of this relationship. |
PointerTarget |
getTargetPointerTarget()
Returns the pointer target of the target node. |
Synset |
getTargetSynset()
Returns the synset that is the target of this relationship. |
PointerType |
getType()
|
abstract Relationship |
reverse()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Relationship(PointerType type, PointerTargetNodeList nodes, Synset sourceSynset, Synset targetSynset)
Method Detail |
---|
public abstract Relationship reverse() throws CloneNotSupportedException
CloneNotSupportedException
public PointerTargetNodeList getNodeList()
public PointerTarget getSourcePointerTarget()
public PointerTarget getTargetPointerTarget()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public PointerType getType()
public Synset getSourceSynset()
public Synset getTargetSynset()
public int getSize()
public int getDepth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |