@Test public void testDataflowNameExtraction() throws Exception { assertEquals( "population", SDMXDataStore.extractDataflowName("population__SDMX__DIMENSIONS")); assertEquals("population", SDMXDataStore.extractDataflowName("population__SDMX")); assertEquals("", SDMXDataStore.extractDataflowName("population")); assertEquals("", SDMXDataStore.extractDataflowName("__SDMX")); assertEquals("", SDMXDataStore.extractDataflowName("_SDMX")); assertEquals("", SDMXDataStore.extractDataflowName("population__SDMX_X")); assertEquals("", SDMXDataStore.extractDataflowName("")); assertEquals( "population,1.2", SDMXDataStore.extractDataflowName("population____1_____2__SDMX")); assertEquals( "population,1.2,3.4", SDMXDataStore.extractDataflowName("population____1_____2____3_____4__SDMX")); }
public static String extractDataflowName(String typeName) { if (!SDMXDataStore.isDataflowName(typeName) && !SDMXDataStore.isDimensionName(typeName)) { return ""; } String[] parts = typeName.replaceAll(DOT_REPLACEMENT, ".") .replaceAll(COMMA_REPLACEMENT, ",") .split(SDMXDataStore.SEPARATOR_FEATURETYPE); return parts.length == 0 ? "" : parts[0]; }
SDMXDataStore extends ContentDataStore { public static String extractDataflowName(String typeName) { if (!SDMXDataStore.isDataflowName(typeName) && !SDMXDataStore.isDimensionName(typeName)) { return ""; } String[] parts = typeName.replaceAll(DOT_REPLACEMENT, ".") .replaceAll(COMMA_REPLACEMENT, ",") .split(SDMXDataStore.SEPARATOR_FEATURETYPE); return parts.length == 0 ? "" : parts[0]; } }
SDMXDataStore extends ContentDataStore { public static String extractDataflowName(String typeName) { if (!SDMXDataStore.isDataflowName(typeName) && !SDMXDataStore.isDimensionName(typeName)) { return ""; } String[] parts = typeName.replaceAll(DOT_REPLACEMENT, ".") .replaceAll(COMMA_REPLACEMENT, ",") .split(SDMXDataStore.SEPARATOR_FEATURETYPE); return parts.length == 0 ? "" : parts[0]; } SDMXDataStore(
            String namespaceIn, String provider, Integer concurrency, String user, String password); }
SDMXDataStore extends ContentDataStore { public static String extractDataflowName(String typeName) { if (!SDMXDataStore.isDataflowName(typeName) && !SDMXDataStore.isDimensionName(typeName)) { return ""; } String[] parts = typeName.replaceAll(DOT_REPLACEMENT, ".") .replaceAll(COMMA_REPLACEMENT, ",") .split(SDMXDataStore.SEPARATOR_FEATURETYPE); return parts.length == 0 ? "" : parts[0]; } SDMXDataStore(
            String namespaceIn, String provider, Integer concurrency, String user, String password); int getConcurrency(); void setConcurrency(int concurrency); static String composeDataflowTypeName(String dfName); static String composeDimensionTypeName(String dfName); static boolean isDataflowName(String typeName); static boolean isDimensionName(String typeName); static String extractDataflowName(String typeName); URL getNamespace(); GenericSDMXClient getSDMXClient(); DataFlowStructure getDataFlowStructure(String name); @Override void dispose(); }
SDMXDataStore extends ContentDataStore { public static String extractDataflowName(String typeName) { if (!SDMXDataStore.isDataflowName(typeName) && !SDMXDataStore.isDimensionName(typeName)) { return ""; } String[] parts = typeName.replaceAll(DOT_REPLACEMENT, ".") .replaceAll(COMMA_REPLACEMENT, ",") .split(SDMXDataStore.SEPARATOR_FEATURETYPE); return parts.length == 0 ? "" : parts[0]; } SDMXDataStore(
            String namespaceIn, String provider, Integer concurrency, String user, String password); int getConcurrency(); void setConcurrency(int concurrency); static String composeDataflowTypeName(String dfName); static String composeDimensionTypeName(String dfName); static boolean isDataflowName(String typeName); static boolean isDimensionName(String typeName); static String extractDataflowName(String typeName); URL getNamespace(); GenericSDMXClient getSDMXClient(); DataFlowStructure getDataFlowStructure(String name); @Override void dispose(); static String MEASURE_KEY; static String REGION_KEY; static String TIME_KEY; static String CODE_KEY; static String DESCRIPTION_KEY; static String ALLCODES_EXP; static String OR_EXP; static String SEPARATOR_EXP; static String SEPARATOR_DIM; static String GEOMETRY_ATTR; static String SEPARATOR_FEATURETYPE; static String COMMA_REPLACEMENT; static String DOT_REPLACEMENT; static String DIMENSIONS_SUFFIX; static String FEATURETYPE_SUFFIX; static String DIMENSIONS_EXPR; static String DIMENSIONS_EXPR_ALL; static int TIMEOUT; static int ERROR_NORESULTS; }