Interface ImportFilter

All Known Implementing Classes:
AndImportFilter, DirectoryImportFilter, FileImportFilter, FileNameRegexImportFilter, HiddenFileFilter, NonExistentContentFileImportFilter, NotImportFilter

public interface ImportFilter
Definition of a source filter - a class that filters out importable items idenfitied from the source directory from the import. Note that source filters can be "chained", in which case each source filter effectively has "veto" power - if any single filter requests that a given importable item be filtered, it will be filtered.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    shouldFilter(ImportableItem importableItem)
    Method that checks whether the given file or folder should be filtered.
  • Method Details

    • shouldFilter

      boolean shouldFilter(ImportableItem importableItem)
      Method that checks whether the given file or folder should be filtered.
      Parameters:
      importableItem - The source importable item to check for filtering (will not be null).
      Returns:
      True if the given importable item should be filtered, false otherwise.