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   * Class Body.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class Body
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * Field releases.
42       */
43      private java.util.List<Release> releases;
44  
45  
46        //-----------/
47       //- Methods -/
48      //-----------/
49  
50      /**
51       * Method addRelease.
52       * 
53       * @param release a release object.
54       */
55      public void addRelease( Release release )
56      {
57          getReleases().add( release );
58      } //-- void addRelease( Release )
59  
60      /**
61       * Method getReleases.
62       * 
63       * @return List
64       */
65      public java.util.List<Release> getReleases()
66      {
67          if ( this.releases == null )
68          {
69              this.releases = new java.util.ArrayList<Release>();
70          }
71  
72          return this.releases;
73      } //-- java.util.List<Release> getReleases()
74  
75      /**
76       * Method removeRelease.
77       * 
78       * @param release a release object.
79       */
80      public void removeRelease( Release release )
81      {
82          getReleases().remove( release );
83      } //-- void removeRelease( Release )
84  
85      /**
86       * Set the list of releases for this project.
87       * 
88       * @param releases a releases object.
89       */
90      public void setReleases( java.util.List<Release> releases )
91      {
92          this.releases = releases;
93      } //-- void setReleases( java.util.List )
94  
95  }