get annotation by label string
[jalview.git] / src / jalview / datamodel / SequenceI.java
index 6694aff..64a21dd 100755 (executable)
@@ -257,10 +257,23 @@ public interface SequenceI
 
   public void addAlignmentAnnotation(AlignmentAnnotation annotation);
 
+  public void removeAlignmentAnnotation(AlignmentAnnotation annotation);
+
   /**
    * Derive a sequence (using this one's dataset or as the dataset)
    * @return duplicate sequence with valid dataset sequence
    */
   public SequenceI deriveSequence();
+  /**
+   * set the array of associated AlignmentAnnotation for this sequenceI
+   * @param revealed
+   */
+  public void setAlignmentAnnotation(AlignmentAnnotation[] annotation);
+  /**
+   * Get one or more alignment annotations with a particular label.  
+   * @param label string which each returned annotation must have as a label.
+   * @return null or array of annotations.
+   */
+  public AlignmentAnnotation[] getAnnotation(String label);
 
 }