legacy/src/main/java/thredds/cataloggen/config/DatasetNamer.java
public boolean nameDataset(InvDatasetImpl dataset) {
    if (this.type == DatasetNamerType.REGULAR_EXPRESSION) {
      return (this.nameDatasetRegExp(dataset));
    } /* else if (this.type == DatasetNamerType.DODS_ATTRIBUTE) {
      return (this.nameDatasetDodsAttrib(dataset));
    } */
          else {
      String tmpMsg = "This DatasetNamer <" + this.getName() + "> has unsupported type <" + this.type.toString() + ">.";
      logger.error("nameDataset(): " + tmpMsg);
      throw new IllegalStateException(tmpMsg);
    }

  }
public boolean nameDataset(InvDatasetImpl dataset) {
    if (this.type == DatasetNamerType.REGULAR_EXPRESSION) {
      return (this.nameDatasetRegExp(dataset));
    } /* else if (this.type == DatasetNamerType.DODS_ATTRIBUTE) {
      return (this.nameDatasetDodsAttrib(dataset));
    } */
          else {
      String tmpMsg = "This DatasetNamer <" + this.getName() + "> has unsupported type <" + this.type.toString() + ">.";
      logger.error("nameDataset(): " + tmpMsg);
      throw new IllegalStateException(tmpMsg);
    }

  }
public boolean nameDataset ( InvDatasetImpl dataset ) { if ( this . type == DatasetNamerType . REGULAR_EXPRESSION ) { return ( this . nameDatasetRegExp ( dataset ) ) ; } /* else if (this.type == DatasetNamerType.DODS_ATTRIBUTE) {
      return (this.nameDatasetDodsAttrib(dataset));
    } */ else { String tmpMsg = "This DatasetNamer <" + this . getName ( ) + "> has unsupported type <" + this . type . toString ( ) + ">." ; logger . error ( "nameDataset(): " + tmpMsg ) ; throw new IllegalStateException ( tmpMsg ) ; } }
Try to name the given dataset.
Try to name the given dataset .