Class FileNameRegexImportFilter

  • All Implemented Interfaces:
    ImportFilter

    public class FileNameRegexImportFilter
    extends java.lang.Object
    implements ImportFilter
    This class is an ImportFilter that filters out files and/or folders whose name, excluding path, matches the configured regular expression.
    Since:
    4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      FileNameRegexImportFilter​(java.lang.String filenameRegex)
      Simple constructor for a FileNameRegexSourceFilter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean shouldFilter​(ImportableItem importableItem)
      Method that checks whether the given file or folder should be filtered.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileNameRegexImportFilter

        public FileNameRegexImportFilter​(java.lang.String filenameRegex)
        Simple constructor for a FileNameRegexSourceFilter
        Parameters:
        filenameRegex - The regex to use to match against file and folder names (must not be null).