- All Superinterfaces:
- All Known Implementing Classes:
public interface FeatureFilter extends SerializableA filter for accepting or rejecting a feature.
It is possible to write custom
FeatureFilters by implementing this interface. There are also a wide range of built-in features, and it is possible to build complex queries using
FeatureFilter.Not. Where possible, use of the built-in filters is preferable to writing new filters, since the methods in the
FilterUtilsclass have access to special knowledge about the built-in filter types and how they relate to one another.
If the filter is to be used in a remote process, it is recognized that it may be serialized and sent over to run remotely, rather than each feature being retrieved locally.
- Matthew Pocock, Thomas Down
Nested Class Summary
Nested Classes Modifier and Type Interface Description
FeatureFilter.AndA filter that returns all features accepted by both child filter.
FeatureFilter.AnnotationContainsRetrieve features that contain a given annotation, and that the set of values contains the value given.
FeatureFilter.ByAncestorFilter by applying a nested
FeatureFilterto all ancestor features.
FeatureFilter.ByAnnotationRetrieve features that contain a given annotation with a given value.
FeatureFilter.ByAnnotationTypeA filter that returns all features that have an annotation bundle that is of a given annotation type.
FeatureFilter.ByChildFilter by applying a nested
FeatureFilterto the child features.
FeatureFilter.ByClassFilter which accepts only those filters which are an instance of a specific Java class
FeatureFilter.ByComponentNameAccepts features which are ComponentFeatures and have a
componentSequenceNameproperty of the specified value.
FeatureFilter.ByDescendantFilter by applying a nested
FeatureFilterto all descendant features.
FeatureFilter.ByFeatureAccept only features which are equal to the specified feature
ByPairwiseScoreis used to filter
SimilarityPairFeatures by their score.
FeatureFilter.ByParentFilter by applying a nested
FeatureFilterto the parent feature.
FeatureFilter.BySequenceNameAccept features that reside on a sequence with a particular name.
FeatureFilter.BySourceConstruct one of these to filter features by source.
FeatureFilter.ByTypeConstruct one of these to filter features by type.
FeatureFilter.ContainedByLocationA filter that returns all features contained within a location.
FeatureFilter.FrameFilterAccept features with a given reading frame.
FeatureFilter.HasAnnotationRetrieve features that contain a given annotation with any value.
FeatureFilter.NotA filter that returns all features not accepted by a child filter.
FeatureFilter.OnlyChildrenAccepts features where all immediate children meet the supplied filter.
FeatureFilter.OnlyDescendantsAccepts features where all descendants meet the supplied filter.
FeatureFilter.OrA filter that returns all features accepted by at least one child filter.
FeatureFilter.OverlapsLocationA filter that returns all features overlapping a location.
FeatureFilter.ShadowContainedByLocationA filter that accepts all features whose shadow is contained by a specified
FeatureFilter.ShadowOverlapsLocationA filter that accepts all features whose shadow overlaps a specified
FeatureFilter.StrandFilterAccept features with a given strandedness.
Fields Modifier and Type Field Description
allAll features are selected by this filter.
leafA filter which accepts features with no children
noneNo features are selected by this filter.
top_levelA filter which accepts only top-level Features.
static final FeatureFilter top_levelA filter which accepts only top-level Features. This is true is