public class FileMatcher extends Object
Constructor and Description |
---|
FileMatcher(Pattern pattern,
String key) |
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
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.
|
Pattern |
getPattern() |
String |
getValue() |
boolean |
match(String name) |
public static FileMatcher getMatcher(String path)
public static FileMatcher getMatcher(File file)
public static File getMatchingFile(String path, Map<String,Object> map)
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.public String getKey()
public Pattern getPattern()
public String getValue()
public boolean match(String name)
Copyright © 2015 Nuxeo SA. All rights reserved.