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

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

Introduction

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

Prototype

Jaxb2Marshaller

Source Link

Usage

From source file:com.hp.autonomy.types.idol.marshalling.marshallers.jaxb2.Jaxb2DocumentGenerator.java

Jaxb2DocumentGenerator(final Class<T> type) {
    marshaller = new Jaxb2Marshaller();
    marshaller.setClassesToBeBound(Documents.class, type);
    marshaller.setMappedClass(type);//from w w  w  . jav  a  2  s  .c o  m
}

From source file:com.hp.autonomy.types.idol.marshalling.marshallers.jaxb2.Jaxb2ResponseParser.java

Jaxb2ResponseParser() {
    responseEnvelopeMarshaller = new Jaxb2Marshaller();
    responseEnvelopeMarshaller.setClassesToBeBound(Autnresponse.class);

    errorMarshaller = new Jaxb2Marshaller();
    errorMarshaller.setClassesToBeBound(ErrorResponse.class);
}

From source file:com.hp.autonomy.types.idol.marshalling.marshallers.jaxb2.Jaxb2ResponseDataParser.java

Jaxb2ResponseDataParser(final ResponseParser responseParser, final Class<R> type) {
    this.responseParser = responseParser;
    this.type = type;
    marshaller = new Jaxb2Marshaller();
    marshaller.setClassesToBeBound(type);
    marshaller.setMappedClass(type);/*from w  w w. j a v a 2s .  c o m*/
}

From source file:org.beast.project.template.config.WebServiceConfig.java

@Bean
public Jaxb2Marshaller payloadMarshaller() {
    Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
    marshaller.setContextPath(ClassUtils.getPackageName(org.beast.project.template.model.ObjectFactory.class));
    marshaller.setSchemas(schemaResources());
    return marshaller;
}

From source file:org.springsource.greenbeans.examples.edawithspring.etailer.common.CommonConfiguration.java

@Bean
public Marshaller marshaller() {
    Jaxb2Marshaller jaxb2Marshaller = new Jaxb2Marshaller();
    jaxb2Marshaller.setClassesToBeBound(PurchaseProcessingRequest.class, PurchaseLineItem.class,
            PurchaseProcessingResponse.class);
    jaxb2Marshaller.setSchema(partnerSchemaResource);
    return jaxb2Marshaller;
}

From source file:com.hp.autonomy.types.idol.marshalling.marshallers.jaxb2.Jaxb2QueryResponseDataParser.java

Jaxb2QueryResponseDataParser(final ResponseDataParser<R> responseDataMarshaller,
        final Class<R> responseDataType, final Class<C> contentType) {
    this.responseDataMarshaller = responseDataMarshaller;
    this.responseDataType = responseDataType;
    this.contentType = contentType;
    marshaller = new Jaxb2Marshaller();
    marshaller.setClassesToBeBound(contentType);
    marshaller.setMappedClass(contentType);
}

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);
    });/* www  .  j a  v a2  s . c om*/
}

From source file:nl.iwelcome.connector.google.GoogleAppsService.java

public GoogleAppsService(String email, String password, String loginUrl, String baseUrl, String customerIdUrl,
        String moveToGroupUrl) {/* ww  w. j a  v a 2s.co m*/
    this.googleAppsTemplate = new GoogleAppsTemplate(email, password, loginUrl, baseUrl, customerIdUrl,
            moveToGroupUrl);
    this.marshaller = new Jaxb2Marshaller();
    marshaller.setClassesToBeBound(GoogleAtom.class, GoogleAtom.class);
}

From source file:siia.booking.domain.trip.LegMarshallingTest.java

@Before
public void setUp() {
    this.marshaller = new Jaxb2Marshaller();
    this.marshaller.setClassesToBeBound(new Class[] { Leg.class });
}

From source file:com.cisco.cta.taxii.adapter.persistence.PersistenceConfiguration.java

@Bean
public Jaxb2Marshaller taxiiStatusMarshaller() {
    Jaxb2Marshaller jaxb2Marshaller = new Jaxb2Marshaller();
    jaxb2Marshaller.setClassesToBeBound(TaxiiStatus.class);
    jaxb2Marshaller//  www. ja v  a2  s. c om
            .setMarshallerProperties(ImmutableMap.of(javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT, true));
    return jaxb2Marshaller;
}