|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dv.sbu.filefilter.buildin.SuffixFilter
public class SuffixFilter
File filer filtering by suffixes. The filter can be case-sensitive or case-insensitive (default).
Constructor Summary | |
---|---|
SuffixFilter()
|
Method Summary | |
---|---|
boolean |
acceptFile(SourceFileInformation fileInfo)
Test the given file information object relative to some root directory. |
java.lang.String |
getSuffix()
Returns the defined suffix. |
boolean |
isCaseSensitive()
Returns the case-sensitive mode. |
void |
setCaseSensitive(boolean caseSensitive)
Sets the case-sensitive flag. |
void |
setSuffix(java.lang.String suffix)
Sets the defined suffix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuffixFilter()
Method Detail |
---|
public java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix) throws java.lang.NullPointerException
suffix
- The suffix to set.
java.lang.NullPointerException
- The argument is null
.public boolean isCaseSensitive()
true
suffix comparisons are case-sensitive.
public void setCaseSensitive(boolean caseSensitive)
caseSensitive
- The flag to set.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 |