2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.mso.bpmn.common.adapter.vnf;
\r
23 import javax.xml.bind.annotation.XmlAccessType;
\r
24 import javax.xml.bind.annotation.XmlAccessorType;
\r
25 import javax.xml.bind.annotation.XmlElement;
\r
26 import javax.xml.bind.annotation.XmlType;
\r
30 * <p>Java class for deleteVnfNotification complex type.
\r
32 * <p>The following schema fragment specifies the expected content contained within this class.
\r
35 * <complexType name="deleteVnfNotification">
\r
36 * <complexContent>
\r
37 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
\r
39 * <element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
\r
40 * <element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
\r
41 * <element name="exception" type="{http://org.openecomp.mso/vnfNotify}msoExceptionCategory" minOccurs="0"/>
\r
42 * <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
\r
45 * </complexContent>
\r
51 @XmlAccessorType(XmlAccessType.FIELD)
\r
52 @XmlType(name = "deleteVnfNotification1", propOrder = {
\r
58 public class DeleteVnfNotification {
\r
60 @XmlElement(required = true)
\r
61 protected String messageId;
\r
62 protected boolean completed;
\r
63 protected MsoExceptionCategory exception;
\r
64 protected String errorMessage;
\r
67 * Gets the value of the messageId property.
\r
70 * possible object is
\r
74 public String getMessageId() {
\r
79 * Sets the value of the messageId property.
\r
86 public void setMessageId(String value) {
\r
87 this.messageId = value;
\r
91 * Gets the value of the completed property.
\r
94 public boolean isCompleted() {
\r
99 * Sets the value of the completed property.
\r
102 public void setCompleted(boolean value) {
\r
103 this.completed = value;
\r
107 * Gets the value of the exception property.
\r
110 * possible object is
\r
111 * {@link MsoExceptionCategory }
\r
114 public MsoExceptionCategory getException() {
\r
119 * Sets the value of the exception property.
\r
122 * allowed object is
\r
123 * {@link MsoExceptionCategory }
\r
126 public void setException(MsoExceptionCategory value) {
\r
127 this.exception = value;
\r
131 * Gets the value of the errorMessage property.
\r
134 * possible object is
\r
138 public String getErrorMessage() {
\r
139 return errorMessage;
\r
143 * Sets the value of the errorMessage property.
\r
146 * allowed object is
\r
150 public void setErrorMessage(String value) {
\r
151 this.errorMessage = value;
\r
155 * Overrides toString() method
\r
156 * @return String type (deleteVnfNotification)
\r
160 public String toString() {
\r
161 String deleteVnfNotification = "";
\r
162 if (exception==null) {
\r
163 deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +
\r
164 " xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
\r
165 " <messageId>"+messageId+"</messageId>" + '\n' +
\r
166 " <completed>"+completed+"</completed>" + '\n' +
\r
167 "</ns2:deleteVnfNotification>";
\r
169 deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +
\r
170 " xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
\r
171 " <messageId>"+messageId+"</messageId>" + '\n' +
\r
172 " <completed>"+completed+"</completed>" + '\n' +
\r
173 " <exception>"+exception+"</exception>" + '\n' +
\r
174 " <errorMessage>"+errorMessage+"</errorMessage>" + '\n' +
\r
175 "</ns2:deleteVnfNotification>";
\r
177 return deleteVnfNotification;
\r
181 public String toString() {
\r
182 StringWriter writer = new StringWriter();
\r
184 JAXBContext context = JAXBContext
\r
185 .newInstance(DeleteVnfNotification.class);
\r
186 Marshaller m = context.createMarshaller();
\r
187 m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
\r
188 m.marshal(this, writer);
\r
189 //System.out.println("toString() - " + writer.getBuffer().toString());
\r
190 return writer.getBuffer().toString();
\r
191 } catch (JAXBException e) {
\r
192 //System.out.println("JAXBException - " + e.getStackTrace());
\r