DataValueSet { public List<DataValue> getDataValues() { if (dataValue == null) { dataValue = new ArrayList<DataValue>(); } return this.dataValue; }  List<DataValue> getDataValues(); String getDataElementIdScheme(); void setDataElementIdScheme(String dataElementIdScheme); String getOrgUnitIdScheme(); void setOrgUnitIdScheme(String orgUnitIdScheme); XMLGregorianCalendar getCompleteDate(); void setCompleteDate(XMLGregorianCalendar value); String getDataSet(); void setDataSet(String value); String getOrgUnit(); void setOrgUnit(String value); String getPeriod(); void setPeriod(String value); void marshall(OutputStream outputStream); void marshallSDMX(OutputStream outputStream); static final String XSLT2SDMX; }
@Test public void unMarshallDataValueSet() throws Exception { ClassPathResource resource = new ClassPathResource("dvset.xml"); JAXBContext jaxbContext = JAXBContext.newInstance(DataValueSet.class); Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller(); DataValueSet dvset = (DataValueSet) jaxbUnmarshaller.unmarshal(resource .getInputStream()); assertEquals(5, dvset.getDataValues().size()); }