![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.maven.plugin.lifecycle.LifecycleConfiguration 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;
/**
* Root element of the lifecycle.xml file.
*
* @version $Revision$ $Date$
*/
public class LifecycleConfiguration
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field lifecycles.
*/
private java.util.List lifecycles;
/**
* Field modelEncoding.
*/
private String modelEncoding = "UTF-8";
//-----------/
//- Methods -/
//-----------/
/**
* Method addLifecycle.
*
* @param lifecycle
*/
public void addLifecycle( Lifecycle lifecycle )
{
if ( !(lifecycle instanceof Lifecycle) )
{
throw new ClassCastException( "LifecycleConfiguration.addLifecycles(lifecycle) parameter must be instanceof " + Lifecycle.class.getName() );
}
getLifecycles().add( lifecycle );
} //-- void addLifecycle( Lifecycle )
/**
* Method getLifecycles.
*
* @return List
*/
public java.util.List getLifecycles()
{
if ( this.lifecycles == null )
{
this.lifecycles = new java.util.ArrayList();
}
return this.lifecycles;
} //-- java.util.List getLifecycles()
/**
* Method getModelEncoding.
*
* @return the current encoding used when reading/writing this
* model
*/
public String getModelEncoding()
{
return modelEncoding;
} //-- String getModelEncoding()
/**
* Method removeLifecycle.
*
* @param lifecycle
*/
public void removeLifecycle( Lifecycle lifecycle )
{
if ( !(lifecycle instanceof Lifecycle) )
{
throw new ClassCastException( "LifecycleConfiguration.removeLifecycles(lifecycle) parameter must be instanceof " + Lifecycle.class.getName() );
}
getLifecycles().remove( lifecycle );
} //-- void removeLifecycle( Lifecycle )
/**
* Set the lifecycles field.
*
* @param lifecycles
*/
public void setLifecycles( java.util.List lifecycles )
{
this.lifecycles = lifecycles;
} //-- void setLifecycles( java.util.List )
/**
* Set an encoding used for reading/writing the model.
*
* @param modelEncoding
*/
public void setModelEncoding( String modelEncoding )
{
this.modelEncoding = modelEncoding;
} //-- void setModelEncoding( String )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy