Example usage for org.springframework.oxm.jaxb Jaxb2Marshaller setMappedClass

List of usage examples for org.springframework.oxm.jaxb Jaxb2Marshaller setMappedClass

Introduction

In this page you can find the example usage for org.springframework.oxm.jaxb Jaxb2Marshaller setMappedClass.

Prototype

public void setMappedClass(Class<?> mappedClass) 

Source Link

Document

Specify a JAXB mapped class for partial unmarshalling.

Usage

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
}