JAL-1926 JAL-2106 remove startRes/endRes fields - not used
[jalview.git] / src / jalview / api / DBRefEntryI.java
index 49858cb..32245b3 100644 (file)
@@ -1,6 +1,5 @@
 package jalview.api;
 
-import jalview.datamodel.DBRefEntry;
 import jalview.datamodel.Mapping;
 
 //JBPComment: this is a datamodel API - so it should be in datamodel (it's a peer of SequenceI)
@@ -49,31 +48,11 @@ 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);
-
-  /**
-   * 
-   * @return index of end residue in the source DB
-   */
-  public int getEndRes();
-
   public Mapping getMap();
 
   /**
@@ -90,5 +69,5 @@ public interface DBRefEntryI
    * @param otherEntry
    * @return
    */
-  public boolean updateFrom(DBRefEntry otherEntry);
+  public boolean updateFrom(DBRefEntryI otherEntry);
 }