Search in sources :

Example 1 with ObjectFactory

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);
}
Also used : Marshaller(javax.xml.bind.Marshaller) AppSchemaDataAccessType(eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.AppSchemaDataAccessType) ObjectFactory(eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.ObjectFactory) JAXBContext(javax.xml.bind.JAXBContext)

Aggregations

AppSchemaDataAccessType (eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.AppSchemaDataAccessType)1 ObjectFactory (eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.ObjectFactory)1 JAXBContext (javax.xml.bind.JAXBContext)1 Marshaller (javax.xml.bind.Marshaller)1