make PH, aPH, CL selection
[jalview.git] / forester / java / src / org / forester / go / BasicGoRelationship.java
index 3a41d6d..d539947 100644 (file)
@@ -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() );
         }