1 | |
package org.apache.maven.plugin.issues; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
import java.util.ArrayList; |
23 | |
import java.util.Date; |
24 | |
import java.util.List; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
public class Issue |
34 | |
{ |
35 | |
private String assignee; |
36 | |
|
37 | |
private List<String> comments; |
38 | |
|
39 | |
private List<String> components; |
40 | |
|
41 | |
private Date created; |
42 | |
|
43 | |
private List<String> fixVersions; |
44 | |
|
45 | |
private String id; |
46 | |
|
47 | |
private String key; |
48 | |
|
49 | |
private String link; |
50 | |
|
51 | |
private String priority; |
52 | |
|
53 | |
private String reporter; |
54 | |
|
55 | |
private String resolution; |
56 | |
|
57 | |
private String status; |
58 | |
|
59 | |
private String summary; |
60 | |
|
61 | |
private String title; |
62 | |
|
63 | |
private String type; |
64 | |
|
65 | |
private Date updated; |
66 | |
|
67 | |
private String version; |
68 | |
|
69 | |
public Issue() |
70 | 22 | { |
71 | 22 | } |
72 | |
|
73 | |
public String getAssignee() |
74 | |
{ |
75 | 16 | return assignee; |
76 | |
} |
77 | |
|
78 | |
public void setAssignee( String assignee ) |
79 | |
{ |
80 | 16 | this.assignee = assignee; |
81 | 16 | } |
82 | |
|
83 | |
public List<String> getComments() |
84 | |
{ |
85 | 0 | return comments; |
86 | |
} |
87 | |
|
88 | |
public void addComment( String comment ) |
89 | |
{ |
90 | 3 | if ( comments == null ) |
91 | |
{ |
92 | 2 | comments = new ArrayList<String>(); |
93 | |
} |
94 | 3 | comments.add( comment ); |
95 | 3 | } |
96 | |
|
97 | |
public List<String> getComponents() |
98 | |
{ |
99 | 0 | return components; |
100 | |
} |
101 | |
|
102 | |
public void addComponent( String component ) |
103 | |
{ |
104 | 0 | if ( components == null ) |
105 | |
{ |
106 | 0 | components = new ArrayList<String>(); |
107 | |
} |
108 | 0 | components.add( component ); |
109 | 0 | } |
110 | |
|
111 | |
public Date getCreated() |
112 | |
{ |
113 | 0 | return created; |
114 | |
} |
115 | |
|
116 | |
public void setCreated( Date created ) |
117 | |
{ |
118 | 0 | this.created = created; |
119 | 0 | } |
120 | |
|
121 | |
public List<String> getFixVersions() |
122 | |
{ |
123 | 16 | return fixVersions; |
124 | |
} |
125 | |
|
126 | |
public void addFixVersion( String fixVersion ) |
127 | |
{ |
128 | 2 | if ( fixVersions == null ) |
129 | |
{ |
130 | 2 | fixVersions = new ArrayList<String>(); |
131 | |
} |
132 | 2 | fixVersions.add( fixVersion ); |
133 | 2 | } |
134 | |
|
135 | |
public String getId() |
136 | |
{ |
137 | 0 | return id; |
138 | |
} |
139 | |
|
140 | |
public void setId( String id ) |
141 | |
{ |
142 | 4 | this.id = id; |
143 | 4 | } |
144 | |
|
145 | |
public String getKey() |
146 | |
{ |
147 | 16 | return key; |
148 | |
} |
149 | |
|
150 | |
public void setKey( String key ) |
151 | |
{ |
152 | 16 | this.key = key; |
153 | 16 | } |
154 | |
|
155 | |
public String getLink() |
156 | |
{ |
157 | 2 | return link; |
158 | |
} |
159 | |
|
160 | |
public void setLink( String link ) |
161 | |
{ |
162 | 2 | this.link = link; |
163 | 2 | } |
164 | |
|
165 | |
public String getPriority() |
166 | |
{ |
167 | 0 | return priority; |
168 | |
} |
169 | |
|
170 | |
public void setPriority( String priority ) |
171 | |
{ |
172 | 2 | this.priority = priority; |
173 | 2 | } |
174 | |
|
175 | |
public String getReporter() |
176 | |
{ |
177 | 0 | return reporter; |
178 | |
} |
179 | |
|
180 | |
public void setReporter( String reporter ) |
181 | |
{ |
182 | 2 | this.reporter = reporter; |
183 | 2 | } |
184 | |
|
185 | |
public String getResolution() |
186 | |
{ |
187 | 3 | return resolution; |
188 | |
} |
189 | |
|
190 | |
public void setResolution( String resolution ) |
191 | |
{ |
192 | 3 | this.resolution = resolution; |
193 | 3 | } |
194 | |
|
195 | |
public String getStatus() |
196 | |
{ |
197 | 3 | return status; |
198 | |
} |
199 | |
|
200 | |
public void setStatus( String status ) |
201 | |
{ |
202 | 3 | this.status = status; |
203 | 3 | } |
204 | |
|
205 | |
public String getSummary() |
206 | |
{ |
207 | 16 | return summary; |
208 | |
} |
209 | |
|
210 | |
public void setSummary( String summary ) |
211 | |
{ |
212 | 16 | this.summary = summary; |
213 | 16 | } |
214 | |
|
215 | |
public String getTitle() |
216 | |
{ |
217 | 0 | return title; |
218 | |
} |
219 | |
|
220 | |
public void setTitle( String title ) |
221 | |
{ |
222 | 2 | this.title = title; |
223 | 2 | } |
224 | |
|
225 | |
public String getType() |
226 | |
{ |
227 | 21 | return type; |
228 | |
} |
229 | |
|
230 | |
public void setType( String type ) |
231 | |
{ |
232 | 15 | this.type = type; |
233 | 15 | } |
234 | |
|
235 | |
public Date getUpdated() |
236 | |
{ |
237 | 0 | return updated; |
238 | |
} |
239 | |
|
240 | |
public void setUpdated( Date updated ) |
241 | |
{ |
242 | 0 | this.updated = updated; |
243 | 0 | } |
244 | |
|
245 | |
public String getVersion() |
246 | |
{ |
247 | 0 | return version; |
248 | |
} |
249 | |
|
250 | |
public void setVersion( String version ) |
251 | |
{ |
252 | 0 | this.version = version; |
253 | 0 | } |
254 | |
} |