1
2
3
4
5
6
7
8 package org.apache.maven.plugins.changes.model;
9
10
11
12
13
14
15 public class Release
16 implements java.io.Serializable
17 {
18
19
20
21
22
23
24
25
26
27
28 private String version;
29
30
31
32
33
34
35
36
37
38
39 private String dateRelease;
40
41
42
43
44
45
46 private String description;
47
48
49
50
51 private java.util.List
52
53
54
55
56
57
58
59
60
61
62
63 public void addAction( Action action )
64 {
65 if ( !(action instanceof Action) )
66 {
67 throw new ClassCastException( "Release.addActions(action) parameter must be instanceof " + Action.class.getName() );
68 }
69 getActions().add( action );
70 }
71
72
73
74
75
76
77 public java.util.List
78 {
79 if ( this.actions == null )
80 {
81 this.actions = new java.util.ArrayList
82 }
83
84 return this.actions;
85 }
86
87
88
89
90
91
92
93
94 public String getDateRelease()
95 {
96 return this.dateRelease;
97 }
98
99
100
101
102
103
104 public String getDescription()
105 {
106 return this.description;
107 }
108
109
110
111
112
113
114 public String getVersion()
115 {
116 return this.version;
117 }
118
119
120
121
122
123
124 public void removeAction( Action action )
125 {
126 if ( !(action instanceof Action) )
127 {
128 throw new ClassCastException( "Release.removeActions(action) parameter must be instanceof " + Action.class.getName() );
129 }
130 getActions().remove( action );
131 }
132
133
134
135
136
137
138 public void setActions( java.util.List
139 {
140 this.actions = actions;
141 }
142
143
144
145
146
147
148
149
150 public void setDateRelease( String dateRelease )
151 {
152 this.dateRelease = dateRelease;
153 }
154
155
156
157
158
159
160 public void setDescription( String description )
161 {
162 this.description = description;
163 }
164
165
166
167
168
169
170 public void setVersion( String version )
171 {
172 this.version = version;
173 }
174
175
176 public java.util.List getActions(String type)
177 {
178 java.util.List actions = new java.util.ArrayList();
179 for (java.util.Iterator iterator = getActions().iterator(); iterator.hasNext(); )
180 {
181 Action action = (Action) iterator.next();
182 if ( action.getType() != null && action.getType().equalsIgnoreCase( type ) )
183 {
184 actions.add( action );
185 }
186 }
187 return actions;
188 }
189
190 }