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