2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
3 * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
18 package jalview.ws.dbsources.das.api;
20 import java.util.List;
22 import jalview.ws.seqfetcher.DbSourceProxy;
24 import org.biodas.jdas.schema.sources.MAINTAINER;
25 import org.biodas.jdas.schema.sources.VERSION;
27 public interface jalviewSourceI
36 String getDescription();
40 MAINTAINER getMAINTAINER();
46 boolean isSequenceSource();
48 String[] getCapabilityList(VERSION v);
50 String[] getLabelsFor(VERSION v);
54 * @return null if not a sequence source, otherwise a series of database
55 * sources that can be used to retrieve sequence data for particular
56 * database coordinate systems
58 List<DbSourceProxy> getSequenceSourceProxies();
60 boolean isFeatureSource();
63 * returns the base URL for the latest version of a source's DAS endpoint set
67 String getSourceURL();
70 * test to see if this source's latest version is older than the given source
72 * @param jalviewSourceI
73 * @return true if newer than given source
75 boolean isNewerThan(jalviewSourceI jalviewSourceI);