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