|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dv.sbu.filefilter.buildin.NotFilter
public class NotFilter
File filter as a negation of another one.
A null
filter on a acceptFile(SourceFileInformation)
call will return false
.
Constructor Summary | |
---|---|
NotFilter()
|
Method Summary | |
---|---|
boolean |
acceptFile(SourceFileInformation fileInfo)
Test the given file information object relative to some root directory. |
IFileFilter |
getFilter()
Returns the wrapped filter. |
void |
setFilter(IFileFilter filter)
Sets the wrapped filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotFilter()
Method Detail |
---|
public IFileFilter getFilter()
public void setFilter(IFileFilter filter) throws java.lang.NullPointerException
filter
- The filter to set.
java.lang.NullPointerException
- the given argument 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 |