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