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