Package thredds.inventory.filter
Class WildcardMatchOnName
- java.lang.Object
-
- thredds.inventory.filter.WildcardMatchOnPath
-
- thredds.inventory.filter.WildcardMatchOnName
-
- All Implemented Interfaces:
MFileFilter
public class WildcardMatchOnName extends WildcardMatchOnPath
A wildcard expression that matches on the MFile name.- Since:
- Jun 26, 2009
-
-
Field Summary
-
Fields inherited from class thredds.inventory.filter.WildcardMatchOnPath
pattern
-
-
Constructor Summary
Constructors Constructor Description WildcardMatchOnName(com.google.re2j.Pattern pattern)
WildcardMatchOnName(String wildcardString)
-
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.-
Methods inherited from class thredds.inventory.filter.WildcardMatchOnPath
toString
-
-
-
-
Constructor Detail
-
WildcardMatchOnName
public WildcardMatchOnName(String wildcardString)
-
WildcardMatchOnName
public WildcardMatchOnName(com.google.re2j.Pattern pattern)
-
-
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
- Overrides:
accept
in classWildcardMatchOnPath
- Parameters:
file
- the MFile- Returns:
true
if the mfile should be included in the file collection;false
otherwise.
-
-