@Test public void getValueMetadataTest() throws SdmxException, KryoException, FileNotFoundException { Optional<VTLValueMetadata> search = new SDMXEnvironment().getValueMetadata(SDMX_ALIAS); assertTrue(search.isPresent(), "Cannot find " + SDMX_ALIAS); assertTrue(DataSetMetadata.class.isInstance(search.get()), SDMX_ALIAS + " is not a DataSet"); DataSetMetadata dataset = (DataSetMetadata) search.get(); assertEquals(31, dataset.size(), "Wrong number of columns"); }
@Override public Optional<VTLValueMetadata> getValueMetadata(String name) { return getMatcher(name) .map(matcher -> { String provider = matcher.group(1); String dataflow = matcher.group(2); String query = matcher.group(4); return getMetadataSDMX(provider, dataflow, query.split("\\.")); }); }
SDMXEnvironment implements Environment, Serializable { @Override public Optional<VTLValueMetadata> getValueMetadata(String name) { return getMatcher(name) .map(matcher -> { String provider = matcher.group(1); String dataflow = matcher.group(2); String query = matcher.group(4); return getMetadataSDMX(provider, dataflow, query.split("\\.")); }); } }
SDMXEnvironment implements Environment, Serializable { @Override public Optional<VTLValueMetadata> getValueMetadata(String name) { return getMatcher(name) .map(matcher -> { String provider = matcher.group(1); String dataflow = matcher.group(2); String query = matcher.group(4); return getMetadataSDMX(provider, dataflow, query.split("\\.")); }); }  }
SDMXEnvironment implements Environment, Serializable { @Override public Optional<VTLValueMetadata> getValueMetadata(String name) { return getMatcher(name) .map(matcher -> { String provider = matcher.group(1); String dataflow = matcher.group(2); String query = matcher.group(4); return getMetadataSDMX(provider, dataflow, query.split("\\.")); }); }  @Override boolean contains(String name); @Override Optional<VTLValue> getValue(String name); @Override Optional<VTLValueMetadata> getValueMetadata(String name); }
SDMXEnvironment implements Environment, Serializable { @Override public Optional<VTLValueMetadata> getValueMetadata(String name) { return getMatcher(name) .map(matcher -> { String provider = matcher.group(1); String dataflow = matcher.group(2); String query = matcher.group(4); return getMetadataSDMX(provider, dataflow, query.split("\\.")); }); }  @Override boolean contains(String name); @Override Optional<VTLValue> getValue(String name); @Override Optional<VTLValueMetadata> getValueMetadata(String name); static final VTLProperty SDMX_ENVIRONMENT_AUTODROP_IDENTIFIERS; }