X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fgo%2FBasicGoRelationship.java;h=d539947115d910cc54d9fd45d59289edc39e4623;hb=b6366fd2ac865514d2ceacb63432dac532147a85;hp=247e859bdfa6fa17fcadbed5cb0151a94168626c;hpb=b568d2173eb55795647a68afc370aba0cb1170f2;p=jalview.git diff --git a/forester/java/src/org/forester/go/BasicGoRelationship.java b/forester/java/src/org/forester/go/BasicGoRelationship.java index 247e859..d539947 100644 --- a/forester/java/src/org/forester/go/BasicGoRelationship.java +++ b/forester/java/src/org/forester/go/BasicGoRelationship.java @@ -21,7 +21,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA // // Contact: phylosoft @ gmail . com -// WWW: www.phylosoft.org/forester +// WWW: https://sites.google.com/site/cmzmasek/home/software/forester package org.forester.go; @@ -52,6 +52,9 @@ public class BasicGoRelationship implements GoRelationship { else if ( type.toLowerCase().equals( HAS_PART_STR ) ) { _type = Type.HAS_PART; } + else if ( type.toLowerCase().equals( OCCURS_IN_STR ) ) { + _type = Type.OCCURS_IN; + } else { throw new IllegalArgumentException( "unknown GO relationship type: " + type ); } @@ -80,8 +83,8 @@ public class BasicGoRelationship implements GoRelationship { /** * Based on value and type. - * - * + * + * */ @Override public boolean equals( final Object o ) { @@ -130,6 +133,9 @@ public class BasicGoRelationship implements GoRelationship { case HAS_PART: sb.append( HAS_PART_STR ); break; + case OCCURS_IN: + sb.append( OCCURS_IN_STR ); + break; default: new IllegalStateException( "unknown type: " + getType() ); }