X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fgo%2FBasicGoRelationship.java;h=490dbc7970e761406806a7c775766dc5de605aa0;hb=cb49ee5684c6907b3161db82ff9aea72961b8548;hp=270f31a7e658fd0557913ac1f5747371a68a0908;hpb=7e567e18a5ba32035a8db4ca041023c9e862d25b;p=jalview.git diff --git a/forester/java/src/org/forester/go/BasicGoRelationship.java b/forester/java/src/org/forester/go/BasicGoRelationship.java index 270f31a..490dbc7 100644 --- a/forester/java/src/org/forester/go/BasicGoRelationship.java +++ b/forester/java/src/org/forester/go/BasicGoRelationship.java @@ -55,6 +55,12 @@ public class BasicGoRelationship implements GoRelationship { else if ( type.toLowerCase().equals( OCCURS_IN_STR ) ) { _type = Type.OCCURS_IN; } + else if ( type.toLowerCase().equals( HAPPENS_DURING_STR ) ) { + _type = Type.HAPPENS_DURING; + } + else if ( type.toLowerCase().equals(ENDS_DURING_STR ) ) { + _type = Type.ENDS_DURING; + } else { throw new IllegalArgumentException( "unknown GO relationship type: " + type ); } @@ -83,8 +89,8 @@ public class BasicGoRelationship implements GoRelationship { /** * Based on value and type. - * - * + * + * */ @Override public boolean equals( final Object o ) {