All Methods Instance Methods Concrete Methods Modifier and Type Method Description
addFeature(Feature f)Add a feature to the featureholder
containsFeature(Feature f)Check if the feature is present in this holder.
countFeatures()Count how many features are contained.
features()Iterate over the features in no well defined order.
getFeatures()Returns the list of features in this featureholder.
getSchema()Return a schema-filter for this
removeFeature(Feature f)Remove a feature from this FeatureHolder.
Methods inherited from class org.biojava.bio.seq.AbstractFeatureHolder
createFeature, filter, filter
Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public int countFeatures()Count how many features are contained.
featuresIterate over the features in no well defined order.
public void addFeature(Feature f) throws ChangeVetoExceptionAdd a feature to the featureholder
public void removeFeature(Feature f) throws ChangeVetoExceptionRemove a feature from this FeatureHolder.
public boolean containsFeature(Feature f)Check if the feature is present in this holder.
public FeatureFilter getSchema()Return a schema-filter for this
FeatureHolder. This is a filter which all
Features immediately contained by this
FeatureHolderwill match. It need not directly match their child features, but it can (and should!) provide information about them using
FeatureFilter.OnlyChildrenfilters. In cases where there is no feature hierarchy, this can be indicated by including
FeatureFilter.leafin the schema filter.
For the truly non-informative case, it is possible to return
FeatureFilter.all. However, it is almost always possible to provide slightly more information that this. For example,
Sequenceobjects should, at a minimum, return
Featureobjects should, as a minimum, return