public abstract class AbstractFeatureHolder extends AbstractChangeable implements FeatureHolder
FeatureHolder.EmptyFeatureHolderEMPTY_FEATURE_HOLDER, FEATURES, SCHEMA| Constructor and Description | 
|---|
AbstractFeatureHolder()  | 
| Modifier and Type | Method and Description | 
|---|---|
Feature | 
createFeature(Feature.Template temp)
Create a new Feature, and add it to this FeatureHolder. 
 | 
FeatureHolder | 
filter(FeatureFilter filter)
Query this set of features using a supplied  
FeatureFilter. | 
FeatureHolder | 
filter(FeatureFilter ff,
      boolean recurse)
Return a new FeatureHolder that contains all of the children of this one
 that passed the filter fc. 
 | 
void | 
removeFeature(Feature f)
Remove a feature from this FeatureHolder. 
 | 
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsFeature, countFeatures, features, getSchemaaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic AbstractFeatureHolder()
public FeatureHolder filter(FeatureFilter filter)
FeatureHolderFeatureFilter.filter in interface FeatureHolderfilter - the FeatureFilter to apply.filter.public FeatureHolder filter(FeatureFilter ff, boolean recurse)
FeatureHolderfilter in interface FeatureHolderff - the FeatureFilter to applyrecurse - true if all features-of-features should be scanned, and a
                single flat collection of features returned, or false if
                just immediate children should be filtered.public Feature createFeature(Feature.Template temp) throws BioException, ChangeVetoException
FeatureHoldercreateFeature in interface FeatureHolderBioException - if something went wrong during creating the featureChangeVetoException - if this FeatureHolder does not support
         creation of new features, or if the change was vetoedpublic void removeFeature(Feature f) throws ChangeVetoException, BioException
FeatureHolderremoveFeature in interface FeatureHolderChangeVetoException - if this FeatureHolder does not support
         feature removal or if the change was vetoedBioException - if there was an error removing the featureCopyright © 2020 BioJava. All rights reserved.