public class FileMatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
key |
protected Pattern |
pattern |
protected String |
value |
| 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) |
protected final Pattern pattern
protected final String key
protected String value
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 © 2020 Nuxeo SA. All rights reserved.