|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.data.relationship.RelationshipFinder
public class RelationshipFinder
Helper class to find relations.
Method Summary | |
---|---|
static RelationshipList |
findRelationships(Synset sourceSynset,
Synset targetSynset,
PointerType type)
Finds all relationships of type type between sourceSynset and targetSynset. |
static RelationshipList |
findRelationships(Synset sourceSynset,
Synset targetSynset,
PointerType type,
int depth)
Finds all relationships of type type between sourceSynset and targetSynset to depth depth. |
static int |
getImmediateRelationship(IndexWord sourceWord,
IndexWord targetWord)
Looks whether the target word is one of the words in one of the synsets of the source word. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int getImmediateRelationship(IndexWord sourceWord, IndexWord targetWord)
sourceWord
- source wordtargetWord
- target word
public static RelationshipList findRelationships(Synset sourceSynset, Synset targetSynset, PointerType type) throws CloneNotSupportedException
sourceSynset
- source synsettargetSynset
- target synsettype
- pointer type
CloneNotSupportedException
- CloneNotSupportedExceptionpublic static RelationshipList findRelationships(Synset sourceSynset, Synset targetSynset, PointerType type, int depth) throws CloneNotSupportedException
sourceSynset
- source synsettargetSynset
- target synsettype
- pointer typedepth
- depth
CloneNotSupportedException
- CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |