List of usage examples for org.springframework.oxm.jaxb Jaxb2Marshaller setMappedClass
public void setMappedClass(Class<?> mappedClass)
From source file:com.hp.autonomy.types.idol.marshalling.marshallers.jaxb2.QueueInfoResponseParser.java
QueueInfoResponseParser(final ResponseDataParser<QueueInfoGetStatusResponseData> responseDataMarshaller, final Map<String, Class<?>> expectedResults) { this.responseDataMarshaller = responseDataMarshaller; expectedResults.forEach((nodeName, clazz) -> { final Jaxb2Marshaller marshaller = new Jaxb2Marshaller(); marshaller.setMappedClass(clazz); marshaller.setClassesToBeBound(clazz); this.expectedResults.put(nodeName, marshaller); });// ww w. j av a 2 s . c o m }