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

org.apache.maven.plugin.lifecycle.Phase Maven / Gradle / Ivy

There is a newer version: 4.0.0-beta-3
Show newest version
/*
 =================== DO NOT EDIT THIS FILE ====================
 Generated by Modello 1.1 on 2010-01-06 11:59:54,
 any modifications will be overwritten.
 ==============================================================
 */

package org.apache.maven.plugin.lifecycle;

/**
 * A phase mapping definition.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class Phase
    implements java.io.Serializable
{

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

    /**
     * The ID of this phase, eg generate-sources.
     */
    private String id;

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

    /**
     * Configuration to pass to all goals run in this phase.
     */
    private Object configuration;


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

    /**
     * Method addExecution.
     * 
     * @param execution
     */
    public void addExecution( Execution execution )
    {
        getExecutions().add( execution );
    } //-- void addExecution( Execution )

    /**
     * Get configuration to pass to all goals run in this phase.
     * 
     * @return Object
     */
    public Object getConfiguration()
    {
        return this.configuration;
    } //-- Object getConfiguration()

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

        return this.executions;
    } //-- java.util.List getExecutions()

    /**
     * Get the ID of this phase, eg generate-sources.
     * 
     * @return String
     */
    public String getId()
    {
        return this.id;
    } //-- String getId()

    /**
     * Method removeExecution.
     * 
     * @param execution
     */
    public void removeExecution( Execution execution )
    {
        getExecutions().remove( execution );
    } //-- void removeExecution( Execution )

    /**
     * Set configuration to pass to all goals run in this phase.
     * 
     * @param configuration
     */
    public void setConfiguration( Object configuration )
    {
        this.configuration = configuration;
    } //-- void setConfiguration( Object )

    /**
     * Set the goals to execute within the phase.
     * 
     * @param executions
     */
    public void setExecutions( java.util.List executions )
    {
        this.executions = executions;
    } //-- void setExecutions( java.util.List )

    /**
     * Set the ID of this phase, eg generate-sources.
     * 
     * @param id
     */
    public void setId( String id )
    {
        this.id = id;
    } //-- void setId( String )

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy