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)  | 
public FileMatcher(Pattern pattern, String key)
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 Pattern getPattern()
Copyright © 2019 Nuxeo. All rights reserved.