JAL-1264 added getAlignmentAnnotations(calcId, label)
[jalview.git] / src / jalview / datamodel / SequenceI.java
index b10a4d4..366b776 100755 (executable)
@@ -20,6 +20,7 @@
  */\r
 package jalview.datamodel;\r
 \r
+import java.util.List;\r
 import java.util.Vector;\r
 \r
 import fr.orsay.lri.varna.models.rna.RNA;\r
@@ -342,6 +343,17 @@ public interface SequenceI
   public AlignmentAnnotation[] getAnnotation(String label);\r
 \r
   /**\r
+   * Return a list of any annotations which match the given calcId (source) and\r
+   * label (type). Null values do not match.\r
+   * \r
+   * @param calcId\r
+   * @param label\r
+   * @return\r
+   */\r
+  public List<AlignmentAnnotation> getAlignmentAnnotations(String calcId,\r
+          String label);\r
+\r
+  /**\r
    * create a new dataset sequence (if necessary) for this sequence and sets\r
    * this sequence to refer to it. This call will move any features or\r
    * references on the sequence onto the dataset. It will also make a duplicate\r