public final void setSchemas(Resource[] schemaResources) { this.jaxb2Marshaller.setSchemas(schemaResources); }
public final void setSchemas(Resource[] schemaResources) { this.jaxb2Marshaller.setSchemas(schemaResources); }
marshaller.setSchemas(resourceResolver.getResources("classpath:herd.xsd"));
marshaller.setSchemas(resourceResolver.getResources("classpath:herd.xsd"));
public XmlDeserializationTest() throws Exception { super(new TestData(URI.create("http://test-data/"), new DefaultModelFactory())); marshaller = new ApiJaxb2Marshaller(); marshaller.setPackagesToScan( "de.juplo.yourshouter.api.model.detached", "de.juplo.yourshouter.api.model.flat", "de.juplo.yourshouter.api.model.ref" ); marshaller.setSchemas( new ClassPathResource("/detached.xsd"), new ClassPathResource("/flat.xsd"), new ClassPathResource("/ref.xsd") ); marshaller.afterPropertiesSet(); }