org.biojava.bio.program.gff
Interface GFFRecordFilter

All Known Implementing Classes:
GFFRecordFilter.AcceptAll, GFFRecordFilter.SequenceFilter, GFFRecordFilter.SourceFilter, GFFRecordFilter.FeatureFilter

public interface GFFRecordFilter

A filter that will accept or reject a GFFEntry.

Author:
Matthew Pocock

Inner Class Summary
static class GFFRecordFilter.AcceptAll
          Implementation of GFFRecordFilter that accepts everything.
static class GFFRecordFilter.FeatureFilter
          Implementation of GFFRecordFilter that accepts records based upon the feature field.
static class GFFRecordFilter.SequenceFilter
          Implementation of GFFRecordFilter that accepts records based upon the sequence name.
static class GFFRecordFilter.SourceFilter
          Implementation of GFFRecordFilter that accepts records based upon the source field.
 
Field Summary
static GFFRecordFilter ACCEPT_ALL
          A GFFRecordFilter that accepts everything.
 
Method Summary
 boolean accept(GFFRecord record)
          Return wether or not to accept record.
 

Field Detail

ACCEPT_ALL

public static final GFFRecordFilter ACCEPT_ALL
A GFFRecordFilter that accepts everything.
Method Detail

accept

public boolean accept(GFFRecord record)
Return wether or not to accept record.
Parameters:
entry - the GFFRecord to filter
Returns:
true if record should be accepted or false otherwise