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

org.apache.maven.plugins.changes.model.Component 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 2012-05-10 17:26:02,
 any modifications will be overwritten.
 ==============================================================
 */

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

/**
 * 
 *         A component as a part of current release.
 *       
 * 
 * @version $Revision$ $Date$
 */
public class Component
    implements java.io.Serializable
{

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

    /**
     * 
     *             The component name.
     *           
     */
    private String name;

    /**
     * 
     *             The component description.
     *           
     */
    private String description;

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


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

    /**
     * Method addAction.
     * 
     * @param action
     */
    public void addAction( Action action )
    {
        if ( !(action instanceof Action) )
        {
            throw new ClassCastException( "Component.addActions(action) parameter must be instanceof " + Action.class.getName() );
        }
        getActions().add( action );
    } //-- void addAction( Action )

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

        return this.actions;
    } //-- java.util.List getActions()

    /**
     * Get the component description.
     * 
     * @return String
     */
    public String getDescription()
    {
        return this.description;
    } //-- String getDescription()

    /**
     * Get the component name.
     * 
     * @return String
     */
    public String getName()
    {
        return this.name;
    } //-- String getName()

    /**
     * Method removeAction.
     * 
     * @param action
     */
    public void removeAction( Action action )
    {
        if ( !(action instanceof Action) )
        {
            throw new ClassCastException( "Component.removeActions(action) parameter must be instanceof " + Action.class.getName() );
        }
        getActions().remove( action );
    } //-- void removeAction( Action )

    /**
     * Set the list of actions for this component.
     * 
     * @param actions
     */
    public void setActions( java.util.List actions )
    {
        this.actions = actions;
    } //-- void setActions( java.util.List )

    /**
     * Set the component description.
     * 
     * @param description
     */
    public void setDescription( String description )
    {
        this.description = description;
    } //-- void setDescription( String )

    /**
     * Set the component name.
     * 
     * @param name
     */
    public void setName( String name )
    {
        this.name = name;
    } //-- void setName( String )


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy