Das client files
[jalview.git] / src / org / biojava / dasobert / dasregistry / DasSource.java
1 /*
2  *                  BioJava development code
3  *
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,
7  * see:
8  *
9  *      http://www.gnu.org/copyleft/lesser.html
10  *
11  * Copyright for this code is held jointly by the individual
12  * authors.  These should be listed in @author doc comments.
13  *
14  * For more information on the BioJava project and its aims,
15  * or to join the biojava-l mailing list, visit the home page
16  * at:
17  *
18  *      http://www.biojava.org/
19  * 
20  * Created on Feb 8, 2006
21  *
22  */
23 package org.biojava.dasobert.dasregistry;
24
25 import java.util.Date;
26
27 public interface DasSource {
28
29     public  void setLocal(boolean flag);
30
31     public  boolean isLocal();
32
33     /** compare if two das sources are equal
34      * 
35      * @param ds
36      * @return
37      */
38     public boolean equals(DasSource ds);
39     
40     /** classes that implement equals, should also implement hashKey
41      * 
42      * @return
43      */
44     public int hashCode();
45     
46     
47     public  void setId(String i);
48
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      */
54     public  String getId();
55
56     public  void setNickname(String name);
57
58     public  String getNickname();
59
60     public  void setUrl(String u);
61
62     public  void setAdminemail(String u);
63
64     public  void setDescription(String u);
65
66     public  void setCoordinateSystem(DasCoordinateSystem[] u);
67
68     public  void setCapabilities(String[] u);
69
70     public  String getUrl();
71
72     public  String getAdminemail();
73
74     public  String getDescription();
75
76     public  String[] getCapabilities();
77
78     public  DasCoordinateSystem[] getCoordinateSystem();
79
80     public  void setRegisterDate(Date d);
81
82     public  Date getRegisterDate();
83
84     public  void setLeaseDate(Date d);
85
86     public  Date getLeaseDate();
87
88     public  void setLabels(String[] ls);
89
90     public  String[] getLabels();
91
92     public  void setHelperurl(String url);
93
94     public  String getHelperurl();
95
96     // TestCode is now part of the coordinate system!
97     //public  void setTestCode(String code);
98     //public  String getTestCode();
99
100     public  void setAlertAdmin(boolean flag);
101
102     public  boolean getAlertAdmin();
103
104 }