Package thredds.inventory.filter
Class RegExpMatchOnName
- java.lang.Object
-
- thredds.inventory.filter.RegExpMatchOnName
-
- All Implemented Interfaces:
MFileFilter
public class RegExpMatchOnName extends Object implements MFileFilter
A regular expression that matches on the MFile name.- Since:
- Jun 26, 2009
-
-
Constructor Summary
Constructors Constructor Description RegExpMatchOnName(String regExpString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(MFile file)
Tests if a specified MFile should be included in a file collection.String
toString()
-
-
-
Constructor Detail
-
RegExpMatchOnName
public RegExpMatchOnName(String regExpString)
-
-
Method Detail
-
accept
public boolean accept(MFile file)
Description copied from interface:MFileFilter
Tests if a specified MFile should be included in a file collection.- Specified by:
accept
in interfaceMFileFilter
- Parameters:
file
- the MFile- Returns:
true
if the mfile should be included in the file collection;false
otherwise.
-
-