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
- Author:
- edavis
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegExpAndReplaceOnNameLabeler
public RegExpAndReplaceOnNameLabeler(String regExp,
String replaceString)
getConfigObject
public Object getConfigObject()
- Description copied from interface:
CrawlableDatasetLabeler
- Return the configuration object.
- Specified by:
getConfigObject
in interface CrawlableDatasetLabeler
- 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 interface CrawlableDatasetLabeler
- Parameters:
dataset
- the CrawlableDataset to be labeled.
- Returns:
- the label for the given dataset or null.
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.