View Javadoc

1   package org.apache.maven.plugin.jira;
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.List;
24  
25  /**
26   * A JIRA issue.
27   *
28   * @version $Id: JiraIssue.html 816592 2012-05-08 12:40:21Z hboutemy $
29   */
30  public class JiraIssue
31  {
32      private String component;
33  
34      private String fixVersion;
35  
36      private String key;
37  
38      private String link;
39  
40      private String priority;
41  
42      private String reporter;
43  
44      private String summary;
45  
46      private String status;
47  
48      private String type;
49  
50      private String version;
51  
52      private String resolution;
53  
54      private String assignee;
55  
56      private List comments;
57  
58      private String title;
59  
60      public JiraIssue()
61      {
62      }
63  
64      public String getKey()
65      {
66          return key;
67      }
68  
69      public void setKey( String key )
70      {
71          this.key = key;
72      }
73  
74      public String getLink()
75      {
76          return link;
77      }
78  
79      public void setLink( String link )
80      {
81          this.link = link;
82      }
83  
84      public String getSummary()
85      {
86          return summary;
87      }
88  
89      public void setSummary( String summary )
90      {
91          this.summary = summary;
92      }
93  
94      public String getStatus()
95      {
96          return status;
97      }
98  
99      public void setStatus( String status )
100     {
101         this.status = status;
102     }
103 
104     public String getResolution()
105     {
106         return resolution;
107     }
108 
109     public void setResolution( String resolution )
110     {
111         this.resolution = resolution;
112     }
113 
114     public String getAssignee()
115     {
116         return assignee;
117     }
118 
119     public void setAssignee( String assignee )
120     {
121         this.assignee = assignee;
122     }
123 
124     public String getComponent()
125     {
126         return component;
127     }
128 
129     public void setComponent( String component )
130     {
131         this.component = component;
132     }
133 
134     public String getFixVersion()
135     {
136         return fixVersion;
137     }
138 
139     public void setFixVersion( String fixVersion )
140     {
141         this.fixVersion = fixVersion;
142     }
143 
144     public String getPriority()
145     {
146         return priority;
147     }
148 
149     public void setPriority( String priority )
150     {
151         this.priority = priority;
152     }
153 
154     public String getReporter()
155     {
156         return reporter;
157     }
158 
159     public void setReporter( String reporter )
160     {
161         this.reporter = reporter;
162     }
163 
164     public String getType()
165     {
166         return type;
167     }
168 
169     public void setType( String type )
170     {
171         this.type = type;
172     }
173 
174     public String getVersion()
175     {
176         return version;
177     }
178 
179     public void setVersion( String version )
180     {
181         this.version = version;
182     }
183 
184     public void addComment( String comment )
185     {
186         if ( comments == null )
187         {
188             comments = new ArrayList();
189         }
190         comments.add( comment );
191     }
192 
193     public List getComments()
194     {
195         return comments;
196     }
197 
198     public String getTitle()
199     {
200         return title;
201     }
202 
203     public void setTitle( String title )
204     {
205         this.title = title;
206     }
207 }