Package thredds.crawlabledataset.filter
Class WildcardMatchOnNameFilter
- java.lang.Object
-
- thredds.crawlabledataset.filter.WildcardMatchOnNameFilter
-
- All Implemented Interfaces:
CrawlableDatasetFilter
- Direct Known Subclasses:
WildcardMatchOnPathFilter
public class WildcardMatchOnNameFilter extends Object implements CrawlableDatasetFilter
CrawlableDatasetFilter implementation that accepts datasets whose names are matched by the given wildcard string. The wildcard string can contain astrisks ("*") which match 0 or more characters and question marks ("?") which match 0 or 1 character.- Since:
- Nov 5, 2005 12:51:56 PM
-
-
Field Summary
Fields Modifier and Type Field Description protected Patternpatternprotected StringwildcardString
-
Constructor Summary
Constructors Constructor Description WildcardMatchOnNameFilter(String wildcardString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(CrawlableDataset dataset)Test whether the specified CrawlableDataset should be included in a list of CrawlableDatasets.ObjectgetConfigObject()Return the configuration object.StringgetWildcardString()
-
-
-
Constructor Detail
-
WildcardMatchOnNameFilter
public WildcardMatchOnNameFilter(String wildcardString)
-
-
Method Detail
-
getConfigObject
public Object getConfigObject()
Description copied from interface:CrawlableDatasetFilterReturn the configuration object.- Specified by:
getConfigObjectin interfaceCrawlableDatasetFilter- Returns:
- the configuration Object (may be null).
-
getWildcardString
public String getWildcardString()
-
accept
public boolean accept(CrawlableDataset dataset)
Description copied from interface:CrawlableDatasetFilterTest whether the specified CrawlableDataset should be included in a list of CrawlableDatasets.- Specified by:
acceptin interfaceCrawlableDatasetFilter- Parameters:
dataset- the CrawlableDataset to test for inclusion.- Returns:
- true if the given CrawlableDataset should be included, false otherwise.
-
-