|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dv.sbu.filefilter.buildin.PathFilter
public class PathFilter
File filter restricting on relative paths (including the full file name) by testing on matching a regular expression.
Constructor Summary | |
---|---|
PathFilter()
|
Method Summary | |
---|---|
boolean |
acceptFile(SourceFileInformation fileInfo)
Test the given file information object relative to some root directory. |
java.lang.String |
getPattern()
Returns the path pattern. |
void |
setPattern(java.lang.String pattern)
Sets the pattern (compare Pattern ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathFilter()
Method Detail |
---|
public java.lang.String getPattern()
public void setPattern(java.lang.String pattern) throws java.lang.NullPointerException
Pattern
).
Keep in mind that the path separator is /
.
pattern
- The pattern to set.
java.lang.NullPointerException
- The pattern is null
.public boolean acceptFile(SourceFileInformation fileInfo)
acceptFile
in interface IFileFilter
fileInfo
- The file information to test.
true
if the file is accepted. false
if the file is rejected.IFileFilter.acceptFile(de.dv.sbu.SourceFileInformation)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |