public void addDatasetType(String datasetTypes) { // if they list datasetType explicitly, remove defaults if (!explicitDatasets) datasets = EnumSet.noneOf(GribDatasetType.class); explicitDatasets = true; String[] types = StringUtil2.splitString(datasetTypes); for (String type : types) { try { GribDatasetType fdt = GribDatasetType.valueOf(type); datasets.add(fdt); } catch (Exception e) { log.warn("Dont recognize GribDatasetType {}", type); } } }
public void addDatasetType(String datasetTypes) { // if they list datasetType explicitly, remove defaults if (!explicitDatasets) datasets = EnumSet.noneOf(GribDatasetType.class); explicitDatasets = true; String[] types = StringUtil2.splitString(datasetTypes); for (String type : types) { try { GribDatasetType fdt = GribDatasetType.valueOf(type); if (fdt == GribDatasetType.LatestFile) fdt = GribDatasetType.Latest; datasets.add(fdt); } catch (Exception e) { log.warn("Dont recognize GribDatasetType {}", type); } } }
public void addDatasetType(String datasetTypes) { // if they list datasetType explicitly, remove defaults if (!explicitDatasets) datasets = EnumSet.noneOf(GribDatasetType.class); explicitDatasets = true; String[] types = StringUtil2.splitString(datasetTypes); for (String type : types) { try { GribDatasetType fdt = GribDatasetType.valueOf(type); if (fdt == GribDatasetType.LatestFile) fdt = GribDatasetType.Latest; datasets.add(fdt); } catch (Exception e) { log.warn("Dont recognize GribDatasetType {}", type); } } }