Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
JiraAnnouncement |
|
| 1.0833333333333333;1,083 |
1 | package org.apache.maven.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 | 0 | * 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 org.apache.maven.jira.JiraIssue; |
|
20 | ||
21 | import java.util.ArrayList; |
|
22 | import java.util.List; |
|
23 | ||
24 | /** |
|
25 | 0 | * A JIRA announcement. |
26 | * |
|
27 | 0 | * @version $Id: org.apache.maven.announcement.JiraAnnouncement.html 816584 2012-05-08 12:33:35Z hboutemy $ |
28 | */ |
|
29 | 0 | public class JiraAnnouncement |
30 | 0 | extends JiraIssue |
31 | { |
|
32 | private String type; |
|
33 | ||
34 | 0 | private String comment; |
35 | ||
36 | private String title; |
|
37 | ||
38 | private String fixVersion; |
|
39 | 0 | |
40 | 0 | private String reporter; |
41 | ||
42 | private List comments; |
|
43 | ||
44 | 0 | public void addComment( String comment ) |
45 | { |
|
46 | 0 | if ( comments == null ) |
47 | { |
|
48 | 0 | comments = new ArrayList(); |
49 | 0 | } |
50 | 0 | comments.add( comment ); |
51 | 0 | } |
52 | ||
53 | public String getFixVersion() |
|
54 | 0 | { |
55 | 0 | return fixVersion; |
56 | } |
|
57 | ||
58 | public void setFixVersion( String fixVersion ) |
|
59 | 0 | { |
60 | 0 | this.fixVersion = fixVersion; |
61 | 0 | } |
62 | ||
63 | public String getComment() |
|
64 | 0 | { |
65 | 0 | return comment; |
66 | } |
|
67 | ||
68 | public void setComment( String comment ) |
|
69 | 0 | { |
70 | 0 | this.comment = comment; |
71 | 0 | } |
72 | ||
73 | public String getTitle() |
|
74 | 0 | { |
75 | 0 | return title; |
76 | } |
|
77 | ||
78 | public void setTitle( String title ) |
|
79 | 0 | { |
80 | 0 | this.title = title; |
81 | 0 | } |
82 | ||
83 | public void setType( String type ) |
|
84 | 0 | { |
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 | } |