X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fgo%2FBasicGoXRef.java;h=99a0c9ecdb09b88a3797ee48631f49711ee646ff;hb=a9fcc2db25e1349d2a5f926eae7a71cea99efb7a;hp=8d5b4ae87748a8b5ec237edc331e2c8e484ace4e;hpb=48f7a89be9d34f1930a1f863e608235cc27184c5;p=jalview.git diff --git a/forester/java/src/org/forester/go/BasicGoXRef.java b/forester/java/src/org/forester/go/BasicGoXRef.java index 8d5b4ae..99a0c9e 100644 --- a/forester/java/src/org/forester/go/BasicGoXRef.java +++ b/forester/java/src/org/forester/go/BasicGoXRef.java @@ -5,7 +5,7 @@ // Copyright (C) 2008-2009 Christian M. Zmasek // Copyright (C) 2008-2009 Burnham Institute for Medical Research // All rights reserved -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either @@ -15,7 +15,7 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA @@ -81,6 +81,21 @@ public class BasicGoXRef implements GoXRef { else if ( type.equals( WIKIPEDIA_STR ) ) { _type = Type.WIKIPEDIA; } + else if ( type.equals( RHEA_STR ) ) { + _type = Type.RHEA; + } + else if ( type.equals( NIF_SUBCELLULAR_STR ) ) { + _type = Type.NIF_SUBCELLULAR; + } + else if ( type.equals( CORUM_STR ) ) { + _type = Type.CORUM; + } + else if ( type.equals( UNIPATHWAY_STR ) ) { + _type = Type.UNIPATHWAY; + } + else if ( type.equals( PO_STR ) ) { + _type = Type.PO; + } else { throw new IllegalArgumentException( "unknown GO xref type: " + type ); } @@ -92,6 +107,7 @@ public class BasicGoXRef implements GoXRef { _xref = xref; } + @Override public int compareTo( final GoXRef xref ) { return getXRef().compareTo( xref.getXRef() ); } @@ -117,6 +133,7 @@ public class BasicGoXRef implements GoXRef { } } + @Override public Type getType() { return _type; }