Replaced all tabs with spaces in java and pom.xml
[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 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>
43  * Java class for exceptionType complex type.
44  * 
45  * <p>
46  * 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 = {"messageId", "text", "variables"})
66 @XmlSeeAlso({ServiceException.class, PolicyException.class})
67 public class ExceptionType {
68
69     @XmlElement(required = true)
70     protected String messageId;
71     @XmlElement(required = true)
72     protected String text;
73     protected List<String> variables;
74
75     /**
76      * Gets the value of the messageId property.
77      * 
78      * @return possible object is {@link String }
79      * 
80      */
81     public String getMessageId() {
82         return messageId;
83     }
84
85     /**
86      * Sets the value of the messageId property.
87      * 
88      * @param value allowed object is {@link String }
89      * 
90      */
91     public void setMessageId(String value) {
92         this.messageId = value;
93     }
94
95     /**
96      * Gets the value of the text property.
97      * 
98      * @return possible object is {@link String }
99      * 
100      */
101     public String getText() {
102         return text;
103     }
104
105     /**
106      * Sets the value of the text property.
107      * 
108      * @param value allowed object is {@link String }
109      * 
110      */
111     public void setText(String value) {
112         this.text = value;
113     }
114
115     /**
116      * Gets the value of the variables property.
117      * 
118      * <p>
119      * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to
120      * the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for
121      * the variables property.
122      * 
123      * <p>
124      * For example, to add a new item, do as follows:
125      * 
126      * <pre>
127      * getVariables().add(newItem);
128      * </pre>
129      * 
130      * 
131      * <p>
132      * Objects of the following type(s) are allowed in the list {@link String }
133      * 
134      * 
135      */
136     public List<String> getVariables() {
137         if (variables == null) {
138             variables = new ArrayList<>();
139         }
140         return this.variables;
141     }
142
143     public void setVariables(List<String> variables) {
144         this.variables = variables;
145     }
146
147     @Override
148     public String toString() {
149         return new ToStringBuilder(this).append("messageId", messageId).append("text", text)
150                 .append("variables", variables).toString();
151     }
152 }