View Javadoc

1   package org.apache.maven.plugin.issues;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.util.ArrayList;
23  import java.util.Date;
24  import java.util.List;
25  
26  /**
27   * An issue.
28   *
29   * @author Dennis Lundberg
30   * @version $Id: Issue.java 1098344 2011-05-01 14:49:27Z dennisl $
31   * @since 2.4
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      {
71      }
72  
73      public String getAssignee()
74      {
75          return assignee;
76      }
77  
78      public void setAssignee( String assignee )
79      {
80          this.assignee = assignee;
81      }
82  
83      public List<String> getComments()
84      {
85          return comments;
86      }
87  
88      public void addComment( String comment )
89      {
90          if ( comments == null )
91          {
92              comments = new ArrayList<String>();
93          }
94          comments.add( comment );
95      }
96  
97      public List<String> getComponents()
98      {
99          return components;
100     }
101 
102     public void addComponent( String component )
103     {
104         if ( components == null )
105         {
106             components = new ArrayList<String>();
107         }
108         components.add( component );
109     }
110 
111     public Date getCreated()
112     {
113         return created;
114     }
115 
116     public void setCreated( Date created )
117     {
118         this.created = created;
119     }
120 
121     public List<String> getFixVersions()
122     {
123         return fixVersions;
124     }
125 
126     public void addFixVersion( String fixVersion )
127     {
128         if ( fixVersions == null )
129         {
130             fixVersions = new ArrayList<String>();
131         }
132         fixVersions.add( fixVersion );
133     }
134 
135     public String getId()
136     {
137         return id;
138     }
139 
140     public void setId( String id )
141     {
142         this.id = id;
143     }
144 
145     public String getKey()
146     {
147         return key;
148     }
149 
150     public void setKey( String key )
151     {
152         this.key = key;
153     }
154 
155     public String getLink()
156     {
157         return link;
158     }
159 
160     public void setLink( String link )
161     {
162         this.link = link;
163     }
164 
165     public String getPriority()
166     {
167         return priority;
168     }
169 
170     public void setPriority( String priority )
171     {
172         this.priority = priority;
173     }
174 
175     public String getReporter()
176     {
177         return reporter;
178     }
179 
180     public void setReporter( String reporter )
181     {
182         this.reporter = reporter;
183     }
184 
185     public String getResolution()
186     {
187         return resolution;
188     }
189 
190     public void setResolution( String resolution )
191     {
192         this.resolution = resolution;
193     }
194 
195     public String getStatus()
196     {
197         return status;
198     }
199 
200     public void setStatus( String status )
201     {
202         this.status = status;
203     }
204 
205     public String getSummary()
206     {
207         return summary;
208     }
209 
210     public void setSummary( String summary )
211     {
212         this.summary = summary;
213     }
214 
215     public String getTitle()
216     {
217         return title;
218     }
219 
220     public void setTitle( String title )
221     {
222         this.title = title;
223     }
224 
225     public String getType()
226     {
227         return type;
228     }
229 
230     public void setType( String type )
231     {
232         this.type = type;
233     }
234 
235     public Date getUpdated()
236     {
237         return updated;
238     }
239 
240     public void setUpdated( Date updated )
241     {
242         this.updated = updated;
243     }
244 
245     public String getVersion()
246     {
247         return version;
248     }
249 
250     public void setVersion( String version )
251     {
252         this.version = version;
253     }
254 }