updated jalview version of dasobert 1.53e client and added Das Sequence Source discov...
[jalview.git] / src / org / biojava / dasobert / dasregistry / Das1Source.java
index 4b8ae2a..e7541b4 100755 (executable)
@@ -49,7 +49,7 @@ public class Das1Source
   Date leaseDate;
   String id;
   boolean local;
-
+  Map properties;
   boolean alertAdmin;
 
   public static String EMPTY_ID = "UNK:-1";
@@ -209,6 +209,19 @@ public class Das1Source
   {
     return capabilities;
   }
+    /** test if a this source has a particular capability
+     * 
+     * @param testCapability
+     * @return <code>true</code> if the server has this capability.
+     */
+    public boolean hasCapability(String testCapability){
+        for (int i=0 ; i< capabilities.length;i++){
+            String cap = capabilities[i];
+            if ( cap.equals(testCapability))
+                return true;
+        }
+        return false;
+    }
 
   public DasCoordinateSystem[] getCoordinateSystem()
   {
@@ -263,6 +276,12 @@ public class Das1Source
   public boolean getAlertAdmin()
   {
     return alertAdmin;
-  }
+    }
+       public Map getProperties() {
+               return properties;
+       }
+       public void setProperties(Map properties) {
+               this.properties = properties;
+       }
 
 }