thredds.crawlabledataset
Class RegExpAndReplaceOnNameLabeler

java.lang.Object
  extended by 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

Constructor Summary
RegExpAndReplaceOnNameLabeler(String regExp, String replaceString)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegExpAndReplaceOnNameLabeler

public RegExpAndReplaceOnNameLabeler(String regExp,
                                     String replaceString)
Method Detail

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.