/** * Finds all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var>. * This method creates a symmetric or asymmetric relationship based on whether <var>type</var> is symmetric. * * @param sourceSynset source synset * @param targetSynset target synset * @param type pointer type * @return all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var> * @throws CloneNotSupportedException CloneNotSupportedException * @throws JWNLException JWNLException */ public static RelationshipList findRelationships( Synset sourceSynset, Synset targetSynset, PointerType type) throws CloneNotSupportedException, JWNLException { return (type.isSymmetric()) ? findSymmetricRelationships(sourceSynset, targetSynset, type) : findAsymmetricRelationships(sourceSynset, targetSynset, type); }
/** * Finds all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var>. * This method creates a symmetric or asymmetric relationship based on whether <var>type</var> is symmetric. * * @param sourceSynset source synset * @param targetSynset target synset * @param type pointer type * @return all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var> * @throws CloneNotSupportedException CloneNotSupportedException * @throws JWNLException JWNLException */ public static RelationshipList findRelationships( Synset sourceSynset, Synset targetSynset, PointerType type) throws CloneNotSupportedException, JWNLException { return (type.isSymmetric()) ? findSymmetricRelationships(sourceSynset, targetSynset, type) : findAsymmetricRelationships(sourceSynset, targetSynset, type); }
/** * Finds all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var> * to depth <var>depth</var>. This method creates a symmetric or asymmetric relationship based on * whether <var>type</var> is symmetric. * * @param sourceSynset source synset * @param targetSynset target synset * @param type pointer type * @param depth depth * @return all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var> * @throws CloneNotSupportedException CloneNotSupportedException * @throws JWNLException JWNLException */ public static RelationshipList findRelationships( Synset sourceSynset, Synset targetSynset, PointerType type, int depth) throws CloneNotSupportedException, JWNLException { return (type.isSymmetric()) ? findSymmetricRelationships(sourceSynset, targetSynset, type, depth) : findAsymmetricRelationships(sourceSynset, targetSynset, type, depth); }
/** * Finds all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var> * to depth <var>depth</var>. This method creates a symmetric or asymmetric relationship based on * whether <var>type</var> is symmetric. * * @param sourceSynset source synset * @param targetSynset target synset * @param type pointer type * @param depth depth * @return all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var> * @throws CloneNotSupportedException CloneNotSupportedException * @throws JWNLException JWNLException */ public static RelationshipList findRelationships( Synset sourceSynset, Synset targetSynset, PointerType type, int depth) throws CloneNotSupportedException, JWNLException { return (type.isSymmetric()) ? findSymmetricRelationships(sourceSynset, targetSynset, type, depth) : findAsymmetricRelationships(sourceSynset, targetSynset, type, depth); }