Package org.nuxeo.common.utils
Class FileMatcher
java.lang.Object
org.nuxeo.common.utils.FileMatcher
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
static FileMatcher
getMatcher
(File file) static FileMatcher
getMatcher
(String path) static File
getMatchingFile
(String path, Map<String, Object> map) Look for a matching file for the given path.getValue()
boolean
-
Field Details
-
pattern
-
key
-
value
-
-
Constructor Details
-
FileMatcher
-
-
Method Details
-
getMatcher
-
getMatcher
-
getMatchingFile
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
-
getPattern
-
getValue
-
match
-