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 booleanaccept(MFile mfile)Tests if a specified MFile should be included in a file collection.voidaddAndFilter(MFileFilter filter)voidaddExcludeFilter(MFileFilter filter)voidaddFilter(MFileFilter filter, boolean include)voidaddIncludeFilter(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:MFileFilterTests if a specified MFile should be included in a file collection.- Specified by:
acceptin interfaceMFileFilter- Parameters:
mfile- the MFile- Returns:
trueif the mfile should be included in the file collection;falseotherwise.
-
-