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.openecomp.mso.bpmn.common.adapter.vnf;
23 import java.util.ArrayList;
24 import java.util.List;
26 import javax.xml.bind.annotation.XmlAccessType;
27 import javax.xml.bind.annotation.XmlAccessorType;
28 import javax.xml.bind.annotation.XmlElement;
29 import javax.xml.bind.annotation.XmlType;
33 * <p>Java class for queryVnfNotification complex type.
35 * <p>The following schema fragment specifies the expected content contained within this class.
38 * <complexType name="queryVnfNotification">
40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 * <element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
43 * <element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
44 * <element name="exception" type="{http://org.openecomp.mso/vnfNotify}msoExceptionCategory" minOccurs="0"/>
45 * <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
46 * <element name="vnfExists" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
47 * <element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
48 * <element name="status" type="{http://org.openecomp.mso/vnfNotify}vnfStatus" minOccurs="0"/>
49 * <element name="outputs" minOccurs="0">
52 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
54 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
57 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
59 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
60 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
63 * </complexContent>
68 * </complexContent>
73 * </complexContent>
79 @XmlAccessorType(XmlAccessType.FIELD)
80 @XmlType(name = "queryVnfNotification1", propOrder = {
90 public class QueryVnfNotification {
92 @XmlElement(required = true)
93 protected String messageId;
94 protected boolean completed;
95 protected MsoExceptionCategory exception;
96 protected String errorMessage;
97 protected Boolean vnfExists;
98 protected String vnfId;
99 protected VnfStatus status;
100 protected QueryVnfNotification.Outputs outputs;
103 * Gets the value of the messageId property.
110 public String getMessageId() {
115 * Sets the value of the messageId property.
122 public void setMessageId(String value) {
123 this.messageId = value;
127 * Gets the value of the completed property.
130 public boolean isCompleted() {
135 * Sets the value of the completed property.
138 public void setCompleted(boolean value) {
139 this.completed = value;
143 * Gets the value of the exception property.
147 * {@link MsoExceptionCategory }
150 public MsoExceptionCategory getException() {
155 * Sets the value of the exception property.
159 * {@link MsoExceptionCategory }
162 public void setException(MsoExceptionCategory value) {
163 this.exception = value;
167 * Gets the value of the errorMessage property.
174 public String getErrorMessage() {
179 * Sets the value of the errorMessage property.
186 public void setErrorMessage(String value) {
187 this.errorMessage = value;
191 * Gets the value of the vnfExists property.
198 public Boolean isVnfExists() {
203 * Sets the value of the vnfExists property.
210 public void setVnfExists(Boolean value) {
211 this.vnfExists = value;
215 * Gets the value of the vnfId property.
222 public String getVnfId() {
227 * Sets the value of the vnfId property.
234 public void setVnfId(String value) {
239 * Gets the value of the status property.
246 public VnfStatus getStatus() {
251 * Sets the value of the status property.
258 public void setStatus(VnfStatus value) {
263 * Gets the value of the outputs property.
267 * {@link QueryVnfNotification.Outputs }
270 public QueryVnfNotification.Outputs getOutputs() {
275 * Sets the value of the outputs property.
279 * {@link QueryVnfNotification.Outputs }
282 public void setOutputs(QueryVnfNotification.Outputs value) {
283 this.outputs = value;
288 * <p>Java class for anonymous complex type.
290 * <p>The following schema fragment specifies the expected content contained within this class.
294 * <complexContent>
295 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
297 * <element name="entry" maxOccurs="unbounded" minOccurs="0">
299 * <complexContent>
300 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
302 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
303 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
306 * </complexContent>
311 * </complexContent>
317 @XmlAccessorType(XmlAccessType.FIELD)
318 @XmlType(name = "", propOrder = {
321 public static class Outputs {
323 protected List<QueryVnfNotification.Outputs.Entry> entry;
326 * Gets the value of the entry property.
329 * This accessor method returns a reference to the live list,
330 * not a snapshot. Therefore any modification you make to the
331 * returned list will be present inside the JAXB object.
332 * This is why there is not a <CODE>set</CODE> method for the entry property.
335 * For example, to add a new item, do as follows:
337 * getEntry().add(newItem);
342 * Objects of the following type(s) are allowed in the list
343 * {@link QueryVnfNotification.Outputs.Entry }
347 public List<QueryVnfNotification.Outputs.Entry> getEntry() {
349 entry = new ArrayList<QueryVnfNotification.Outputs.Entry>();
354 // Not a generated method
355 public String toString() {
356 StringBuilder out = new StringBuilder();
357 out.append("<outputs>\n");
359 for (Entry e : entry) {
360 out.append(e.toString());
364 out.append("</outputs>");
365 return out.toString();
370 * <p>Java class for anonymous complex type.
372 * <p>The following schema fragment specifies the expected content contained within this class.
376 * <complexContent>
377 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
379 * <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
380 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
383 * </complexContent>
389 @XmlAccessorType(XmlAccessType.FIELD)
390 @XmlType(name = "", propOrder = {
394 public static class Entry {
396 protected String key;
397 protected String value;
400 * Gets the value of the key property.
407 public String getKey() {
412 * Sets the value of the key property.
419 public void setKey(String value) {
424 * Gets the value of the value property.
431 public String getValue() {
436 * Sets the value of the value property.
443 public void setValue(String value) {
447 // Not a generated method
448 public String toString() {
452 " <key>"+key+"</key>" + '\n' +
453 " <value>"+value+"</value>" + '\n' +
462 // Not a generated method
463 public String toString() {
464 String queryVnfNotification = "";
465 if (exception==null) {
466 queryVnfNotification = "<ns2:queryVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +
467 " xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
468 " <messageId>"+messageId+"</messageId>" + '\n' +
469 " <completed>"+completed+"</completed>" + '\n' +
470 " <vnfExists>"+vnfExists+"</vnfExists>" + '\n' +
471 " <vnfId>"+vnfId+"</vnfId>" + '\n' +
472 " <status>"+status+"</status>" + '\n' +
473 (outputs == null ? "" : outputs.toString() + '\n') +
474 "</ns2:queryVnfNotification>";
476 queryVnfNotification = "<ns2:queryVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +
477 " xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
478 " <messageId>"+messageId+"</messageId>" + '\n' +
479 " <completed>"+completed+"</completed>" + '\n' +
480 (outputs == null ? "" : outputs.toString() + '\n') +
481 " <exception>"+exception+"</exception>" + '\n' +
482 " <errorMessage>"+errorMessage+"</errorMessage>" + '\n' +
483 "</ns2:queryVnfNotification>";
485 return queryVnfNotification;