Package thredds.crawlabledataset
Class RegExpAndReplaceOnNameLabeler
- java.lang.Object
-
- thredds.crawlabledataset.RegExpAndReplaceOnNameLabeler
-
- All Implemented Interfaces:
CrawlableDatasetLabeler
public class RegExpAndReplaceOnNameLabeler extends Object implements CrawlableDatasetLabeler
_more_- Since:
- Nov 17, 2005 3:31:33 PM
-
-
Constructor Summary
Constructors Constructor Description RegExpAndReplaceOnNameLabeler(String regExp, String replaceString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getConfigObject()
Return the configuration object.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.String
getRegExp()
String
getReplaceString()
-
-
-
Method Detail
-
getConfigObject
public Object getConfigObject()
Description copied from interface:CrawlableDatasetLabeler
Return the configuration object.- Specified by:
getConfigObject
in interfaceCrawlableDatasetLabeler
- Returns:
- the configuration Object (may be null).
-
getRegExp
public String getRegExp()
-
getReplaceString
public String getReplaceString()
-
getLabel
public String getLabel(CrawlableDataset dataset)
Description copied from interface:CrawlableDatasetLabeler
Return a label for the given dataset or null if this CrawlableDatasetLabeler does not know how to label the given dataset.- Specified by:
getLabel
in interfaceCrawlableDatasetLabeler
- Parameters:
dataset
- the CrawlableDataset to be labeled.- Returns:
- the label for the given dataset or null.
-
-