Update the license for 2017-2018 license
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / introspection / tools / Issue.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 package org.onap.aai.introspection.tools;
21
22 import org.onap.aai.introspection.Introspector;
23
24 public class Issue {
25
26         private Severity severity;
27         private IssueType error;
28         private String detail;
29         private Introspector obj;
30         private String propName;
31         private boolean resolved = false;
32         
33         /**
34          * Sets the severity.
35          *
36          * @param severity the new severity
37          */
38         public void setSeverity(Severity severity) {
39
40                 this.severity = severity;
41         }
42
43         /**
44          * Sets the error.
45          *
46          * @param error the new error
47          */
48         public void setType(IssueType error) {
49                 this.error = error;
50         }
51
52         /**
53          * Sets the detail.
54          *
55          * @param detail the new detail
56          */
57         public void setDetail(String detail) {
58                 this.detail = detail;
59         }
60
61         /**
62          * Gets the severity.
63          *
64          * @return the severity
65          */
66         public Object getSeverity() {
67                 return this.severity;
68         }
69         
70         /**
71          * Sets the introspector.
72          *
73          * @param obj the new introspector
74          */
75         public void setIntrospector(Introspector obj) {
76                 this.obj = obj;
77         }
78         
79         /**
80          * Gets the introspector.
81          *
82          * @return the introspector
83          */
84         public Introspector getIntrospector() {
85                 return this.obj;
86         }
87
88         /**
89          * Gets the detail.
90          *
91          * @return the detail
92          */
93         public String getDetail() {
94                 return this.detail;
95         }
96         
97         /**
98          * Gets the error.
99          *
100          * @return the error
101          */
102         public IssueType getType() {
103                 return this.error;
104         }
105
106         /**
107          * Sets the prop name.
108          *
109          * @param prop the new prop name
110          */
111         public void setPropName(String prop) {
112                 this.propName= prop;
113         }
114         
115         /**
116          * Gets the prop name.
117          *
118          * @return the prop name
119          */
120         public String getPropName() {
121                 return this.propName;
122         }
123
124         /**
125          * Checks if is resolved.
126          *
127          * @return true, if is resolved
128          */
129         public boolean isResolved() {
130                 return resolved;
131         }
132
133         /**
134          * Sets the resolved.
135          *
136          * @param resolved the new resolved
137          */
138         public void setResolved(boolean resolved) {
139                 this.resolved = resolved;
140         }
141         
142         
143 }