use of org.openforis.idm.metamodel.SurveyContext in project collect by openforis.
the class ProtostuffSerializationTest method getTestSurvey.
private Survey getTestSurvey() throws IOException, IdmlParseException {
URL idm = ClassLoader.getSystemResource("test.idm.xml");
InputStream is = idm.openStream();
SurveyContext surveyContext = new DefaultSurveyContext();
SurveyIdmlBinder parser = new SurveyIdmlBinder(surveyContext);
return parser.unmarshal(is);
}
Aggregations