Package org.apache.commons.vfs2.filter
Interface ConditionalFileFilter
-
- All Known Implementing Classes:
AndFileFilter
,OrFileFilter
public interface ConditionalFileFilter
Defines operations for conditional file filters.- Since:
- 2.4
- See Also:
- "http://commons.apache.org/proper/commons-io/"
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFileFilter(FileFilter fileFilter)
Adds the specified file filter to the list of file filters at the end of the list.java.util.List<FileFilter>
getFileFilters()
Returns this conditional file filter's list of file filters.boolean
removeFileFilter(FileFilter fileFilter)
Removes the specified file filter.void
setFileFilters(java.util.List<FileFilter> fileFilters)
Sets the list of file filters, replacing any previously configured file filters on this filter.
-
-
-
Method Detail
-
addFileFilter
void addFileFilter(FileFilter fileFilter)
Adds the specified file filter to the list of file filters at the end of the list.- Parameters:
fileFilter
- the filter to be added
-
getFileFilters
java.util.List<FileFilter> getFileFilters()
Returns this conditional file filter's list of file filters.- Returns:
- the file filter list
-
removeFileFilter
boolean removeFileFilter(FileFilter fileFilter)
Removes the specified file filter.- Parameters:
fileFilter
- filter to be removed- Returns:
true
if the filter was found in the list,false
otherwise
-
setFileFilters
void setFileFilters(java.util.List<FileFilter> fileFilters)
Sets the list of file filters, replacing any previously configured file filters on this filter.- Parameters:
fileFilters
- the list of filters
-
-