org.apache.maven.plugin.lifecycle.Phase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-plugin-api Show documentation
Show all versions of maven-plugin-api Show documentation
The API for plugins - Mojos - development.
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.1.2,
// 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, e.g., 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 a execution object.
*/
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, e.g.,
* generate-sources
.
*
* @return String
*/
public String getId()
{
return this.id;
} //-- String getId()
/**
* Method removeExecution.
*
* @param execution a execution object.
*/
public void removeExecution( Execution execution )
{
getExecutions().remove( execution );
} //-- void removeExecution( Execution )
/**
* Set configuration to pass to all goals run in this phase.
*
* @param configuration a configuration object.
*/
public void setConfiguration( Object configuration )
{
this.configuration = configuration;
} //-- void setConfiguration( Object )
/**
* Set the goals to execute within the phase.
*
* @param executions a executions object.
*/
public void setExecutions( java.util.List executions )
{
this.executions = executions;
} //-- void setExecutions( java.util.List )
/**
* Set the ID of this phase, e.g.,
* generate-sources
.
*
* @param id a id object.
*/
public void setId( String id )
{
this.id = id;
} //-- void setId( String )
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy