X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fws%2Fseqfetcher%2FDbSourceProxy.java;h=fa0228548e9a9ef92bddb53c5cdee6718738bd5a;hb=98af16ccc5890b980f0c4f3acfb72d7128e3a6f0;hp=9c5356a50ac794618be1bef989b1dea6d1b19ea6;hpb=153dd62dc91da13ae732600e6ea55ddbe15eab39;p=jalview.git diff --git a/src/jalview/ws/seqfetcher/DbSourceProxy.java b/src/jalview/ws/seqfetcher/DbSourceProxy.java index 9c5356a..fa02285 100644 --- a/src/jalview/ws/seqfetcher/DbSourceProxy.java +++ b/src/jalview/ws/seqfetcher/DbSourceProxy.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6) - * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) + * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle * * This file is part of Jalview. * @@ -31,7 +31,7 @@ import com.stevesoft.pat.Regex; * database (unify with io) * * @author JimP - * + * TODO: promote to API */ public interface DbSourceProxy { @@ -120,4 +120,12 @@ public interface DbSourceProxy * @return one or more string buffers for each individual query */ public StringBuffer getRawRecords(); + + + /** + * Find out more info about the source. + * @param dbsourceproperty - one of the database reference source properties in jalview.datamodel.DBRefSource + * @return true if the source has this property + */ + public boolean isA(Object dbsourceproperty); }