Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / mso-infrastructure-bpmn / src / main / java / org / onap / so / bpmn / common / adapter / vnf / DeleteVnfNotification.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.so.bpmn.common.adapter.vnf;
22
23 import javax.xml.bind.annotation.XmlAccessType;
24 import javax.xml.bind.annotation.XmlAccessorType;
25 import javax.xml.bind.annotation.XmlElement;
26 import javax.xml.bind.annotation.XmlType;
27
28
29 /**
30  * <p>
31  * Java class for deleteVnfNotification complex type.
32  * 
33  * <p>
34  * The following schema fragment specifies the expected content contained within this class.
35  * 
36  * <pre>
37  * &lt;complexType name="deleteVnfNotification">
38  *   &lt;complexContent>
39  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
40  *       &lt;sequence>
41  *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
42  *         &lt;element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
43  *         &lt;element name="exception" type="{http://org.onap.so/vnfNotify}msoExceptionCategory" minOccurs="0"/>
44  *         &lt;element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
45  *       &lt;/sequence>
46  *     &lt;/restriction>
47  *   &lt;/complexContent>
48  * &lt;/complexType>
49  * </pre>
50  * 
51  * 
52  */
53 @XmlAccessorType(XmlAccessType.FIELD)
54 @XmlType(name = "deleteVnfNotification1", propOrder = {"messageId", "completed", "exception", "errorMessage"})
55 public class DeleteVnfNotification {
56
57     @XmlElement(required = true)
58     protected String messageId;
59     protected boolean completed;
60     protected MsoExceptionCategory exception;
61     protected String errorMessage;
62
63     /**
64      * Gets the value of the messageId property.
65      * 
66      * @return possible object is {@link String }
67      * 
68      */
69     public String getMessageId() {
70         return messageId;
71     }
72
73     /**
74      * Sets the value of the messageId property.
75      * 
76      * @param value allowed object is {@link String }
77      * 
78      */
79     public void setMessageId(String value) {
80         this.messageId = value;
81     }
82
83     /**
84      * Gets the value of the completed property.
85      * 
86      */
87     public boolean isCompleted() {
88         return completed;
89     }
90
91     /**
92      * Sets the value of the completed property.
93      * 
94      */
95     public void setCompleted(boolean value) {
96         this.completed = value;
97     }
98
99     /**
100      * Gets the value of the exception property.
101      * 
102      * @return possible object is {@link MsoExceptionCategory }
103      * 
104      */
105     public MsoExceptionCategory getException() {
106         return exception;
107     }
108
109     /**
110      * Sets the value of the exception property.
111      * 
112      * @param value allowed object is {@link MsoExceptionCategory }
113      * 
114      */
115     public void setException(MsoExceptionCategory value) {
116         this.exception = value;
117     }
118
119     /**
120      * Gets the value of the errorMessage property.
121      * 
122      * @return possible object is {@link String }
123      * 
124      */
125     public String getErrorMessage() {
126         return errorMessage;
127     }
128
129     /**
130      * Sets the value of the errorMessage property.
131      * 
132      * @param value allowed object is {@link String }
133      * 
134      */
135     public void setErrorMessage(String value) {
136         this.errorMessage = value;
137     }
138
139     /**
140      * Overrides toString() method
141      * 
142      * @return String type (deleteVnfNotification)
143      */
144
145     @Override
146     public String toString() {
147         String deleteVnfNotification;
148         if (exception == null) {
149             deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.onap.so/vnfNotify\"" + '\n'
150                     + "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' + "   <messageId>"
151                     + messageId + "</messageId>" + '\n' + "   <completed>" + completed + "</completed>" + '\n'
152                     + "</ns2:deleteVnfNotification>";
153         } else {
154             deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.onap.so/vnfNotify\"" + '\n'
155                     + "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' + "   <messageId>"
156                     + messageId + "</messageId>" + '\n' + "   <completed>" + completed + "</completed>" + '\n'
157                     + "   <exception>" + exception + "</exception>" + '\n' + "   <errorMessage>" + errorMessage
158                     + "</errorMessage>" + '\n' + "</ns2:deleteVnfNotification>";
159         }
160         return deleteVnfNotification;
161     }
162
163     /*
164      * public String toString() { StringWriter writer = new StringWriter(); try { JAXBContext context = JAXBContext
165      * .newInstance(DeleteVnfNotification.class); Marshaller m = context.createMarshaller();
166      * m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); m.marshal(this, writer);
167      * //System.out.println("toString() - " + writer.getBuffer().toString()); return writer.getBuffer().toString(); }
168      * catch (JAXBException e) { //System.out.println("JAXBException - " + e.getStackTrace()); return ""; } }
169      */
170
171 }