Class FileMatcher

    • Field Detail

      • pattern

        protected final Pattern pattern
      • key

        protected final String key
      • value

        protected String value
    • Constructor Detail

      • FileMatcher

        public FileMatcher​(Pattern pattern,
                           String key)
    • Method Detail

      • getMatchingFile

        public static File getMatchingFile​(String path,
                                           Map<String,​Object> map)
        Look for a matching file for the given path.
        Parameters:
        path - Searched file path, optionally including the pattern.
        map - The pattern variable will be put in the given map if any. Since 5.5, map can be null.
        Returns:
        File found. Null if none.
      • getKey

        public String getKey()
      • getPattern

        public Pattern getPattern()
      • getValue

        public String getValue()
      • match

        public boolean match​(String name)