updated jalview version of dasobert 1.53e client and added Das Sequence Source discov...
[jalview.git] / src / org / biojava / dasobert / das / DAS_FeatureRetrieve.java
index 051df9f..21ccee1 100755 (executable)
@@ -36,11 +36,14 @@ import org.xml.sax.*;
  * A class to perform a DAS features request
  *
  * @author Andreas Prlic
- *
+ * Adapted for jalview use.
+ * @author Andrew Waterhouse 
+ * Updated to Das 1.53e feature spec.
+ * @author Jim Procter
  */
 public class DAS_FeatureRetrieve
 {
-
+  String version;
   List features;
   Logger logger;
   int comeBackLater;
@@ -149,6 +152,8 @@ public class DAS_FeatureRetrieve
       {
         xmlreader.parse(insource);
         features = cont_handle.get_features();
+                version  = cont_handle.getVersion();
+                
         comeBackLater = cont_handle.getComBackLater();
       }
       catch (Exception e)
@@ -243,6 +248,22 @@ public class DAS_FeatureRetrieve
   {
 
     return features;
+    }
+    
+    
+    /** Get the version string of the reference object.
+     * If it does not match the version string that is obtained from the 
+     * reference server there is a version problem!
+     *  
+     * @return version string. (e.g. a MD5 digest of the reference sequence)
+     */
+    public String getVersion() {
+               return version;
+       }
+
+
+       public void setVersion(String version) {
+               this.version = version;
   }
 
   /** returns the comeBackLater value - if a server returned suchh -