Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
JiraAnnouncement |
|
| 1.0833333333333333;1.083 |
1 | package org.apache.maven.plugin.announcement; |
|
2 | ||
3 | /* |
|
4 | * Copyright 2001-2006 The Apache Software Foundation. |
|
5 | * |
|
6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
7 | * you may not use this file except in compliance with the License. |
|
8 | * You may obtain a copy of the License at |
|
9 | * |
|
10 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
11 | * |
|
12 | * Unless required by applicable law or agreed to in writing, software |
|
13 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
15 | * See the License for the specific language governing permissions and |
|
16 | * limitations under the License. |
|
17 | */ |
|
18 | ||
19 | import java.util.ArrayList; |
|
20 | import java.util.List; |
|
21 | ||
22 | import org.apache.maven.plugin.jira.JiraIssue; |
|
23 | ||
24 | /** |
|
25 | * A JIRA announcement. |
|
26 | * |
|
27 | * @version $Id: JiraAnnouncement.java 424723 2006-07-23 12:26:18Z fgiust $ |
|
28 | */ |
|
29 | 0 | public class JiraAnnouncement |
30 | extends JiraIssue |
|
31 | { |
|
32 | private String type; |
|
33 | ||
34 | private String comment; |
|
35 | ||
36 | private String title; |
|
37 | ||
38 | private String fixVersion; |
|
39 | ||
40 | private String reporter; |
|
41 | ||
42 | private List comments; |
|
43 | ||
44 | public void addComment( String comment ) |
|
45 | { |
|
46 | 0 | if ( comments == null ) |
47 | { |
|
48 | 0 | comments = new ArrayList(); |
49 | } |
|
50 | 0 | comments.add( comment ); |
51 | 0 | } |
52 | ||
53 | public String getFixVersion() |
|
54 | { |
|
55 | 0 | return fixVersion; |
56 | } |
|
57 | ||
58 | public void setFixVersion( String fixVersion ) |
|
59 | { |
|
60 | 0 | this.fixVersion = fixVersion; |
61 | 0 | } |
62 | ||
63 | public String getComment() |
|
64 | { |
|
65 | 0 | return comment; |
66 | } |
|
67 | ||
68 | public void setComment( String comment ) |
|
69 | { |
|
70 | 0 | this.comment = comment; |
71 | 0 | } |
72 | ||
73 | public String getTitle() |
|
74 | { |
|
75 | 0 | return title; |
76 | } |
|
77 | ||
78 | public void setTitle( String title ) |
|
79 | { |
|
80 | 0 | this.title = title; |
81 | 0 | } |
82 | ||
83 | public void setType( String type ) |
|
84 | { |
|
85 | 0 | this.type = type; |
86 | 0 | } |
87 | ||
88 | public String getType() |
|
89 | { |
|
90 | 0 | return this.type; |
91 | } |
|
92 | ||
93 | public void setReporter( String reporter ) |
|
94 | { |
|
95 | 0 | this.reporter = reporter; |
96 | 0 | } |
97 | ||
98 | public String getReporter() |
|
99 | { |
|
100 | 0 | return this.reporter; |
101 | } |
|
102 | ||
103 | public List getComments() |
|
104 | { |
|
105 | 0 | return comments; |
106 | } |
|
107 | } |