Interface PathFilter

All Superinterfaces:
Filter, FolderFilter

public interface PathFilter extends FolderFilter
A folder comparison filter that excludes or includes files and folders whose name or path matches a shell or regular expression. Created with Filters.addPathFilter(boolean, FolderFilter.Target, String, boolean, boolean, String).
  • Method Details

    • isCaseSensitive

      boolean isCaseSensitive()
      Answers whether names and paths are matched case-sensitively.
      Returns:
      true for a case-sensitive match, false otherwise.
    • isExclude

      boolean isExclude()
      Answers whether this filter excludes or includes resources with matching names or paths.
      Returns:
      true if this is an exclusion filter, false otherwise.
    • isRegexType

      boolean isRegexType()
      Answers whether the expression defining this filter is a regular or a shell expression.
      Specified by:
      isRegexType in interface Filter
      Returns:
      true in the case of a regular expression, false in the case of a shell expression.