thredds.crawlabledataset.filter
Class RegExpMatchOnNameFilter

java.lang.Object
  extended by thredds.crawlabledataset.filter.RegExpMatchOnNameFilter
All Implemented Interfaces:
CrawlableDatasetFilter

public class RegExpMatchOnNameFilter
extends java.lang.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
Author:
edavis

Constructor Summary
RegExpMatchOnNameFilter(java.lang.String regExpString)
           
 
Method Summary
 boolean accept(CrawlableDataset dataset)
          Test whether the specified CrawlableDataset should be included in a list of CrawlableDatasets.
 java.lang.Object getConfigObject()
          Return the configuration object.
 java.lang.String getRegExpString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegExpMatchOnNameFilter

public RegExpMatchOnNameFilter(java.lang.String regExpString)
Method Detail

getConfigObject

public java.lang.Object getConfigObject()
Description copied from interface: CrawlableDatasetFilter
Return the configuration object.

Specified by:
getConfigObject in interface CrawlableDatasetFilter
Returns:
the configuration Object (may be null).

getRegExpString

public java.lang.String getRegExpString()

accept

public boolean accept(CrawlableDataset dataset)
Description copied from interface: CrawlableDatasetFilter
Test whether the specified CrawlableDataset should be included in a list of CrawlableDatasets.

Specified by:
accept in interface CrawlableDatasetFilter
Parameters:
dataset - the CrawlableDataset to test for inclusion.
Returns:
true if the given CrawlableDataset should be included, false otherwise.