use of eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.ObjectFactory in project hale by halestudio.
the class AppSchemaMappingGenerator method writeMapping.
static void writeMapping(OutputStream out, AppSchemaDataAccessType mapping) throws JAXBException {
JAXBContext context = createJaxbContext();
Marshaller marshaller = context.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
JAXBElement<AppSchemaDataAccessType> mappingConfElement = new ObjectFactory().createAppSchemaDataAccess(mapping);
marshaller.marshal(mappingConfElement, out);
}
Aggregations