apply gpl development license
[jalview.git] / src / jalview / ws / dbsources / EmblSource.java
index 5eac1c0..ac4a988 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)\r
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)\r
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
  * \r
  * This program is free software; you can redistribute it and/or\r
  * modify it under the terms of the GNU General Public License\r
@@ -99,7 +99,7 @@ public class EmblSource extends EmblXmlSource implements DbSourceProxy
   {\r
     return getEmblSequenceRecords(DBRefSource.EMBL, queries);\r
   }\r
-\r
+  \r
   /*\r
    * (non-Javadoc)\r
    * \r
@@ -107,8 +107,10 @@ public class EmblSource extends EmblXmlSource implements DbSourceProxy
    */\r
   public boolean isValidReference(String accession)\r
   {\r
-    // TODO Auto-generated method stub\r
-    return false;\r
+    // most embl refs look like ..\r
+    \r
+    return (accession==null || accession.length()<2) ? false : new com.stevesoft.pat.Regex("^[A-Z]+[0-9]+$").search(accession);\r
+    \r
   }\r
 \r
   /**\r