@Test void GetVariablesFromDss6ReturnsSetOfStrings() { String pathToDss = new File(getClass().getResource("/normalizer/prism.dss").getFile()).toString(); Set<String> variables = DssDataReader.getVariables(pathToDss); assertEquals(2, variables.size()); }
public static Set<String> getVariables(String pathToDss){ HecDSSFileAccess.setDefaultDSSFileName(pathToDss); HecDssCatalog catalog = new HecDssCatalog(); String[] paths = catalog.getCatalog(false, null); return new HashSet<>(Arrays.asList(paths)); }
DssDataReader extends DataReader { public static Set<String> getVariables(String pathToDss){ HecDSSFileAccess.setDefaultDSSFileName(pathToDss); HecDssCatalog catalog = new HecDssCatalog(); String[] paths = catalog.getCatalog(false, null); return new HashSet<>(Arrays.asList(paths)); } }
DssDataReader extends DataReader { public static Set<String> getVariables(String pathToDss){ HecDSSFileAccess.setDefaultDSSFileName(pathToDss); HecDssCatalog catalog = new HecDssCatalog(); String[] paths = catalog.getCatalog(false, null); return new HashSet<>(Arrays.asList(paths)); } DssDataReader(DataReaderBuilder builder); }
DssDataReader extends DataReader { public static Set<String> getVariables(String pathToDss){ HecDSSFileAccess.setDefaultDSSFileName(pathToDss); HecDssCatalog catalog = new HecDssCatalog(); String[] paths = catalog.getCatalog(false, null); return new HashSet<>(Arrays.asList(paths)); } DssDataReader(DataReaderBuilder builder); @Override List<VortexData> getDtos(); static Set<String> getVariables(String pathToDss); @Override int getDtoCount(); @Override VortexData getDto(int idx); }
DssDataReader extends DataReader { public static Set<String> getVariables(String pathToDss){ HecDSSFileAccess.setDefaultDSSFileName(pathToDss); HecDssCatalog catalog = new HecDssCatalog(); String[] paths = catalog.getCatalog(false, null); return new HashSet<>(Arrays.asList(paths)); } DssDataReader(DataReaderBuilder builder); @Override List<VortexData> getDtos(); static Set<String> getVariables(String pathToDss); @Override int getDtoCount(); @Override VortexData getDto(int idx);  }