1 package jalview.datamodel.features;
3 import jalview.datamodel.SequenceFeature;
4 import jalview.util.matcher.MatcherI;
7 * An interface for an object that can apply a match condition to a
8 * SequenceFeature object
12 public interface FeatureMatcherI
15 * Answers true if the value provided for this matcher's key passes this
16 * matcher's match condition
21 boolean matches(SequenceFeature feature);
24 * Answers the attribute key this matcher operates on (or null if match is by
29 String[] getAttribute();
32 * Answers true if match is against feature label (description), else false
39 * Answers true if match is against feature score, else false
46 * Answers true if match is against a feature attribute (text or range)
50 boolean isByAttribute();
53 * Answers the match condition that is applied
57 MatcherI getMatcher();
60 * Answers a string representation of this object suitable for use when
61 * persisting data, in a format that can be reliably read back. Any changes to
62 * the format should be backwards compatible.
64 String toStableString();