org.apache.maven.profiles.ProfilesRoot Maven / Gradle / Ivy
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.0.1 on 2009-03-18 15:08:31,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.profiles;
/**
* Root element of the profiles.xml file.
*
* @version $Revision$ $Date$
*/
public class ProfilesRoot
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field profiles.
*/
private java.util.List/**/ profiles;
/**
* Field activeProfiles.
*/
private java.util.List/**/ activeProfiles;
/**
* Field modelEncoding.
*/
private String modelEncoding = "UTF-8";
//-----------/
//- Methods -/
//-----------/
/**
* Method addActiveProfile.
*
* @param string
*/
public void addActiveProfile( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "ProfilesRoot.addActiveProfiles(string) parameter must be instanceof " + String.class.getName() );
}
getActiveProfiles().add( string );
} //-- void addActiveProfile( String )
/**
* Method addProfile.
*
* @param profile
*/
public void addProfile( Profile profile )
{
if ( !(profile instanceof Profile) )
{
throw new ClassCastException( "ProfilesRoot.addProfiles(profile) parameter must be instanceof " + Profile.class.getName() );
}
getProfiles().add( profile );
} //-- void addProfile( Profile )
/**
* Method getActiveProfiles.
*
* @return List
*/
public java.util.List/**/ getActiveProfiles()
{
if ( this.activeProfiles == null )
{
this.activeProfiles = new java.util.ArrayList/**/();
}
return this.activeProfiles;
} //-- java.util.List/**/ getActiveProfiles()
/**
* Method getModelEncoding.
*
* @return the current encoding used when reading/writing this
* model
*/
public String getModelEncoding()
{
return modelEncoding;
} //-- String getModelEncoding()
/**
* Method getProfiles.
*
* @return List
*/
public java.util.List/**/ getProfiles()
{
if ( this.profiles == null )
{
this.profiles = new java.util.ArrayList/**/();
}
return this.profiles;
} //-- java.util.List/**/ getProfiles()
/**
* Method removeActiveProfile.
*
* @param string
*/
public void removeActiveProfile( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "ProfilesRoot.removeActiveProfiles(string) parameter must be instanceof " + String.class.getName() );
}
getActiveProfiles().remove( string );
} //-- void removeActiveProfile( String )
/**
* Method removeProfile.
*
* @param profile
*/
public void removeProfile( Profile profile )
{
if ( !(profile instanceof Profile) )
{
throw new ClassCastException( "ProfilesRoot.removeProfiles(profile) parameter must be instanceof " + Profile.class.getName() );
}
getProfiles().remove( profile );
} //-- void removeProfile( Profile )
/**
* Set list of manually-activated build profiles, specified in
* the order in which
* they should be applied.
*
* @param activeProfiles
*/
public void setActiveProfiles( java.util.List/**/ activeProfiles )
{
this.activeProfiles = activeProfiles;
} //-- void setActiveProfiles( 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 )
/**
* Set configuration of build profiles for adjusting the build
* according to environmental parameters.
*
* @param profiles
*/
public void setProfiles( java.util.List/**/ profiles )
{
this.profiles = profiles;
} //-- void setProfiles( java.util.List )
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy