2 * BioJava development code
4 * This code may be freely distributed and modified under the
5 * terms of the GNU Lesser General Public Licence. This should
6 * be distributed with the code. If you do not have a copy,
9 * http://www.gnu.org/copyleft/lesser.html
11 * Copyright for this code is held jointly by the individual
12 * authors. These should be listed in @author doc comments.
14 * For more information on the BioJava project and its aims,
15 * or to join the biojava-l mailing list, visit the home page
18 * http://www.biojava.org/
20 * Created on Feb 8, 2006
23 package org.biojava.dasobert.dasregistry;
27 public interface DasSource
30 public void setLocal(boolean flag);
32 public boolean isLocal();
35 * compare if two das sources are equal
38 * @return returns true if two DAS sources are equivalent
40 public boolean equals(DasSource ds);
43 * classes that implement equals, should also implement hashKey
45 * @return the hash code of a das source
47 public int hashCode();
49 public void setId(String i);
52 * get a the Id of the DasSource. The Id is a unique db identifier. The public
53 * DAS-Registry has Auto_Ids that look like DASSOURCE:12345; public look like
54 * XYZ:12345, where the XYZ prefix can be configured in the config file.
56 * @return String the ID of a Das Source
58 public String getId();
60 public void setNickname(String name);
62 public String getNickname();
64 public void setUrl(String u);
66 public void setAdminemail(String u);
68 public void setDescription(String u);
70 public void setCoordinateSystem(DasCoordinateSystem[] u);
72 public void setCapabilities(String[] u);
75 * test if a this source has a particular capability
77 * @param testCapability
78 * @return <code>true</code> if the server has this capability.
80 public boolean hasCapability(String testCapability);
82 public String getUrl();
84 public String getAdminemail();
86 public String getDescription();
88 public String[] getCapabilities();
90 public DasCoordinateSystem[] getCoordinateSystem();
92 public void setRegisterDate(Date d);
94 public Date getRegisterDate();
96 public void setLeaseDate(Date d);
98 public Date getLeaseDate();
100 public void setLabels(String[] ls);
102 public String[] getLabels();
104 public void setHelperurl(String url);
106 public String getHelperurl();
108 // TestCode is now part of the coordinate system!
109 // public void setTestCode(String code);
110 // public String getTestCode();
112 public void setAlertAdmin(boolean flag);
114 public boolean getAlertAdmin();
117 * set Properties for this DAS source, e.g. project name
121 public void setProperties(Map properties);
124 * get Properties for this DAS source
128 public Map getProperties();