View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.8.1,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.profiles;
7   
8   /**
9    * 
10   *         Modifications to the build process which is keyed on
11   * some
12   *         sort of environmental parameter.
13   *       
14   * 
15   * @version $Revision$ $Date$
16   */
17  @SuppressWarnings( "all" )
18  public class Profile
19      implements java.io.Serializable
20  {
21  
22        //--------------------------/
23       //- Class/Member Variables -/
24      //--------------------------/
25  
26      /**
27       * The ID of this build profile, for activation
28       *             purposes.
29       */
30      private String id;
31  
32      /**
33       * The conditional logic which will automatically
34       *             trigger the inclusion of this profile.
35       */
36      private Activation activation;
37  
38      /**
39       * Field properties.
40       */
41      private java.util.Properties properties;
42  
43      /**
44       * Field repositories.
45       */
46      private java.util.List<Repository> repositories;
47  
48      /**
49       *  This may be removed or relocated in the near
50       *             future. It is undecided whether plugins really
51       * need a remote
52       *             repository set of their own. 
53       */
54      private java.util.List<Repository> pluginRepositories;
55  
56  
57        //-----------/
58       //- Methods -/
59      //-----------/
60  
61      /**
62       * Method addPluginRepository.
63       * 
64       * @param repository
65       */
66      public void addPluginRepository( Repository repository )
67      {
68          getPluginRepositories().add( repository );
69      } //-- void addPluginRepository( Repository )
70  
71      /**
72       * Method addProperty.
73       * 
74       * @param key
75       * @param value
76       */
77      public void addProperty( String key, String value )
78      {
79          getProperties().put( key, value );
80      } //-- void addProperty( String, String )
81  
82      /**
83       * Method addRepository.
84       * 
85       * @param repository
86       */
87      public void addRepository( Repository repository )
88      {
89          getRepositories().add( repository );
90      } //-- void addRepository( Repository )
91  
92      /**
93       * Get the conditional logic which will automatically
94       *             trigger the inclusion of this profile.
95       * 
96       * @return Activation
97       */
98      public Activation getActivation()
99      {
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 }