formatting
[jalview.git] / src / jalview / ws / dbsources / das / api / jalviewSourceI.java
1 package jalview.ws.dbsources.das.api;
2
3 import java.util.List;
4
5 import jalview.ws.seqfetcher.DbSourceProxy;
6
7 import org.biodas.jdas.schema.sources.MAINTAINER;
8 import org.biodas.jdas.schema.sources.VERSION;
9
10 public interface jalviewSourceI
11 {
12
13   String getTitle();
14
15   VERSION getVersion();
16
17   String getDocHref();
18
19   String getDescription();
20
21   String getUri();
22
23   MAINTAINER getMAINTAINER();
24
25   String getEmail();
26
27   boolean isLocal();
28
29   boolean isSequenceSource();
30
31   String[] getCapabilityList(VERSION v);
32
33   String[] getLabelsFor(VERSION v);
34
35   /**
36    * 
37    * @return null if not a sequence source, otherwise a series of database
38    *         sources that can be used to retrieve sequence data for particular
39    *         database coordinate systems
40    */
41   List<DbSourceProxy> getSequenceSourceProxies();
42
43   boolean isFeatureSource();
44
45   /**
46    * returns the base URL for the latest version of a source's DAS endpoint set
47    * 
48    * @return
49    */
50   String getSourceURL();
51
52   /**
53    * test to see if this source's latest version is older than the given source
54    * 
55    * @param jalviewSourceI
56    * @return true if newer than given source
57    */
58   boolean isNewerThan(jalviewSourceI jalviewSourceI);
59
60 }