org.apache.maven.plugins.changes.model.Body Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-changes-plugin Show documentation
Show all versions of maven-changes-plugin Show documentation
Creates a release history for inclusion into the site and assists in generating an announcement mail.
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.0.1 on 2011-06-19 08:07:56,
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