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