* at:
*
* http://www.biojava.org/
- *
+ *
* Created on Feb 8, 2006
*
*/
package org.biojava.dasobert.dasregistry;
-import java.util.Date;
+import java.util.*;
+
+public interface DasSource
+{
+
+ public void setLocal(boolean flag);
-public interface DasSource {
+ public boolean isLocal();
- public void setLocal(boolean flag);
+ /** compare if two das sources are equal
+ *
+ * @param ds
+ * @return returns true if two DAS sources are equivalent
+ */
+ public boolean equals(DasSource ds);
- public boolean isLocal();
+ /** classes that implement equals, should also implement hashKey
+ *
+ * @return the hash code of a das source
+ */
+ public int hashCode();
- /** compare if two das sources are equal
- *
- * @param ds
- * @return
- */
- public boolean equals(DasSource ds);
-
- /** classes that implement equals, should also implement hashKey
- *
- * @return
- */
- public int hashCode();
-
-
- public void setId(String i);
+ public void setId(String i);
- /** get a the Id of the DasSource. The Id is a unique db
- * identifier. The public DAS-Registry has Auto_Ids that look like
- * DASSOURCE:12345; public look like XYZ:12345, where the XYZ
- * prefix can be configured in the config file.
- */
- public String getId();
+ /** get a the Id of the DasSource. The Id is a unique db
+ * identifier. The public DAS-Registry has Auto_Ids that look like
+ * DASSOURCE:12345; public look like XYZ:12345, where the XYZ
+ * prefix can be configured in the config file.
+ * @return String the ID of a Das Source
+ */
+ public String getId();
- public void setNickname(String name);
+ public void setNickname(String name);
- public String getNickname();
+ public String getNickname();
- public void setUrl(String u);
+ public void setUrl(String u);
- public void setAdminemail(String u);
+ public void setAdminemail(String u);
- public void setDescription(String u);
+ public void setDescription(String u);
- public void setCoordinateSystem(DasCoordinateSystem[] u);
+ public void setCoordinateSystem(DasCoordinateSystem[] u);
- public void setCapabilities(String[] u);
+ public void setCapabilities(String[] u);
- public String getUrl();
+ public String getUrl();
- public String getAdminemail();
+ public String getAdminemail();
- public String getDescription();
+ public String getDescription();
- public String[] getCapabilities();
+ public String[] getCapabilities();
- public DasCoordinateSystem[] getCoordinateSystem();
+ public DasCoordinateSystem[] getCoordinateSystem();
- public void setRegisterDate(Date d);
+ public void setRegisterDate(Date d);
- public Date getRegisterDate();
+ public Date getRegisterDate();
- public void setLeaseDate(Date d);
+ public void setLeaseDate(Date d);
- public Date getLeaseDate();
+ public Date getLeaseDate();
- public void setLabels(String[] ls);
+ public void setLabels(String[] ls);
- public String[] getLabels();
+ public String[] getLabels();
- public void setHelperurl(String url);
+ public void setHelperurl(String url);
- public String getHelperurl();
+ public String getHelperurl();
- // TestCode is now part of the coordinate system!
- //public void setTestCode(String code);
- //public String getTestCode();
+ // TestCode is now part of the coordinate system!
+ //public void setTestCode(String code);
+ //public String getTestCode();
- public void setAlertAdmin(boolean flag);
+ public void setAlertAdmin(boolean flag);
- public boolean getAlertAdmin();
+ public boolean getAlertAdmin();
}
\ No newline at end of file