X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fgo%2FBasicGoRelationship.java;h=247e859bdfa6fa17fcadbed5cb0151a94168626c;hb=c6b74aa20ac0c91099597b9474e7da6c0ffdb9a6;hp=69d612ff4c34b6ce9faf25afa376b1cea9b9b7a9;hpb=eee996a6476a1e3d84c07f8f690dcde3ff4b2ef5;p=jalview.git diff --git a/forester/java/src/org/forester/go/BasicGoRelationship.java b/forester/java/src/org/forester/go/BasicGoRelationship.java index 69d612f..247e859 100644 --- a/forester/java/src/org/forester/go/BasicGoRelationship.java +++ b/forester/java/src/org/forester/go/BasicGoRelationship.java @@ -49,6 +49,9 @@ public class BasicGoRelationship implements GoRelationship { else if ( type.toLowerCase().equals( POSITIVELY_REGULATES_STR ) ) { _type = Type.POSITIVELY_REGULATES; } + else if ( type.toLowerCase().equals( HAS_PART_STR ) ) { + _type = Type.HAS_PART; + } else { throw new IllegalArgumentException( "unknown GO relationship type: " + type ); } @@ -124,8 +127,11 @@ public class BasicGoRelationship implements GoRelationship { case REGULATES: sb.append( REGULATES_STR ); break; + case HAS_PART: + sb.append( HAS_PART_STR ); + break; default: - new AssertionError( "unknown type: " + getType() ); + new IllegalStateException( "unknown type: " + getType() ); } sb.append( ": " ); sb.append( getGoId().toString() );