|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.config.types.FileSetType
public class FileSetType
Abstract type building a path pattern. The pattern follows ant.
Nested Class Summary | |
---|---|
static interface |
FileSetType.PathCallback
|
Constructor Summary | |
---|---|
FileSetType()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileSetType()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |