[MSO-8] Second step of the rebase for MSO
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / bpmn / common / adapter / vnf / DeleteVnfNotification.java
index b408184..0cbb988 100644 (file)
-/*-
- * ============LICENSE_START=======================================================
- * OPENECOMP - MSO
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-
-package org.openecomp.mso.bpmn.common.adapter.vnf;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * <p>Java class for deleteVnfNotification complex type.
- * 
- * <p>The following schema fragment specifies the expected content contained within this class.
- * 
- * <pre>
- * &lt;complexType name="deleteVnfNotification">
- *   &lt;complexContent>
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       &lt;sequence>
- *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         &lt;element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         &lt;element name="exception" type="{http://org.openecomp.mso/vnfNotify}msoExceptionCategory" minOccurs="0"/>
- *         &lt;element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *       &lt;/sequence>
- *     &lt;/restriction>
- *   &lt;/complexContent>
- * &lt;/complexType>
- * </pre>
- * 
- * 
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "deleteVnfNotification1", propOrder = {
-    "messageId",
-    "completed",
-    "exception",
-    "errorMessage"
-})
-public class DeleteVnfNotification {
-
-    @XmlElement(required = true)
-    protected String messageId;
-    protected boolean completed;
-    protected MsoExceptionCategory exception;
-    protected String errorMessage;
-
-    /**
-     * Gets the value of the messageId property.
-     * 
-     * @return
-     *     possible object is
-     *     {@link String }
-     *     
-     */
-    public String getMessageId() {
-        return messageId;
-    }
-
-    /**
-     * Sets the value of the messageId property.
-     * 
-     * @param value
-     *     allowed object is
-     *     {@link String }
-     *     
-     */
-    public void setMessageId(String value) {
-        this.messageId = value;
-    }
-
-    /**
-     * Gets the value of the completed property.
-     * 
-     */
-    public boolean isCompleted() {
-        return completed;
-    }
-
-    /**
-     * Sets the value of the completed property.
-     * 
-     */
-    public void setCompleted(boolean value) {
-        this.completed = value;
-    }
-
-    /**
-     * Gets the value of the exception property.
-     * 
-     * @return
-     *     possible object is
-     *     {@link MsoExceptionCategory }
-     *     
-     */
-    public MsoExceptionCategory getException() {
-        return exception;
-    }
-
-    /**
-     * Sets the value of the exception property.
-     * 
-     * @param value
-     *     allowed object is
-     *     {@link MsoExceptionCategory }
-     *     
-     */
-    public void setException(MsoExceptionCategory value) {
-        this.exception = value;
-    }
-
-    /**
-     * Gets the value of the errorMessage property.
-     * 
-     * @return
-     *     possible object is
-     *     {@link String }
-     *     
-     */
-    public String getErrorMessage() {
-        return errorMessage;
-    }
-
-    /**
-     * Sets the value of the errorMessage property.
-     * 
-     * @param value
-     *     allowed object is
-     *     {@link String }
-     *     
-     */
-    public void setErrorMessage(String value) {
-        this.errorMessage = value;
-    }
-
-    /**
-     * Overrides toString() method 
-     * @return String type (deleteVnfNotification)
-     */
-    
-       public String toString() {
-       String deleteVnfNotification = "";
-       if (exception==null) {
-               deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +
-                                      "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
-                                      "   <messageId>"+messageId+"</messageId>" + '\n' +
-                                      "   <completed>"+completed+"</completed>" + '\n' +
-                                      "</ns2:deleteVnfNotification>";
-       } else {
-               deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +
-                                      "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +
-                                      "   <messageId>"+messageId+"</messageId>" + '\n' +
-                                      "   <completed>"+completed+"</completed>" + '\n' +
-                                  "   <exception>"+exception+"</exception>" + '\n' +
-                                  "   <errorMessage>"+errorMessage+"</errorMessage>" + '\n' +
-                                      "</ns2:deleteVnfNotification>";
-       }
-       return deleteVnfNotification;
-       }    
-
-/*     
-       public String toString() {
-               StringWriter writer = new StringWriter();
-               try {
-                       JAXBContext context = JAXBContext
-                                       .newInstance(DeleteVnfNotification.class);
-                       Marshaller m = context.createMarshaller();
-                       m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
-                       m.marshal(this, writer);
-                       //System.out.println("toString() - " + writer.getBuffer().toString());                  
-                       return writer.getBuffer().toString();
-               } catch (JAXBException e) {
-                       //System.out.println("JAXBException - " + e.getStackTrace());                   
-                       return "";
-               }
-       }    
-*/     
-       
-}
+/*-\r
+ * ============LICENSE_START=======================================================\r
+ * OPENECOMP - MSO\r
+ * ================================================================================\r
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * ================================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ *      http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END=========================================================\r
+ */\r
+\r
+package org.openecomp.mso.bpmn.common.adapter.vnf;\r
+\r
+import javax.xml.bind.annotation.XmlAccessType;\r
+import javax.xml.bind.annotation.XmlAccessorType;\r
+import javax.xml.bind.annotation.XmlElement;\r
+import javax.xml.bind.annotation.XmlType;\r
+\r
+\r
+/**\r
+ * <p>Java class for deleteVnfNotification complex type.\r
+ * \r
+ * <p>The following schema fragment specifies the expected content contained within this class.\r
+ * \r
+ * <pre>\r
+ * &lt;complexType name="deleteVnfNotification">\r
+ *   &lt;complexContent>\r
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">\r
+ *       &lt;sequence>\r
+ *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>\r
+ *         &lt;element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>\r
+ *         &lt;element name="exception" type="{http://org.openecomp.mso/vnfNotify}msoExceptionCategory" minOccurs="0"/>\r
+ *         &lt;element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>\r
+ *       &lt;/sequence>\r
+ *     &lt;/restriction>\r
+ *   &lt;/complexContent>\r
+ * &lt;/complexType>\r
+ * </pre>\r
+ * \r
+ * \r
+ */\r
+@XmlAccessorType(XmlAccessType.FIELD)\r
+@XmlType(name = "deleteVnfNotification1", propOrder = {\r
+    "messageId",\r
+    "completed",\r
+    "exception",\r
+    "errorMessage"\r
+})\r
+public class DeleteVnfNotification {\r
+\r
+    @XmlElement(required = true)\r
+    protected String messageId;\r
+    protected boolean completed;\r
+    protected MsoExceptionCategory exception;\r
+    protected String errorMessage;\r
+\r
+    /**\r
+     * Gets the value of the messageId property.\r
+     * \r
+     * @return\r
+     *     possible object is\r
+     *     {@link String }\r
+     *     \r
+     */\r
+    public String getMessageId() {\r
+        return messageId;\r
+    }\r
+\r
+    /**\r
+     * Sets the value of the messageId property.\r
+     * \r
+     * @param value\r
+     *     allowed object is\r
+     *     {@link String }\r
+     *     \r
+     */\r
+    public void setMessageId(String value) {\r
+        this.messageId = value;\r
+    }\r
+\r
+    /**\r
+     * Gets the value of the completed property.\r
+     * \r
+     */\r
+    public boolean isCompleted() {\r
+        return completed;\r
+    }\r
+\r
+    /**\r
+     * Sets the value of the completed property.\r
+     * \r
+     */\r
+    public void setCompleted(boolean value) {\r
+        this.completed = value;\r
+    }\r
+\r
+    /**\r
+     * Gets the value of the exception property.\r
+     * \r
+     * @return\r
+     *     possible object is\r
+     *     {@link MsoExceptionCategory }\r
+     *     \r
+     */\r
+    public MsoExceptionCategory getException() {\r
+        return exception;\r
+    }\r
+\r
+    /**\r
+     * Sets the value of the exception property.\r
+     * \r
+     * @param value\r
+     *     allowed object is\r
+     *     {@link MsoExceptionCategory }\r
+     *     \r
+     */\r
+    public void setException(MsoExceptionCategory value) {\r
+        this.exception = value;\r
+    }\r
+\r
+    /**\r
+     * Gets the value of the errorMessage property.\r
+     * \r
+     * @return\r
+     *     possible object is\r
+     *     {@link String }\r
+     *     \r
+     */\r
+    public String getErrorMessage() {\r
+        return errorMessage;\r
+    }\r
+\r
+    /**\r
+     * Sets the value of the errorMessage property.\r
+     * \r
+     * @param value\r
+     *     allowed object is\r
+     *     {@link String }\r
+     *     \r
+     */\r
+    public void setErrorMessage(String value) {\r
+        this.errorMessage = value;\r
+    }\r
+\r
+    /**\r
+     * Overrides toString() method \r
+     * @return String type (deleteVnfNotification)\r
+     */\r
\r
+    \r
+       public String toString() {\r
+       String deleteVnfNotification = "";\r
+       if (exception==null) {\r
+               deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +\r
+                                      "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +\r
+                                      "   <messageId>"+messageId+"</messageId>" + '\n' +\r
+                                      "   <completed>"+completed+"</completed>" + '\n' +\r
+                                      "</ns2:deleteVnfNotification>";\r
+       } else {\r
+               deleteVnfNotification = "<ns2:deleteVnfNotification xmlns:ns2=\"http://org.openecomp.mso/vnfNotify\"" + '\n' +\r
+                                      "  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + '\n' +\r
+                                      "   <messageId>"+messageId+"</messageId>" + '\n' +\r
+                                      "   <completed>"+completed+"</completed>" + '\n' +\r
+                                  "   <exception>"+exception+"</exception>" + '\n' +\r
+                                  "   <errorMessage>"+errorMessage+"</errorMessage>" + '\n' +\r
+                                      "</ns2:deleteVnfNotification>";\r
+       }\r
+       return deleteVnfNotification;\r
+       }    \r
+\r
+/*     \r
+       public String toString() {\r
+               StringWriter writer = new StringWriter();\r
+               try {\r
+                       JAXBContext context = JAXBContext\r
+                                       .newInstance(DeleteVnfNotification.class);\r
+                       Marshaller m = context.createMarshaller();\r
+                       m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\r
+                       m.marshal(this, writer);\r
+                       //System.out.println("toString() - " + writer.getBuffer().toString());                  \r
+                       return writer.getBuffer().toString();\r
+               } catch (JAXBException e) {\r
+                       //System.out.println("JAXBException - " + e.getStackTrace());                   \r
+                       return "";\r
+               }\r
+       }    \r
+*/     \r
+       \r
+}\r