View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  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,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.4.0,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.plugins.changes.model;
25  
26  /**
27   * A single release of this project.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class Release
33      extends AbstractRelease
34      implements java.io.Serializable
35  {
36  
37        //--------------------------/
38       //- Class/Member Variables -/
39      //--------------------------/
40  
41      /**
42       * 
43       *             The version number associated with this release.
44       *           
45       */
46      private String version;
47  
48      /**
49       * 
50       *             
51       *             The date of this release.
52       *             <p>This field can be any string, such as "in
53       * SVN" when the version isn't yet released but the ISO 8601
54       * date format is recommended.</p>
55       *           
56       *           
57       */
58      private String dateRelease;
59  
60      /**
61       * 
62       *             A short description of this release.
63       *           
64       */
65      private String description;
66  
67      /**
68       * Field actions.
69       */
70      private java.util.List<Action> actions;
71  
72  
73        //-----------/
74       //- Methods -/
75      //-----------/
76  
77      /**
78       * Method addAction.
79       * 
80       * @param action a action object.
81       */
82      public void addAction( Action action )
83      {
84          getActions().add( action );
85      } //-- void addAction( Action )
86  
87      /**
88       * Method getActions.
89       * 
90       * @return List
91       */
92      public java.util.List<Action> getActions()
93      {
94          if ( this.actions == null )
95          {
96              this.actions = new java.util.ArrayList<Action>();
97          }
98  
99          return this.actions;
100     } //-- java.util.List<Action> getActions()
101 
102     /**
103      * Get the date of this release.
104      *             <p>This field can be any string, such as "in
105      * SVN" when the version isn't yet released but the ISO 8601
106      * date format is recommended.</p>
107      * 
108      * @return String
109      */
110     public String getDateRelease()
111     {
112         return this.dateRelease;
113     } //-- String getDateRelease()
114 
115     /**
116      * Get a short description of this release.
117      * 
118      * @return String
119      */
120     public String getDescription()
121     {
122         return this.description;
123     } //-- String getDescription()
124 
125     /**
126      * Get the version number associated with this release.
127      * 
128      * @return String
129      */
130     public String getVersion()
131     {
132         return this.version;
133     } //-- String getVersion()
134 
135     /**
136      * Method removeAction.
137      * 
138      * @param action a action object.
139      */
140     public void removeAction( Action action )
141     {
142         getActions().remove( action );
143     } //-- void removeAction( Action )
144 
145     /**
146      * Set the list of actions taken for this release.
147      * 
148      * @param actions a actions object.
149      */
150     public void setActions( java.util.List<Action> actions )
151     {
152         this.actions = actions;
153     } //-- void setActions( java.util.List )
154 
155     /**
156      * Set the date of this release.
157      *             <p>This field can be any string, such as "in
158      * SVN" when the version isn't yet released but the ISO 8601
159      * date format is recommended.</p>
160      * 
161      * @param dateRelease a dateRelease object.
162      */
163     public void setDateRelease( String dateRelease )
164     {
165         this.dateRelease = dateRelease;
166     } //-- void setDateRelease( String )
167 
168     /**
169      * Set a short description of this release.
170      * 
171      * @param description a description object.
172      */
173     public void setDescription( String description )
174     {
175         this.description = description;
176     } //-- void setDescription( String )
177 
178     /**
179      * Set the version number associated with this release.
180      * 
181      * @param version a version object.
182      */
183     public void setVersion( String version )
184     {
185         this.version = version;
186     } //-- void setVersion( String )
187 
188 }