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. 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 Details

  • Constructor Details

    • 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 not
      parent - An optional parent filter that will also be checked
  • Method Details

    • 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