JAL-2808 update spike to latest (filter range tooltip, Present condition)
[jalview.git] / src / jalview / datamodel / features / FeatureMatcherI.java
1 package jalview.datamodel.features;
2
3 import jalview.datamodel.SequenceFeature;
4 import jalview.util.matcher.MatcherI;
5
6 /**
7  * An interface for an object that can apply a match condition to a
8  * SequenceFeature object
9  * 
10  * @author gmcarstairs
11  */
12 public interface FeatureMatcherI
13 {
14   /**
15    * Answers true if the value provided for this matcher's key passes this
16    * matcher's match condition
17    * 
18    * @param feature
19    * @return
20    */
21   boolean matches(SequenceFeature feature);
22
23   /**
24    * Answers the value key this matcher operates on
25    * 
26    * @return
27    */
28   String[] getKey();
29
30   /**
31    * Answers the match condition that is applied
32    * 
33    * @return
34    */
35   MatcherI getMatcher();
36 }