public class RegExpAndReplaceOnPathLabeler extends java.lang.Object implements CrawlableDatasetLabeler
Constructor and Description |
---|
RegExpAndReplaceOnPathLabeler(java.lang.String regExp,
java.lang.String replaceString) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getConfigObject()
Return the configuration object.
|
java.lang.String |
getLabel(CrawlableDataset dataset)
Return a label for the given dataset or null if this CrawlableDatasetLabeler
does not know how to label the given dataset.
|
java.lang.String |
getRegExp() |
java.lang.String |
getReplaceString() |
public RegExpAndReplaceOnPathLabeler(java.lang.String regExp, java.lang.String replaceString)
public java.lang.Object getConfigObject()
CrawlableDatasetLabeler
getConfigObject
in interface CrawlableDatasetLabeler
public java.lang.String getRegExp()
public java.lang.String getReplaceString()
public java.lang.String getLabel(CrawlableDataset dataset)
CrawlableDatasetLabeler
getLabel
in interface CrawlableDatasetLabeler
dataset
- the CrawlableDataset to be labeled.