in progress (special coloring is still true)
[jalview.git] / forester / java / src / org / forester / go / BasicGoRelationship.java
index 247e859..270f31a 100644 (file)
@@ -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 );
         }
@@ -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() );
         }