public abstract class FileRef extends Object
Example: For a file pattern nuxeo-automation-core-{v:.*}.jar
that will match a file named nuxeo-automation-core-5.3.2.jar
the
pattern variable will be v=5.3.2
.
Note that only one pattern variable is supported.
Modifier and Type | Class and Description |
---|---|
static class |
FileRef.ExactFileRef |
static class |
FileRef.PatternFileRef |
Constructor and Description |
---|
FileRef() |
Modifier and Type | Method and Description |
---|---|
abstract void |
fillPatternVariables(Map<String,Object> vars)
Fill the given map with pattern variables.
|
abstract File |
getFile()
Gets the file referenced by this object.
|
abstract boolean |
hasPattern()
Whether the referred file has a name pattern.
|
static FileRef |
newFileRef(File file) |
static FileRef |
newFileRef(String path) |
public abstract File getFile()
public abstract boolean hasPattern()
Copyright © 2013 Nuxeo SA. All Rights Reserved.