All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.maven.plugins.changes.model.Body Maven / Gradle / Ivy

Go to download

Creates a release history for inclusion into the site and assists in generating an announcement mail.

There is a newer version: 2.12.1
Show newest version
/*
 =================== DO NOT EDIT THIS FILE ====================
 Generated by Modello 1.0.1 on 2014-04-10 21:00:55,
 any modifications will be overwritten.
 ==============================================================
 */

package org.apache.maven.plugins.changes.model;

/**
 * Class Body.
 * 
 * @version $Revision$ $Date$
 */
public class Body
    implements java.io.Serializable
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field releases.
     */
    private java.util.List releases;


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method addRelease.
     * 
     * @param release
     */
    public void addRelease( Release release )
    {
        if ( !(release instanceof Release) )
        {
            throw new ClassCastException( "Body.addReleases(release) parameter must be instanceof " + Release.class.getName() );
        }
        getReleases().add( release );
    } //-- void addRelease( Release )

    /**
     * Method getReleases.
     * 
     * @return List
     */
    public java.util.List getReleases()
    {
        if ( this.releases == null )
        {
            this.releases = new java.util.ArrayList();
        }

        return this.releases;
    } //-- java.util.List getReleases()

    /**
     * Method removeRelease.
     * 
     * @param release
     */
    public void removeRelease( Release release )
    {
        if ( !(release instanceof Release) )
        {
            throw new ClassCastException( "Body.removeReleases(release) parameter must be instanceof " + Release.class.getName() );
        }
        getReleases().remove( release );
    } //-- void removeRelease( Release )

    /**
     * Set the list of releases for this project.
     * 
     * @param releases
     */
    public void setReleases( java.util.List releases )
    {
        this.releases = releases;
    } //-- void setReleases( java.util.List )


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy