org.archive.wayback.resourceindex.filters
Class CompositeExclusionFilter

java.lang.Object
  extended by org.archive.wayback.resourceindex.filters.ExclusionFilter
      extended by org.archive.wayback.resourceindex.filters.CompositeExclusionFilter
All Implemented Interfaces:
ObjectFilter<CaptureSearchResult>

public class CompositeExclusionFilter
extends ExclusionFilter

SearchResultFilter that abstracts multiple SearchResultFilters -- if all filters return INCLUDE, then the result is included, but the first to return ABORT or EXCLUDE short-circuits the rest

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Field Summary
 
Fields inherited from class org.archive.wayback.resourceindex.filters.ExclusionFilter
filterGroup
 
Fields inherited from interface org.archive.wayback.util.ObjectFilter
FILTER_ABORT, FILTER_EXCLUDE, FILTER_INCLUDE
 
Constructor Summary
CompositeExclusionFilter()
           
 
Method Summary
 void addComponent(ExclusionFilter filter)
           
 int filterObject(CaptureSearchResult r)
          inpect record and determine if it should be included in the results or not, or if processing of new records should stop.
 void setFilterGroup(ExclusionCaptureFilterGroup filterGroup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeExclusionFilter

public CompositeExclusionFilter()
Method Detail

addComponent

public void addComponent(ExclusionFilter filter)
Parameters:
filter - to be added to the composite.

setFilterGroup

public void setFilterGroup(ExclusionCaptureFilterGroup filterGroup)
Overrides:
setFilterGroup in class ExclusionFilter

filterObject

public int filterObject(CaptureSearchResult r)
Description copied from interface: ObjectFilter
inpect record and determine if it should be included in the results or not, or if processing of new records should stop.

Parameters:
r - Object which should be checked for inclusion/exclusion or abort
Returns:
int of FILTER_INCLUDE, FILTER_EXCLUDE, or FILTER_ABORT


Copyright © 2005-2011 Internet Archive. All Rights Reserved.