org.apache.maven.profiles.ProfilesRoot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-compat Show documentation
Show all versions of maven-compat Show documentation
Maven2 classes maintained as compatibility layer.
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.1.2,
// any modifications will be overwritten.
// ==============================================================
package org.apache.maven.profiles;
/**
* Root element of the profiles.xml file.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
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 a string object.
*/
public void addActiveProfile( String string )
{
getActiveProfiles().add( string );
} //-- void addActiveProfile( String )
/**
* Method addProfile.
*
* @param profile a profile object.
*/
public void addProfile( Profile profile )
{
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()
/**
* Get the modelEncoding field.
*
* @return String
*/
public String getModelEncoding()
{
return this.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 a string object.
*/
public void removeActiveProfile( String string )
{
getActiveProfiles().remove( string );
} //-- void removeActiveProfile( String )
/**
* Method removeProfile.
*
* @param profile a profile object.
*/
public void removeProfile( Profile profile )
{
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 a activeProfiles object.
*/
public void setActiveProfiles( java.util.List activeProfiles )
{
this.activeProfiles = activeProfiles;
} //-- void setActiveProfiles( java.util.List )
/**
* Set the modelEncoding field.
*
* @param modelEncoding a modelEncoding object.
*/
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 a profiles object.
*/
public void setProfiles( java.util.List profiles )
{
this.profiles = profiles;
} //-- void setProfiles( java.util.List )
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy