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