Class InstalledFilter
java.lang.Object
net.sf.basedb.util.extensions.manager.filter.InstalledFilter
- All Implemented Interfaces:
Filter<ExtensionsFile>
Filter implementation for extension files that
allow installed files to pass. A
Settings
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) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInstalledFilter
(Settings settings) Create a new filter.InstalledFilter
(Settings settings, Filter<ExtensionsFile> parent) Create a new filter with an optional chained parent filted. -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(ExtensionsFile xtFile) Evaluate if the given object should pass the filter or not.
-
Field Details
-
log
-
settings
-
parent
-
-
Constructor Details
-
InstalledFilter
Create a new filter.- Parameters:
settings
- The settings object to use when checking if a file is installed or not
-
InstalledFilter
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 Details
-
evaluate
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
-