|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.connect.update.util.FileRef
public abstract class FileRef
A file reference that can handle file name patterns. A file pattern can use named variable that will be substituted with the actual value of the file that matched the pattern.
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.
Nested Class Summary | |
---|---|
static class |
FileRef.ExactFileRef
|
Constructor Summary | |
---|---|
FileRef()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileRef()
Method Detail |
---|
public static FileRef newFileRef(String path)
public static FileRef newFileRef(File file)
public abstract File getFile()
public abstract boolean hasPattern()
public abstract void fillPatternVariables(Map<String,Object> vars)
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |