public class RegExpAndDurationTimeCoverageEnhancer extends java.lang.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.
|
java.lang.Object |
getConfigObject()
Return the configuration object.
|
java.lang.String |
getDuration() |
static RegExpAndDurationTimeCoverageEnhancer |
getInstanceToMatchOnDatasetName(java.lang.String matchPattern,
java.lang.String substitutionPattern,
java.lang.String duration)
Factory method that returns a RegExpAndDurationTimeCoverageEnhancer instance
that will apply the match pattern to the dataset name.
|
static RegExpAndDurationTimeCoverageEnhancer |
getInstanceToMatchOnDatasetPath(java.lang.String matchPattern,
java.lang.String substitutionPattern,
java.lang.String duration)
Factory method that returns a RegExpAndDurationTimeCoverageEnhancer instance
that will apply the match pattern to the dataset path.
|
java.lang.String |
getMatchPattern() |
thredds.cataloggen.datasetenhancer.RegExpAndDurationTimeCoverageEnhancer.MatchTarget |
getMatchTarget() |
java.lang.String |
getSubstitutionPattern() |
public static RegExpAndDurationTimeCoverageEnhancer getInstanceToMatchOnDatasetName(java.lang.String matchPattern, java.lang.String substitutionPattern, java.lang.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(java.lang.String matchPattern, java.lang.String substitutionPattern, java.lang.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 java.lang.String getMatchPattern()
public java.lang.String getSubstitutionPattern()
public java.lang.String getDuration()
public java.lang.Object getConfigObject()
DatasetEnhancer
getConfigObject
in interface DatasetEnhancer
public boolean addMetadata(InvDataset dataset, CrawlableDataset crDataset)
DatasetEnhancer
addMetadata
in interface DatasetEnhancer
dataset
- 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.