X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAnnotatedCollectionI.java;h=3f6c515bd9f79975919a618cdc7c12d2ceef81fe;hb=6d183feafe3e566501af586286bbd1d2107ee5a9;hp=abe93329f0a096bf3d6a19f2dfd3d07190aeeca4;hpb=47168f025aefdaa044802bd5f8f510ffe43a4808;p=jalview.git diff --git a/src/jalview/datamodel/AnnotatedCollectionI.java b/src/jalview/datamodel/AnnotatedCollectionI.java index abe9332..3f6c515 100644 --- a/src/jalview/datamodel/AnnotatedCollectionI.java +++ b/src/jalview/datamodel/AnnotatedCollectionI.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -31,11 +31,23 @@ public interface AnnotatedCollectionI extends SequenceCollectionI */ AlignmentAnnotation[] getAlignmentAnnotation(); + /** + * Returns a list of annotations matching the given calc id, or an empty list + * if calcId is null + * + * @param calcId + * @return + */ Iterable findAnnotation(String calcId); + Iterable findAnnotations(SequenceI seq, + String calcId, String label); + /** * context for this annotated collection - * @return null or the collection upon which this collection is defined (e.g. alignment, parent group). + * + * @return null or the collection upon which this collection is defined (e.g. + * alignment, parent group). */ AnnotatedCollectionI getContext(); }