Containerization feature of SO
[so.git] / common / src / main / java / org / onap / so / serviceinstancebeans / ExceptionType.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 //
22 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
23 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
24 // Any modifications to this file will be lost upon recompilation of the source schema. 
25 // Generated on: 2016.05.03 at 03:56:30 PM CDT 
26 //
27
28
29 package org.onap.so.serviceinstancebeans;
30
31 import java.util.ArrayList;
32 import java.util.List;
33
34 import javax.xml.bind.annotation.XmlAccessType;
35 import javax.xml.bind.annotation.XmlAccessorType;
36 import javax.xml.bind.annotation.XmlElement;
37 import javax.xml.bind.annotation.XmlSeeAlso;
38 import javax.xml.bind.annotation.XmlType;
39
40 import org.apache.commons.lang3.builder.ToStringBuilder;
41
42
43 /**
44  * <p>Java class for exceptionType complex type.
45  * 
46  * <p>The following schema fragment specifies the expected content contained within this class.
47  * 
48  * <pre>
49  * &lt;complexType name="exceptionType">
50  *   &lt;complexContent>
51  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
52  *       &lt;sequence>
53  *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
54  *         &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
55  *         &lt;element name="variables" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="50" minOccurs="0"/>
56  *       &lt;/sequence>
57  *     &lt;/restriction>
58  *   &lt;/complexContent>
59  * &lt;/complexType>
60  * </pre>
61  * 
62  * 
63  */
64 @XmlAccessorType(XmlAccessType.FIELD)
65 @XmlType(name = "exceptionType", propOrder = {
66     "messageId",
67     "text",
68     "variables"
69 })
70 @XmlSeeAlso({
71     ServiceException.class,
72     PolicyException.class
73 })
74 public class ExceptionType {
75
76     @XmlElement(required = true)
77     protected String messageId;
78     @XmlElement(required = true)
79     protected String text;
80     protected List<String> variables;
81
82     /**
83      * Gets the value of the messageId property.
84      * 
85      * @return
86      *     possible object is
87      *     {@link String }
88      *     
89      */
90     public String getMessageId() {
91         return messageId;
92     }
93
94     /**
95      * Sets the value of the messageId property.
96      * 
97      * @param value
98      *     allowed object is
99      *     {@link String }
100      *     
101      */
102     public void setMessageId(String value) {
103         this.messageId = value;
104     }
105
106     /**
107      * Gets the value of the text property.
108      * 
109      * @return
110      *     possible object is
111      *     {@link String }
112      *     
113      */
114     public String getText() {
115         return text;
116     }
117
118     /**
119      * Sets the value of the text property.
120      * 
121      * @param value
122      *     allowed object is
123      *     {@link String }
124      *     
125      */
126     public void setText(String value) {
127         this.text = value;
128     }
129
130     /**
131      * Gets the value of the variables property.
132      * 
133      * <p>
134      * This accessor method returns a reference to the live list,
135      * not a snapshot. Therefore any modification you make to the
136      * returned list will be present inside the JAXB object.
137      * This is why there is not a <CODE>set</CODE> method for the variables property.
138      * 
139      * <p>
140      * For example, to add a new item, do as follows:
141      * <pre>
142      *    getVariables().add(newItem);
143      * </pre>
144      * 
145      * 
146      * <p>
147      * Objects of the following type(s) are allowed in the list
148      * {@link String }
149      * 
150      * 
151      */
152     public List<String> getVariables() {
153         if (variables == null) {
154             variables = new ArrayList<>();
155         }
156         return this.variables;
157     }
158
159         public void setVariables(List<String> variables) {
160                 this.variables = variables;
161         }
162
163         @Override
164         public String toString() {
165                 return new ToStringBuilder(this).append("messageId", messageId).append("text", text)
166                                 .append("variables", variables).toString();
167         }
168 }