001    /*
002     =================== DO NOT EDIT THIS FILE ====================
003     Generated by Modello 1.4.1 on 2013-02-24 03:31:05,
004     any modifications will be overwritten.
005     ==============================================================
006     */
007    
008    package org.apache.maven.profiles;
009    
010    /**
011     * 
012     *         Modifications to the build process which is keyed on
013     * some
014     *         sort of environmental parameter.
015     *       
016     * 
017     * @version $Revision$ $Date$
018     */
019    @SuppressWarnings( "all" )
020    public class Profile
021        implements java.io.Serializable
022    {
023    
024          //--------------------------/
025         //- Class/Member Variables -/
026        //--------------------------/
027    
028        /**
029         * The ID of this build profile, for activation
030         *             purposes.
031         */
032        private String id;
033    
034        /**
035         * The conditional logic which will automatically
036         *             trigger the inclusion of this profile.
037         */
038        private Activation activation;
039    
040        /**
041         * Field properties.
042         */
043        private java.util.Properties properties;
044    
045        /**
046         * Field repositories.
047         */
048        private java.util.List<Repository> repositories;
049    
050        /**
051         *  This may be removed or relocated in the near
052         *             future. It is undecided whether plugins really
053         * need a remote
054         *             repository set of their own. 
055         */
056        private java.util.List<Repository> pluginRepositories;
057    
058    
059          //-----------/
060         //- Methods -/
061        //-----------/
062    
063        /**
064         * Method addPluginRepository.
065         * 
066         * @param repository
067         */
068        public void addPluginRepository( Repository repository )
069        {
070            getPluginRepositories().add( repository );
071        } //-- void addPluginRepository( Repository )
072    
073        /**
074         * Method addProperty.
075         * 
076         * @param key
077         * @param value
078         */
079        public void addProperty( String key, String value )
080        {
081            getProperties().put( key, value );
082        } //-- void addProperty( String, String )
083    
084        /**
085         * Method addRepository.
086         * 
087         * @param repository
088         */
089        public void addRepository( Repository repository )
090        {
091            getRepositories().add( repository );
092        } //-- void addRepository( Repository )
093    
094        /**
095         * Get the conditional logic which will automatically
096         *             trigger the inclusion of this profile.
097         * 
098         * @return Activation
099         */
100        public Activation getActivation()
101        {
102            return this.activation;
103        } //-- Activation getActivation()
104    
105        /**
106         * Get the ID of this build profile, for activation
107         *             purposes.
108         * 
109         * @return String
110         */
111        public String getId()
112        {
113            return this.id;
114        } //-- String getId()
115    
116        /**
117         * Method getPluginRepositories.
118         * 
119         * @return List
120         */
121        public java.util.List<Repository> getPluginRepositories()
122        {
123            if ( this.pluginRepositories == null )
124            {
125                this.pluginRepositories = new java.util.ArrayList<Repository>();
126            }
127    
128            return this.pluginRepositories;
129        } //-- java.util.List<Repository> getPluginRepositories()
130    
131        /**
132         * Method getProperties.
133         * 
134         * @return Properties
135         */
136        public java.util.Properties getProperties()
137        {
138            if ( this.properties == null )
139            {
140                this.properties = new java.util.Properties();
141            }
142    
143            return this.properties;
144        } //-- java.util.Properties getProperties()
145    
146        /**
147         * Method getRepositories.
148         * 
149         * @return List
150         */
151        public java.util.List<Repository> getRepositories()
152        {
153            if ( this.repositories == null )
154            {
155                this.repositories = new java.util.ArrayList<Repository>();
156            }
157    
158            return this.repositories;
159        } //-- java.util.List<Repository> getRepositories()
160    
161        /**
162         * Method removePluginRepository.
163         * 
164         * @param repository
165         */
166        public void removePluginRepository( Repository repository )
167        {
168            getPluginRepositories().remove( repository );
169        } //-- void removePluginRepository( Repository )
170    
171        /**
172         * Method removeRepository.
173         * 
174         * @param repository
175         */
176        public void removeRepository( Repository repository )
177        {
178            getRepositories().remove( repository );
179        } //-- void removeRepository( Repository )
180    
181        /**
182         * Set the conditional logic which will automatically
183         *             trigger the inclusion of this profile.
184         * 
185         * @param activation
186         */
187        public void setActivation( Activation activation )
188        {
189            this.activation = activation;
190        } //-- void setActivation( Activation )
191    
192        /**
193         * Set the ID of this build profile, for activation
194         *             purposes.
195         * 
196         * @param id
197         */
198        public void setId( String id )
199        {
200            this.id = id;
201        } //-- void setId( String )
202    
203        /**
204         * Set the lists of the remote repositories for discovering
205         * plugins.
206         * 
207         * @param pluginRepositories
208         */
209        public void setPluginRepositories( java.util.List<Repository> pluginRepositories )
210        {
211            this.pluginRepositories = pluginRepositories;
212        } //-- void setPluginRepositories( java.util.List )
213    
214        /**
215         * Set extended configuration specific to this profile goes
216         *             here.
217         * 
218         * @param properties
219         */
220        public void setProperties( java.util.Properties properties )
221        {
222            this.properties = properties;
223        } //-- void setProperties( java.util.Properties )
224    
225        /**
226         * Set the lists of the remote repositories.
227         * 
228         * @param repositories
229         */
230        public void setRepositories( java.util.List<Repository> repositories )
231        {
232            this.repositories = repositories;
233        } //-- void setRepositories( java.util.List )
234    
235    }