3.2.1: 2012-12-13

net.sf.basedb.util.extensions.manager.filter
Class WasProcessedFilter

java.lang.Object
  extended by net.sf.basedb.util.extensions.manager.filter.WasProcessedFilter
All Implemented Interfaces:
Filter<ExtensionsFile>

public class WasProcessedFilter
extends Object
implements Filter<ExtensionsFile>

Filter implementation that passes all extension files that has been processed according to the information in the given ProcessResults object. Eg. if the ProcessResults.getResults(ExtensionsFile) returns null or an actual object. This filter is primarly inteded to be used together with the MarkAsProcessedProcessor, but may have other uses as well.

Since:
3.0
Author:
Nicklas
Last modified
$Date$

Field Summary
private  ProcessResults results
           
 
Constructor Summary
WasProcessedFilter(ProcessResults results)
           
 
Method Summary
 boolean evaluate(ExtensionsFile xtFile)
          Evaluate if the given object should pass the filter or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

results

private final ProcessResults results
Constructor Detail

WasProcessedFilter

public WasProcessedFilter(ProcessResults results)
Method Detail

evaluate

public boolean evaluate(ExtensionsFile xtFile)
Description copied from interface: Filter
Evaluate if the given object should pass the filter or not.

Specified by:
evaluate in interface Filter<ExtensionsFile>
Parameters:
xtFile - The object to evaluate
Returns:
TRUE if the object passes the filter, FALSE otherwise

3.2.1: 2012-12-13