org.apache.maven.plugin.lifecycle.Phase Maven / Gradle / Ivy
The newest version!
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.0.1 on 2009-08-06 15:15:38,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.plugin.lifecycle;
/**
* A phase mapping definition.
*
* @version $Revision$ $Date$
*/
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 )
{
if ( !(execution instanceof Execution) )
{
throw new ClassCastException( "Phase.addExecutions(execution) parameter must be instanceof " + Execution.class.getName() );
}
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 )
{
if ( !(execution instanceof Execution) )
{
throw new ClassCastException( "Phase.removeExecutions(execution) parameter must be instanceof " + Execution.class.getName() );
}
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 )
}