AAI-common sonar fixes
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / domain / restServiceException / Fault.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 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 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
22 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
23 // Any modifications to this file will be lost upon recompilation of the source schema. 
24 // Generated on: 2015.02.11 at 04:54:29 PM EST 
25 //
26
27 package org.onap.aai.domain.restServiceException;
28
29 import java.util.ArrayList;
30 import java.util.List;
31
32 import javax.xml.bind.annotation.XmlAccessType;
33 import javax.xml.bind.annotation.XmlAccessorType;
34 import javax.xml.bind.annotation.XmlElement;
35 import javax.xml.bind.annotation.XmlRootElement;
36 import javax.xml.bind.annotation.XmlType;
37
38 /**
39  * <p>
40  * Java class for anonymous complex type.
41  * 
42  * <p>
43  * The following schema fragment specifies the expected content contained within this class.
44  * 
45  * <pre>
46  * &lt;complexType>
47  *   &lt;complexContent>
48  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
49  *       &lt;sequence>
50  *         &lt;element name="requestError">
51  *           &lt;complexType>
52  *             &lt;complexContent>
53  *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
54  *                 &lt;sequence>
55  *                   &lt;element name="serviceException">
56  *                     &lt;complexType>
57  *                       &lt;complexContent>
58  *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
59  *                           &lt;sequence>
60  *                             &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
61  *                             &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
62  *                             &lt;element name="variables">
63  *                               &lt;complexType>
64  *                                 &lt;complexContent>
65  *                                   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
66  *                                     &lt;sequence>
67  *                                       &lt;element name="variable" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
68  *                                     &lt;/sequence>
69  *                                   &lt;/restriction>
70  *                                 &lt;/complexContent>
71  *                               &lt;/complexType>
72  *                             &lt;/element>
73  *                           &lt;/sequence>
74  *                         &lt;/restriction>
75  *                       &lt;/complexContent>
76  *                     &lt;/complexType>
77  *                   &lt;/element>
78  *                 &lt;/sequence>
79  *               &lt;/restriction>
80  *             &lt;/complexContent>
81  *           &lt;/complexType>
82  *         &lt;/element>
83  *       &lt;/sequence>
84  *     &lt;/restriction>
85  *   &lt;/complexContent>
86  * &lt;/complexType>
87  * </pre>
88  * 
89  * 
90  */
91 @XmlAccessorType(XmlAccessType.FIELD)
92 @XmlType(name = "", propOrder = {"requestError"})
93 @XmlRootElement(name = "Fault")
94 public class Fault {
95
96     @XmlElement(required = true)
97     protected RequestError requestError;
98
99     /**
100      * Gets the value of the requestError property.
101      * 
102      * @return
103      *         possible object is
104      *         {@link RequestError }
105      * 
106      */
107     public RequestError getRequestError() {
108         return requestError;
109     }
110
111     /**
112      * Sets the value of the requestError property.
113      * 
114      * @param value
115      *        allowed object is
116      *        {@link RequestError }
117      * 
118      */
119     public void setRequestError(RequestError value) {
120         this.requestError = value;
121     }
122
123     /**
124      * <p>
125      * Java class for anonymous complex type.
126      * 
127      * <p>
128      * The following schema fragment specifies the expected content contained within this class.
129      * 
130      * <pre>
131      * &lt;complexType>
132      *   &lt;complexContent>
133      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
134      *       &lt;sequence>
135      *         &lt;element name="serviceException">
136      *           &lt;complexType>
137      *             &lt;complexContent>
138      *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
139      *                 &lt;sequence>
140      *                   &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
141      *                   &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
142      *                   &lt;element name="variables">
143      *                     &lt;complexType>
144      *                       &lt;complexContent>
145      *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
146      *                           &lt;sequence>
147      *                             &lt;element name="variable" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
148      *                           &lt;/sequence>
149      *                         &lt;/restriction>
150      *                       &lt;/complexContent>
151      *                     &lt;/complexType>
152      *                   &lt;/element>
153      *                 &lt;/sequence>
154      *               &lt;/restriction>
155      *             &lt;/complexContent>
156      *           &lt;/complexType>
157      *         &lt;/element>
158      *       &lt;/sequence>
159      *     &lt;/restriction>
160      *   &lt;/complexContent>
161      * &lt;/complexType>
162      * </pre>
163      * 
164      * 
165      */
166     @XmlAccessorType(XmlAccessType.FIELD)
167     @XmlType(name = "", propOrder = {"serviceException"})
168     public static class RequestError {
169
170         @XmlElement(required = true)
171         protected ServiceException serviceException;
172
173         /**
174          * Gets the value of the serviceException property.
175          * 
176          * @return
177          *         possible object is
178          *         {@link ServiceException }
179          * 
180          */
181         public ServiceException getServiceException() {
182             return serviceException;
183         }
184
185         /**
186          * Sets the value of the serviceException property.
187          * 
188          * @param value
189          *        allowed object is
190          *        {@link ServiceException }
191          * 
192          */
193         public void setServiceException(ServiceException value) {
194             this.serviceException = value;
195         }
196
197         /**
198          * <p>
199          * Java class for anonymous complex type.
200          * 
201          * <p>
202          * The following schema fragment specifies the expected content contained within this class.
203          * 
204          * <pre>
205          * &lt;complexType>
206          *   &lt;complexContent>
207          *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
208          *       &lt;sequence>
209          *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
210          *         &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
211          *         &lt;element name="variables">
212          *           &lt;complexType>
213          *             &lt;complexContent>
214          *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
215          *                 &lt;sequence>
216          *                   &lt;element name="variable" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
217          *                 &lt;/sequence>
218          *               &lt;/restriction>
219          *             &lt;/complexContent>
220          *           &lt;/complexType>
221          *         &lt;/element>
222          *       &lt;/sequence>
223          *     &lt;/restriction>
224          *   &lt;/complexContent>
225          * &lt;/complexType>
226          * </pre>
227          * 
228          * 
229          */
230         @XmlAccessorType(XmlAccessType.FIELD)
231         @XmlType(name = "", propOrder = {"messageId", "text", "variables"})
232         public static class ServiceException {
233
234             @XmlElement(required = true)
235             protected String messageId;
236             @XmlElement(required = true)
237             protected String text;
238             @XmlElement(required = true)
239             protected Variables variables;
240
241             /**
242              * Gets the value of the messageId property.
243              * 
244              * @return
245              *         possible object is
246              *         {@link String }
247              * 
248              */
249             public String getMessageId() {
250                 return messageId;
251             }
252
253             /**
254              * Sets the value of the messageId property.
255              * 
256              * @param value
257              *        allowed object is
258              *        {@link String }
259              * 
260              */
261             public void setMessageId(String value) {
262                 this.messageId = value;
263             }
264
265             /**
266              * Gets the value of the text property.
267              * 
268              * @return
269              *         possible object is
270              *         {@link String }
271              * 
272              */
273             public String getText() {
274                 return text;
275             }
276
277             /**
278              * Sets the value of the text property.
279              * 
280              * @param value
281              *        allowed object is
282              *        {@link String }
283              * 
284              */
285             public void setText(String value) {
286                 this.text = value;
287             }
288
289             /**
290              * Gets the value of the variables property.
291              * 
292              * @return
293              *         possible object is
294              *         {@link Variables }
295              * 
296              */
297             public Variables getVariables() {
298                 return variables;
299             }
300
301             /**
302              * Sets the value of the variables property.
303              * 
304              * @param value
305              *        allowed object is
306              *        {@link Variables }
307              * 
308              */
309             public void setVariables(Variables value) {
310                 this.variables = value;
311             }
312
313             /**
314              * <p>
315              * Java class for anonymous complex type.
316              * 
317              * <p>
318              * The following schema fragment specifies the expected content contained within this class.
319              * 
320              * <pre>
321              * &lt;complexType>
322              *   &lt;complexContent>
323              *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
324              *       &lt;sequence>
325              *         &lt;element name="variable" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
326              *       &lt;/sequence>
327              *     &lt;/restriction>
328              *   &lt;/complexContent>
329              * &lt;/complexType>
330              * </pre>
331              * 
332              * 
333              */
334             @XmlAccessorType(XmlAccessType.FIELD)
335             @XmlType(name = "", propOrder = {"variable"})
336             public static class Variables {
337
338                 protected List<String> variable;
339
340                 /**
341                  * Gets the value of the variable property.
342                  * 
343                  * <p>
344                  * This accessor method returns a reference to the live list,
345                  * not a snapshot. Therefore any modification you make to the
346                  * returned list will be present inside the JAXB object.
347                  * This is why there is not a <CODE>set</CODE> method for the variable property.
348                  * 
349                  * <p>
350                  * For example, to add a new item, do as follows:
351                  * 
352                  * <pre>
353                  * getVariable().add(newItem);
354                  * </pre>
355                  * 
356                  * 
357                  * <p>
358                  * Objects of the following type(s) are allowed in the list
359                  * {@link String }
360                  *
361                  * @return the variable
362                  */
363                 public List<String> getVariable() {
364                     if (variable == null) {
365                         variable = new ArrayList<String>();
366                     }
367                     return this.variable;
368                 }
369
370             }
371
372         }
373
374     }
375
376 }