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 jalview.biojava.dasobert.dasregistry;
25 import java.util.Date;
27 public interface DasSource {
29 public void setLocal(boolean flag);
31 public boolean isLocal();
33 /** compare if two das sources are equal
36 * @return returns true if two DAS sources are equivalent
38 public boolean equals(DasSource ds);
40 /** classes that implement equals, should also implement hashKey
42 * @return the hash code of a das source
44 public int hashCode();
47 public void setId(String i);
49 /** get a the Id of the DasSource. The Id is a unique db
50 * identifier. The public DAS-Registry has Auto_Ids that look like
51 * DASSOURCE:12345; public look like XYZ:12345, where the XYZ
52 * prefix can be configured in the config file.
53 * @return String the ID of a Das Source
55 public String getId();
57 public void setNickname(String name);
59 public String getNickname();
61 public void setUrl(String u);
63 public void setAdminemail(String u);
65 public void setDescription(String u);
67 public void setCoordinateSystem(DasCoordinateSystem[] u);
69 public void setCapabilities(String[] u);
71 public String getUrl();
73 public String getAdminemail();
75 public String getDescription();
77 public String[] getCapabilities();
79 public DasCoordinateSystem[] getCoordinateSystem();
81 public void setRegisterDate(Date d);
83 public Date getRegisterDate();
85 public void setLeaseDate(Date d);
87 public Date getLeaseDate();
89 public void setLabels(String[] ls);
91 public String[] getLabels();
93 public void setHelperurl(String url);
95 public String getHelperurl();
97 // TestCode is now part of the coordinate system!
98 //public void setTestCode(String code);
99 //public String getTestCode();
101 public void setAlertAdmin(boolean flag);
103 public boolean getAlertAdmin();