JAL-2847 needed methods made public
[jalview.git] / forester / java / src / org / forester / go / BasicGoXRef.java
index 99a0c9e..9d48797 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;
 
@@ -96,8 +96,11 @@ public class BasicGoXRef implements GoXRef {
         else if ( type.equals( PO_STR ) ) {
             _type = Type.PO;
         }
+        else if ( type.equals( SABIO_RK_STR ) ) {
+            _type = Type.SABIO_RK;
+        }
         else {
-            throw new IllegalArgumentException( "unknown GO xref type: " + type );
+            _type = Type.OTHER;
         }
         _xref = sa[ 1 ].trim();
     }
@@ -114,8 +117,8 @@ public class BasicGoXRef implements GoXRef {
 
     /**
      * Based on value and type.
-     * 
-     * 
+     *
+     *
      */
     @Override
     public boolean equals( final Object o ) {
@@ -189,6 +192,9 @@ public class BasicGoXRef implements GoXRef {
             case WIKIPEDIA:
                 sb.append( WIKIPEDIA_STR );
                 break;
+            case OTHER:
+                sb.append( "other" );
+                break;
             default:
                 new AssertionError( "unknown type: " + getType() );
         }