org.apache.maven.toolchain.model.PersistedToolchains Maven / Gradle / Ivy
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.0.1 on 2009-06-26 09:06:02,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.toolchain.model;
/**
*
* The <toolchains>
element is the root
* of the descriptor.
* The following table lists all of the possible child
* elements.
*
*
* @version $Revision$ $Date$
*/
public class PersistedToolchains
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field toolchains.
*/
private java.util.List toolchains;
/**
* Field modelEncoding.
*/
private String modelEncoding = "UTF-8";
//-----------/
//- Methods -/
//-----------/
/**
* Method addToolchain.
*
* @param toolchainModel
*/
public void addToolchain( ToolchainModel toolchainModel )
{
if ( !(toolchainModel instanceof ToolchainModel) )
{
throw new ClassCastException( "PersistedToolchains.addToolchains(toolchainModel) parameter must be instanceof " + ToolchainModel.class.getName() );
}
getToolchains().add( toolchainModel );
} //-- void addToolchain( ToolchainModel )
/**
* Method getModelEncoding.
*
* @return the current encoding used when reading/writing this
* model
*/
public String getModelEncoding()
{
return modelEncoding;
} //-- String getModelEncoding()
/**
* Method getToolchains.
*
* @return List
*/
public java.util.List getToolchains()
{
if ( this.toolchains == null )
{
this.toolchains = new java.util.ArrayList();
}
return this.toolchains;
} //-- java.util.List getToolchains()
/**
* Method removeToolchain.
*
* @param toolchainModel
*/
public void removeToolchain( ToolchainModel toolchainModel )
{
if ( !(toolchainModel instanceof ToolchainModel) )
{
throw new ClassCastException( "PersistedToolchains.removeToolchains(toolchainModel) parameter must be instanceof " + ToolchainModel.class.getName() );
}
getToolchains().remove( toolchainModel );
} //-- void removeToolchain( ToolchainModel )
/**
* Set an encoding used for reading/writing the model.
*
* @param modelEncoding
*/
public void setModelEncoding( String modelEncoding )
{
this.modelEncoding = modelEncoding;
} //-- void setModelEncoding( String )
/**
* Set the toolchain definition.
*
* @param toolchains
*/
public void setToolchains( java.util.List toolchains )
{
this.toolchains = toolchains;
} //-- void setToolchains( java.util.List )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy