public class RegExpAndDurationTimeCoverageEnhancer extends Object implements DatasetEnhancer
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMetadata(InvDataset dataset,
CrawlableDataset crDataset)
Add metadata to the given InvDataset possibly using information from the
corresponding CrawlableDataset.
|
Object |
getConfigObject()
Return the configuration object.
|
String |
getDuration() |
static RegExpAndDurationTimeCoverageEnhancer |
getInstanceToMatchOnDatasetName(String matchPattern,
String substitutionPattern,
String duration)
Factory method that returns a RegExpAndDurationTimeCoverageEnhancer instance
that will apply the match pattern to the dataset name.
|
static RegExpAndDurationTimeCoverageEnhancer |
getInstanceToMatchOnDatasetPath(String matchPattern,
String substitutionPattern,
String duration)
Factory method that returns a RegExpAndDurationTimeCoverageEnhancer instance
that will apply the match pattern to the dataset path.
|
String |
getMatchPattern() |
thredds.cataloggen.datasetenhancer.RegExpAndDurationTimeCoverageEnhancer.MatchTarget |
getMatchTarget() |
String |
getSubstitutionPattern() |
public static RegExpAndDurationTimeCoverageEnhancer getInstanceToMatchOnDatasetName(String matchPattern, String substitutionPattern, String duration)
matchPattern - a regular expression used to match against the CrawlableDataset name.substitutionPattern - the time coverage start time (which may contain regular expression capturing group substitution strings).duration - the time coverage duration string.public static RegExpAndDurationTimeCoverageEnhancer getInstanceToMatchOnDatasetPath(String matchPattern, String substitutionPattern, String duration)
matchPattern - a regular expression used to match against the CrawlableDataset path.substitutionPattern - the time coverage start time (which may contain regular expression capturing group substitution strings).duration - the time coverage duration string.public thredds.cataloggen.datasetenhancer.RegExpAndDurationTimeCoverageEnhancer.MatchTarget getMatchTarget()
public String getMatchPattern()
public String getSubstitutionPattern()
public String getDuration()
public Object getConfigObject()
DatasetEnhancergetConfigObject in interface DatasetEnhancerpublic boolean addMetadata(InvDataset dataset, CrawlableDataset crDataset)
DatasetEnhanceraddMetadata in interface DatasetEnhancerdataset - the InvDataset to enhance with additional metadata.crDataset - the CrawlableDataset that corresponds with the given InvDataset, possibly used to gather information not available from the InvDataset.Copyright © 1999–2013 UCAR/Unidata. All rights reserved.