|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectthredds.cataloggen.datasetenhancer.RegExpAndDurationTimeCoverageEnhancer
public class RegExpAndDurationTimeCoverageEnhancer
Try to add timeCoverage to the InvDataset using a regular expression match, capturing group replacement, and a duration string.
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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()
DatasetEnhancer
getConfigObject in interface DatasetEnhancer
public boolean addMetadata(InvDataset dataset,
CrawlableDataset crDataset)
DatasetEnhancer
addMetadata 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||