X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FDBRefEntryI.java;h=32245b3354c03d9e1ddb3c65914b95c780f698a7;hb=8b27085fa7fc5f2877e078421284c2636b85b8c6;hp=490b21a4cf15db4ffd42bf7743afd8b266e229c0;hpb=b92809e042da3d7445392119c159ef8730b8a136;p=jalview.git diff --git a/src/jalview/api/DBRefEntryI.java b/src/jalview/api/DBRefEntryI.java index 490b21a..32245b3 100644 --- a/src/jalview/api/DBRefEntryI.java +++ b/src/jalview/api/DBRefEntryI.java @@ -48,30 +48,26 @@ public interface DBRefEntryI public void setVersion(String version); /** + * access a mapping, if present that can be used to map positions from the + * associated dataset sequence to the DBRef's sequence frame. * - * @param startRes - * index of start residue in the source DB + * @return null or a valid mapping. */ - public void setStartRes(int startRes); - - /** - * - * @return index of start residue in the source DB - */ - public int getStartRes(); - - /** - * - * @param endRes - * index of end residue in the source DB - */ - public void setEndRes(int endRes); + public Mapping getMap(); /** + * Answers true if this object is either equivalent to, or can be 'improved' + * by, the given entry. Specifically, answers true if + * * - * @return index of end residue in the source DB + * @param otherEntry + * @return */ - public int getEndRes(); - - public Mapping getMap(); + public boolean updateFrom(DBRefEntryI otherEntry); }