Package thredds.inventory.filter
Class CompositeMFileFilter
- java.lang.Object
-
- thredds.inventory.filter.CompositeMFileFilter
-
- All Implemented Interfaces:
MFileFilter
public class CompositeMFileFilter extends Object implements MFileFilter
Composite of MFileFilter Used by DatasetScan, FMRC, ?- Since:
- Jul 8, 2009
-
-
Constructor Summary
Constructors Constructor Description CompositeMFileFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(MFile mfile)
Tests if a specified MFile should be included in a file collection.void
addAndFilter(MFileFilter filter)
void
addExcludeFilter(MFileFilter filter)
void
addFilter(MFileFilter filter, boolean include)
void
addIncludeFilter(MFileFilter filter)
-
-
-
Method Detail
-
addFilter
public void addFilter(MFileFilter filter, boolean include)
-
addIncludeFilter
public void addIncludeFilter(MFileFilter filter)
-
addExcludeFilter
public void addExcludeFilter(MFileFilter filter)
-
addAndFilter
public void addAndFilter(MFileFilter filter)
-
accept
public boolean accept(MFile mfile)
Description copied from interface:MFileFilter
Tests if a specified MFile should be included in a file collection.- Specified by:
accept
in interfaceMFileFilter
- Parameters:
mfile
- the MFile- Returns:
true
if the mfile should be included in the file collection;false
otherwise.
-
-