2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.so.bpmn.common.adapter.sdnc;
23 import java.io.StringWriter;
25 import javax.xml.bind.JAXBContext;
26 import javax.xml.bind.JAXBException;
27 import javax.xml.bind.Marshaller;
28 import javax.xml.bind.annotation.XmlAccessType;
29 import javax.xml.bind.annotation.XmlAccessorType;
30 import javax.xml.bind.annotation.XmlElement;
31 import javax.xml.bind.annotation.XmlRootElement;
32 import javax.xml.bind.annotation.XmlType;
36 * <p>Java class for anonymous complex type.
38 * <p>The following schema fragment specifies the expected content contained within this class.
43 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
45 * <element ref="{http://org.onap/workflow/sdnc/adapter/schema/v1}CallbackHeader"/>
46 * <element name="RequestData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
49 * </complexContent>
55 @XmlAccessorType(XmlAccessType.FIELD)
56 @XmlType(name = "", namespace="http://org.onap/workflow/sdnc/adapter/schema/v1", propOrder = {
60 @XmlRootElement(name = "SDNCAdapterCallbackRequest", namespace="http://org.onap/workflow/sdnc/adapter/schema/v1")
61 public class SDNCAdapterCallbackRequest {
63 @XmlElement(name = "CallbackHeader", required = true, namespace="http://org.onap/workflow/sdnc/adapter/schema/v1")
64 protected CallbackHeader callbackHeader;
65 @XmlElement(name = "RequestData", required=false, namespace="http://org.onap/workflow/sdnc/adapter/schema/v1")
66 protected Object requestData;
69 * Gets the value of the callbackHeader property.
73 * {@link CallbackHeader }
76 public CallbackHeader getCallbackHeader() {
77 return callbackHeader;
81 * Sets the value of the callbackHeader property.
85 * {@link CallbackHeader }
88 public void setCallbackHeader(CallbackHeader value) {
89 this.callbackHeader = value;
93 * Gets the value of the requestData property.
100 public Object getRequestData() {
105 * Sets the value of the requestData property.
112 public void setRequestData(Object value) {
113 this.requestData = value;
117 public String toString() {
118 StringWriter writer = new StringWriter();
120 JAXBContext context = JAXBContext
121 .newInstance(SDNCAdapterCallbackRequest.class);
122 Marshaller m = context.createMarshaller();
123 m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
124 m.marshal(this, writer);
125 return writer.getBuffer().toString();
126 } catch (JAXBException e) {