dk.netarkivet.common.utils.cdx
Interface CDXRecordFilter

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ARCFilenameCDXRecordFilter, SimpleCDXRecordFilter

public interface CDXRecordFilter
extends java.io.Serializable

Interface defining a filter to use in CDXReader when finding CDXRecords.


Method Summary
 java.lang.String getFilterName()
           
 boolean process(CDXRecord cdxrec)
          Process one CDXRecord - return true/false.
 

Method Detail

process

boolean process(CDXRecord cdxrec)
Process one CDXRecord - return true/false.

Parameters:
cdxrec - the CDXRecord to be processed.
Returns:
true or false on whether the processed CDXRecord is "valid" according to this filter implementation. true means this CDXRecord is valid!

getFilterName

java.lang.String getFilterName()
Returns:
the name of the Filter