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()
CrawlableDatasetLabelergetConfigObject in interface CrawlableDatasetLabelerpublic java.lang.String getRegExp()
public java.lang.String getReplaceString()
public java.lang.String getLabel(CrawlableDataset dataset)
CrawlableDatasetLabelergetLabel in interface CrawlableDatasetLabelerdataset - the CrawlableDataset to be labeled.