001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.8.3,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.maven.profiles;
007
008/**
009 * Root element of the profiles.xml file.
010 * 
011 * @version $Revision: 965443 $ $Date: 2015-09-14 22:18:52 +0000 (Mon, 14 Sep 2015) $
012 */
013@SuppressWarnings( "all" )
014public class ProfilesRoot
015    implements java.io.Serializable
016{
017
018      //--------------------------/
019     //- Class/Member Variables -/
020    //--------------------------/
021
022    /**
023     * Field profiles.
024     */
025    private java.util.List<Profile> profiles;
026
027    /**
028     * Field activeProfiles.
029     */
030    private java.util.List<String> activeProfiles;
031
032    /**
033     * Field modelEncoding.
034     */
035    private String modelEncoding = "UTF-8";
036
037
038      //-----------/
039     //- Methods -/
040    //-----------/
041
042    /**
043     * Method addActiveProfile.
044     * 
045     * @param string
046     */
047    public void addActiveProfile( String string )
048    {
049        getActiveProfiles().add( string );
050    } //-- void addActiveProfile( String )
051
052    /**
053     * Method addProfile.
054     * 
055     * @param profile
056     */
057    public void addProfile( Profile profile )
058    {
059        getProfiles().add( profile );
060    } //-- void addProfile( Profile )
061
062    /**
063     * Method getActiveProfiles.
064     * 
065     * @return List
066     */
067    public java.util.List<String> getActiveProfiles()
068    {
069        if ( this.activeProfiles == null )
070        {
071            this.activeProfiles = new java.util.ArrayList<String>();
072        }
073
074        return this.activeProfiles;
075    } //-- java.util.List<String> getActiveProfiles()
076
077    /**
078     * Get the modelEncoding field.
079     * 
080     * @return String
081     */
082    public String getModelEncoding()
083    {
084        return this.modelEncoding;
085    } //-- String getModelEncoding()
086
087    /**
088     * Method getProfiles.
089     * 
090     * @return List
091     */
092    public java.util.List<Profile> getProfiles()
093    {
094        if ( this.profiles == null )
095        {
096            this.profiles = new java.util.ArrayList<Profile>();
097        }
098
099        return this.profiles;
100    } //-- java.util.List<Profile> getProfiles()
101
102    /**
103     * Method removeActiveProfile.
104     * 
105     * @param string
106     */
107    public void removeActiveProfile( String string )
108    {
109        getActiveProfiles().remove( string );
110    } //-- void removeActiveProfile( String )
111
112    /**
113     * Method removeProfile.
114     * 
115     * @param profile
116     */
117    public void removeProfile( Profile profile )
118    {
119        getProfiles().remove( profile );
120    } //-- void removeProfile( Profile )
121
122    /**
123     * Set list of manually-activated build profiles, specified in
124     * the order in which
125     *             they should be applied.
126     * 
127     * @param activeProfiles
128     */
129    public void setActiveProfiles( java.util.List<String> activeProfiles )
130    {
131        this.activeProfiles = activeProfiles;
132    } //-- void setActiveProfiles( java.util.List )
133
134    /**
135     * Set the modelEncoding field.
136     * 
137     * @param modelEncoding
138     */
139    public void setModelEncoding( String modelEncoding )
140    {
141        this.modelEncoding = modelEncoding;
142    } //-- void setModelEncoding( String )
143
144    /**
145     * Set configuration of build profiles for adjusting the build
146     *             according to environmental parameters.
147     * 
148     * @param profiles
149     */
150    public void setProfiles( java.util.List<Profile> profiles )
151    {
152        this.profiles = profiles;
153    } //-- void setProfiles( java.util.List )
154
155}