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