public class FileSetType
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
FileSetType.PathCallback |
Constructor and Description |
---|
FileSetType() |
Modifier and Type | Method and Description |
---|---|
void |
add(FileSetType fileSet) |
void |
addExclude(PathPatternType pattern)
Adds an exclude pattern.
|
void |
addInclude(PathPatternType pattern)
Adds an include pattern.
|
void |
addInverse(FileSetType fileSet) |
void |
addText(java.lang.String text) |
void |
filterPaths(FileSetType.PathCallback cb)
Returns the set of files.
|
void |
filterPaths(Path path,
java.lang.String prefix,
FileSetType.PathCallback cb)
Returns the set of files.
|
Path |
getDir()
Gets the starting directory.
|
java.util.ArrayList<Path> |
getPaths()
Returns the set of files.
|
java.util.ArrayList<Path> |
getPaths(java.util.ArrayList<Path> paths)
Returns the set of files.
|
java.util.ArrayList<Path> |
getRoots() |
void |
init()
Initialize the type.
|
boolean |
isMatch(Path path,
java.lang.String prefix)
Returns the set of files.
|
void |
setDir(Path dir)
Sets the starting directory.
|
void |
setUserPathPrefix(java.lang.String prefix)
Sets the user-path prefix for better error reporting.
|
java.lang.String |
toString() |
public void setDir(Path dir)
public Path getDir()
public void addInclude(PathPatternType pattern)
public void addText(java.lang.String text)
public void addExclude(PathPatternType pattern)
public void add(FileSetType fileSet)
public void addInverse(FileSetType fileSet)
public void setUserPathPrefix(java.lang.String prefix)
@PostConstruct public void init() throws ConfigException
ConfigException
public java.util.ArrayList<Path> getPaths()
public java.util.ArrayList<Path> getPaths(java.util.ArrayList<Path> paths)
public void filterPaths(FileSetType.PathCallback cb)
public void filterPaths(Path path, java.lang.String prefix, FileSetType.PathCallback cb)
public boolean isMatch(Path path, java.lang.String prefix)
public java.util.ArrayList<Path> getRoots()
public java.lang.String toString()
toString
in class java.lang.Object