X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fgo%2FBasicGoXRef.java;h=9d487975d2a8eaf02532ae8bc1fe7c8339b22240;hb=718bd74aff29f5883486fc0ab8b54e1519ab51d0;hp=99a0c9ecdb09b88a3797ee48631f49711ee646ff;hpb=b568d2173eb55795647a68afc370aba0cb1170f2;p=jalview.git diff --git a/forester/java/src/org/forester/go/BasicGoXRef.java b/forester/java/src/org/forester/go/BasicGoXRef.java index 99a0c9e..9d48797 100644 --- a/forester/java/src/org/forester/go/BasicGoXRef.java +++ b/forester/java/src/org/forester/go/BasicGoXRef.java @@ -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() ); }