Package thredds.inventory.filter
Class WildcardMatchOnPath
- java.lang.Object
-
- thredds.inventory.filter.WildcardMatchOnPath
-
- All Implemented Interfaces:
MFileFilter
- Direct Known Subclasses:
WildcardMatchOnName
public class WildcardMatchOnPath extends Object implements MFileFilter
A wildcard expression that matches on the MFile path.- Since:
- Jun 26, 2009
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.re2j.Patternpattern
-
Constructor Summary
Constructors Constructor Description WildcardMatchOnPath(String wildcardString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(MFile file)Tests if a specified MFile should be included in a file collection.StringtoString()
-
-
-
Constructor Detail
-
WildcardMatchOnPath
public WildcardMatchOnPath(String wildcardString)
-
-
Method Detail
-
accept
public boolean accept(MFile file)
Description copied from interface:MFileFilterTests if a specified MFile should be included in a file collection.- Specified by:
acceptin interfaceMFileFilter- Parameters:
file- the MFile- Returns:
trueif the mfile should be included in the file collection;falseotherwise.
-
-