git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd6fc6b
)
implemented embl validation properly
author
jprocter
<Jim Procter>
Tue, 4 Nov 2008 13:18:29 +0000
(13:18 +0000)
committer
jprocter
<Jim Procter>
Tue, 4 Nov 2008 13:18:29 +0000
(13:18 +0000)
src/jalview/ws/dbsources/EmblSource.java
patch
|
blob
|
history
diff --git
a/src/jalview/ws/dbsources/EmblSource.java
b/src/jalview/ws/dbsources/EmblSource.java
index
5eac1c0
..
344182f
100644
(file)
--- a/
src/jalview/ws/dbsources/EmblSource.java
+++ b/
src/jalview/ws/dbsources/EmblSource.java
@@
-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