X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAnnotatedCollectionI.java;h=2963fd5eabbd0665edb3f104d223036409326e50;hb=0669bcd76c254141146c1fc2628812c782571c0b;hp=6bd4ab97fa6087b81fe7da53c15557dde496d9f5;hpb=fe6b3fb39308b5c045849db2be75ba07824be776;p=jalview.git diff --git a/src/jalview/datamodel/AnnotatedCollectionI.java b/src/jalview/datamodel/AnnotatedCollectionI.java index 6bd4ab9..2963fd5 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,30 +31,34 @@ public interface AnnotatedCollectionI extends SequenceCollectionI */ AlignmentAnnotation[] getAlignmentAnnotation(); - Iterable findAnnotation(String calcId); - /** - * context for this annotated collection + * Returns a list of annotations matching the given calc id, or an empty list + * if calcId is null * - * @return null or the collection upon which this collection is defined (e.g. - * alignment, parent group). + * @param calcId + * @return */ - AnnotatedCollectionI getContext(); + Iterable findAnnotation(String calcId); /** - * Return an iterable set of any annotations in the collection that match the - * provided criteria, i.e. - * + * Returns an iterable collection of any annotations that match on given + * sequence ref, calcId and label (ignoring null values). * - * @param datasequence + * @param seq + * null or reference sequence to select annotation for * @param calcId + * null or the calcId to select annotation for * @param label - * @return + * null or the label to select annotation for */ - Iterable findAnnotation(SequenceI datasequence, + 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). + */ + AnnotatedCollectionI getContext(); }