Search in sources :

Example 1 with TrpPageUnmarshalListener

use of eu.transkribus.core.model.builder.TrpPageUnmarshalListener in project TranskribusCore by Transkribus.

the class PageXmlUtils method createUnmarshaller.

public static Unmarshaller createUnmarshaller() throws JAXBException {
    JAXBContext jc = createPageJAXBContext();
    Unmarshaller u = jc.createUnmarshaller();
    u.setProperty("com.sun.xml.internal.bind.ObjectFactory", new TrpObjectFactory());
    u.setListener(new TrpPageUnmarshalListener());
    return u;
}
Also used : TrpObjectFactory(eu.transkribus.core.model.beans.pagecontent_trp.TrpObjectFactory) JAXBContext(javax.xml.bind.JAXBContext) Unmarshaller(javax.xml.bind.Unmarshaller) TrpPageUnmarshalListener(eu.transkribus.core.model.builder.TrpPageUnmarshalListener)

Aggregations

TrpObjectFactory (eu.transkribus.core.model.beans.pagecontent_trp.TrpObjectFactory)1 TrpPageUnmarshalListener (eu.transkribus.core.model.builder.TrpPageUnmarshalListener)1 JAXBContext (javax.xml.bind.JAXBContext)1 Unmarshaller (javax.xml.bind.Unmarshaller)1