legacy/src/main/java/thredds/cataloggen/datasetenhancer/RegExpAndDurationTimeCoverageEnhancer.java
public static
  RegExpAndDurationTimeCoverageEnhancer
  getInstanceToMatchOnDatasetName( String matchPattern,
                                   String substitutionPattern,
                                   String duration )
  {
    return new RegExpAndDurationTimeCoverageEnhancer(
            matchPattern, substitutionPattern,
            duration, MatchTarget.DATASET_NAME );
  }
public static
  RegExpAndDurationTimeCoverageEnhancer
  getInstanceToMatchOnDatasetName( String matchPattern,
                                   String substitutionPattern,
                                   String duration )
  {
    return new RegExpAndDurationTimeCoverageEnhancer(
            matchPattern, substitutionPattern,
            duration, MatchTarget.DATASET_NAME );
  }
Factory method that returns a RegExpAndDurationTimeCoverageEnhancer instance
that will apply the match pattern to the dataset name.

@param matchPattern a regular expression used to match against the CrawlableDataset name.
@param substitutionPattern the time coverage start time (which may contain regular expression capturing group substitution strings).
@param duration the time coverage duration string.

@return a RegExpAndDurationTimeCoverageEnhancer that will apply the match pattern to the dataset name.