public static class FeatureFilter.OnlyChildren extends Object implements OptimizableFilter
true
in the case where no child features exist. Mainly useful
for defining schemas of feature-trees.FeatureFilter.And, FeatureFilter.AnnotationContains, FeatureFilter.ByAncestor, FeatureFilter.ByAnnotation, FeatureFilter.ByAnnotationType, FeatureFilter.ByChild, FeatureFilter.ByClass, FeatureFilter.ByComponentName, FeatureFilter.ByDescendant, FeatureFilter.ByFeature, FeatureFilter.ByPairwiseScore, FeatureFilter.ByParent, FeatureFilter.BySequenceName, FeatureFilter.BySource, FeatureFilter.ByType, FeatureFilter.ContainedByLocation, FeatureFilter.FrameFilter, FeatureFilter.HasAnnotation, FeatureFilter.Not, FeatureFilter.OnlyChildren, FeatureFilter.OnlyDescendants, FeatureFilter.Or, FeatureFilter.OverlapsLocation, FeatureFilter.ShadowContainedByLocation, FeatureFilter.ShadowOverlapsLocation, FeatureFilter.StrandFilter
all, leaf, none, top_level
Constructor and Description |
---|
FeatureFilter.OnlyChildren(FeatureFilter ff) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Feature f)
This method determines whether a feature is to be accepted.
|
boolean |
equals(Object o) |
FeatureFilter |
getFilter() |
int |
hashCode() |
boolean |
isDisjoint(FeatureFilter ff)
Returns true if this filter is disjoint from filt - that is, there is no
Feature that is accepted by both filters.
|
boolean |
isProperSubset(FeatureFilter ff)
Returns true if this filter is a proper subset of sup - that is, for every
feature that matches this, it also matches sup.
|
String |
toString() |
public FeatureFilter.OnlyChildren(FeatureFilter ff)
public FeatureFilter getFilter()
public boolean accept(Feature f)
FeatureFilter
accept
in interface FeatureFilter
f
- the Feature to evaluatepublic boolean isProperSubset(FeatureFilter ff)
OptimizableFilter
isProperSubset
in interface OptimizableFilter
ff
- the potential super setpublic boolean isDisjoint(FeatureFilter ff)
OptimizableFilter
isDisjoint
in interface OptimizableFilter
Copyright © 2014 BioJava. All rights reserved.