Coverage Report - org.apache.maven.plugins.changes.model.Body
 
Classes in this File Line Coverage Branch Coverage Complexity
Body
28%
4/14
33%
2/6
2.25
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.0.1 on 2012-05-10 17:27:31,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.plugins.changes.model;
 9  
 
 10  
 /**
 11  
  * Class Body.
 12  
  * 
 13  
  * @version $Revision$ $Date$
 14  
  */
 15  2
 public class Body
 16  
     implements java.io.Serializable
 17  
 {
 18  
 
 19  
       //--------------------------/
 20  
      //- Class/Member Variables -/
 21  
     //--------------------------/
 22  
 
 23  
     /**
 24  
      * Field releases.
 25  
      */
 26  
     private java.util.List<Release> releases;
 27  
 
 28  
 
 29  
       //-----------/
 30  
      //- Methods -/
 31  
     //-----------/
 32  
 
 33  
     /**
 34  
      * Method addRelease.
 35  
      * 
 36  
      * @param release
 37  
      */
 38  
     public void addRelease( Release release )
 39  
     {
 40  0
         if ( !(release instanceof Release) )
 41  
         {
 42  0
             throw new ClassCastException( "Body.addReleases(release) parameter must be instanceof " + Release.class.getName() );
 43  
         }
 44  0
         getReleases().add( release );
 45  0
     } //-- void addRelease( Release )
 46  
 
 47  
     /**
 48  
      * Method getReleases.
 49  
      * 
 50  
      * @return List
 51  
      */
 52  
     public java.util.List<Release> getReleases()
 53  
     {
 54  6
         if ( this.releases == null )
 55  
         {
 56  2
             this.releases = new java.util.ArrayList<Release>();
 57  
         }
 58  
 
 59  6
         return this.releases;
 60  
     } //-- java.util.List<Release> getReleases()
 61  
 
 62  
     /**
 63  
      * Method removeRelease.
 64  
      * 
 65  
      * @param release
 66  
      */
 67  
     public void removeRelease( Release release )
 68  
     {
 69  0
         if ( !(release instanceof Release) )
 70  
         {
 71  0
             throw new ClassCastException( "Body.removeReleases(release) parameter must be instanceof " + Release.class.getName() );
 72  
         }
 73  0
         getReleases().remove( release );
 74  0
     } //-- void removeRelease( Release )
 75  
 
 76  
     /**
 77  
      * Set the list of releases for this project.
 78  
      * 
 79  
      * @param releases
 80  
      */
 81  
     public void setReleases( java.util.List<Release> releases )
 82  
     {
 83  0
         this.releases = releases;
 84  0
     } //-- void setReleases( java.util.List )
 85  
 
 86  
 
 87  
 }