Class InstalledFilter
- java.lang.Object
-
- net.sf.basedb.util.extensions.manager.filter.InstalledFilter
-
- All Implemented Interfaces:
Filter<ExtensionsFile>
public class InstalledFilter extends Object implements Filter<ExtensionsFile>
Filter implementation for extension files that allow installed files to pass. ASettings
object is used to keep track of which files are installed and not.- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date: 2011-04-15 09:52:28 +0200 (fr, 15 apr 2011) $
-
-
Constructor Summary
Constructors Constructor Description InstalledFilter(Settings settings)
Create a new filter.InstalledFilter(Settings settings, Filter<ExtensionsFile> parent)
Create a new filter with an optional chained parent filted.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(ExtensionsFile xtFile)
Evaluate if the given object should pass the filter or not.
-
-
-
Field Detail
-
log
private static final org.slf4j.Logger log
-
settings
private final Settings settings
-
parent
private final Filter<ExtensionsFile> parent
-
-
Constructor Detail
-
InstalledFilter
public InstalledFilter(Settings settings)
Create a new filter.- Parameters:
settings
- The settings object to use when checking if a file is installed or not
-
InstalledFilter
public InstalledFilter(Settings settings, Filter<ExtensionsFile> parent)
Create a new filter with an optional chained parent filted.- Parameters:
settings
- The settings object to use when checking if a file is installed or notparent
- An optional parent filter that will also be checked
-
-
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 interfaceFilter<ExtensionsFile>
- Parameters:
xtFile
- The object to evaluate- Returns:
- TRUE if the object passes the filter, FALSE otherwise
-
-