org.biojava.bio.seq
Class FeatureFilter.ByType

java.lang.Object
  |
  +--org.biojava.bio.seq.FeatureFilter.ByType
Enclosing class:
FeatureFilter

public static class FeatureFilter.ByType
extends java.lang.Object
implements FeatureFilter

Construct one of these to filter features by type.

Author:
Matthew Pocock
See Also:
Serialized Form

Inner classes inherited from class org.biojava.bio.seq.FeatureFilter
FeatureFilter.AcceptAllFilter, FeatureFilter.And, FeatureFilter.BySource, FeatureFilter.ByType, FeatureFilter.ContainedByLocation, FeatureFilter.Not, FeatureFilter.Or, FeatureFilter.OverlapsLocation
 
Fields inherited from interface org.biojava.bio.seq.FeatureFilter
all
 
Constructor Summary
FeatureFilter.ByType(java.lang.String type)
          Create a ByType filter that filters in all features with type fields equal to type.
 
Method Summary
 boolean accept(Feature f)
          Returns true if the feature has a matching type property.
 java.lang.String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureFilter.ByType

public FeatureFilter.ByType(java.lang.String type)
Create a ByType filter that filters in all features with type fields equal to type.
Parameters:
type - the String to match type fields against
Method Detail

getType

public java.lang.String getType()

accept

public boolean accept(Feature f)
Returns true if the feature has a matching type property.
Specified by:
accept in interface FeatureFilter
Tags copied from interface: FeatureFilter
Parameters:
f - the Feature to evaluate
Returns:
true if this feature is to be selected in, or false if it is to be ignored