Package thredds.crawlabledataset.filter
Class RegExpMatchOnNameFilter
- java.lang.Object
-
- thredds.crawlabledataset.filter.RegExpMatchOnNameFilter
-
- All Implemented Interfaces:
CrawlableDatasetFilter
- Direct Known Subclasses:
RegExpMatchOnPathFilter
public class RegExpMatchOnNameFilter extends Object implements CrawlableDatasetFilter
CrawlableDatasetFilter implementation that accepts datasets whose names are matched by the given regular expression.- Since:
- Nov 5, 2005 12:51:56 PM
-
-
Constructor Summary
Constructors Constructor Description RegExpMatchOnNameFilter(String regExpString)
-
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.StringgetRegExpString()
-
-
-
Field Detail
-
pattern
protected Pattern pattern
-
-
Constructor Detail
-
RegExpMatchOnNameFilter
public RegExpMatchOnNameFilter(String regExpString)
-
-
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).
-
getRegExpString
public String getRegExpString()
-
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.
-
-