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