Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
Release |
|
| 1.1;1,1 |
1 | package org.apache.maven.changes; |
|
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 | /** |
|
23 | * A release in a changes.xml file. |
|
24 | * |
|
25 | * @version $Id: org.apache.maven.changes.Release.html 816584 2012-05-08 12:33:35Z hboutemy $ |
|
26 | */ |
|
27 | public class Release |
|
28 | { |
|
29 | private List action; |
|
30 | ||
31 | private String dateRelease; |
|
32 | 264 | |
33 | 264 | private String description; |
34 | ||
35 | private String version; |
|
36 | ||
37 | 44 | public Release() |
38 | 299 | { |
39 | 255 | } |
40 | ||
41 | public void setAction( List action ) |
|
42 | 44 | { |
43 | 44 | this.action = action; |
44 | 44 | } |
45 | ||
46 | public List getAction() |
|
47 | 0 | { |
48 | 44 | return action; |
49 | 0 | } |
50 | ||
51 | 0 | public void addAction( Action act ) |
52 | 0 | { |
53 | 0 | if ( action == null ) |
54 | { |
|
55 | 0 | action = new ArrayList(); |
56 | 44 | } |
57 | 44 | action.add( act ); |
58 | 0 | } |
59 | ||
60 | public void setDateRelease( String dateRelease ) |
|
61 | 44 | { |
62 | 44 | this.dateRelease = dateRelease; |
63 | 44 | } |
64 | ||
65 | public String getDateRelease() |
|
66 | 0 | { |
67 | 44 | return dateRelease; |
68 | } |
|
69 | ||
70 | public void setDescription( String description ) |
|
71 | 0 | { |
72 | 0 | this.description = description; |
73 | 0 | } |
74 | ||
75 | public String getDescription() |
|
76 | 44 | { |
77 | 44 | return description; |
78 | } |
|
79 | ||
80 | public void setVersion( String version ) |
|
81 | 44 | { |
82 | 44 | this.version = version; |
83 | 44 | } |
84 | ||
85 | public String getVersion() |
|
86 | { |
|
87 | 44 | return version; |
88 | } |
|
89 | } |