public class RegExpMatchOnNameFilter extends java.lang.Object implements CrawlableDatasetFilter
Modifier and Type | Field and Description |
---|---|
protected java.util.regex.Pattern |
pattern |
Constructor and Description |
---|
RegExpMatchOnNameFilter(java.lang.String regExpString) |
Modifier and Type | Method and Description |
---|---|
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() |
public RegExpMatchOnNameFilter(java.lang.String regExpString)
public java.lang.Object getConfigObject()
CrawlableDatasetFilter
getConfigObject
in interface CrawlableDatasetFilter
public java.lang.String getRegExpString()
public boolean accept(CrawlableDataset dataset)
CrawlableDatasetFilter
accept
in interface CrawlableDatasetFilter
dataset
- the CrawlableDataset to test for inclusion.