View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.1 on 2011-09-18 11:21:46,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.continuum.model.system;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.continuum.model.project.ProjectScmRoot;
15  import org.apache.continuum.model.release.ContinuumReleaseResult;
16  import org.apache.continuum.model.repository.AbstractPurgeConfiguration;
17  import org.apache.continuum.model.repository.DirectoryPurgeConfiguration;
18  import org.apache.continuum.model.repository.LocalRepository;
19  import org.apache.continuum.model.repository.RepositoryPurgeConfiguration;
20  import org.apache.maven.continuum.model.project.BuildDefinition;
21  import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
22  import org.apache.maven.continuum.model.project.BuildQueue;
23  import org.apache.maven.continuum.model.project.BuildResult;
24  import org.apache.maven.continuum.model.project.ContinuumDatabase;
25  import org.apache.maven.continuum.model.project.Project;
26  import org.apache.maven.continuum.model.project.ProjectDependency;
27  import org.apache.maven.continuum.model.project.ProjectDeveloper;
28  import org.apache.maven.continuum.model.project.ProjectGroup;
29  import org.apache.maven.continuum.model.project.ProjectNotifier;
30  import org.apache.maven.continuum.model.project.Schedule;
31  import org.apache.maven.continuum.model.scm.ChangeFile;
32  import org.apache.maven.continuum.model.scm.ChangeSet;
33  import org.apache.maven.continuum.model.scm.ScmResult;
34  import org.apache.maven.continuum.project.ContinuumProjectState;
35  
36  /**
37   * Class Profile.
38   * 
39   * @version $Revision$ $Date$
40   */
41  @SuppressWarnings( "all" )
42  public class Profile
43      implements java.io.Serializable
44  {
45  
46        //--------------------------/
47       //- Class/Member Variables -/
48      //--------------------------/
49  
50      /**
51       * Field id.
52       */
53      private int id = 0;
54  
55      /**
56       * Field active.
57       */
58      private boolean active = false;
59  
60      /**
61       * Field name.
62       */
63      private String name;
64  
65      /**
66       * Field description.
67       */
68      private String description;
69  
70      /**
71       * Field scmMode.
72       */
73      private int scmMode = 0;
74  
75      /**
76       * Field buildWithoutChanges.
77       */
78      private boolean buildWithoutChanges = false;
79  
80      /**
81       * Field buildAgentGroup.
82       */
83      private String buildAgentGroup = "";
84  
85      /**
86       * Field jdk.
87       */
88      private Installation jdk;
89  
90      /**
91       * Field builder.
92       */
93      private Installation builder;
94  
95      /**
96       * Field environmentVariables.
97       */
98      private java.util.List<Installation> environmentVariables;
99  
100 
101       //-----------/
102      //- Methods -/
103     //-----------/
104 
105     /**
106      * Method addEnvironmentVariable.
107      * 
108      * @param installation
109      */
110     public void addEnvironmentVariable( Installation installation )
111     {
112         getEnvironmentVariables().add( installation );
113     } //-- void addEnvironmentVariable( Installation )
114 
115     /**
116      * Method equals.
117      * 
118      * @param other
119      * @return boolean
120      */
121     public boolean equals( Object other )
122     {
123         if ( this == other )
124         {
125             return true;
126         }
127 
128         if ( !( other instanceof Profile ) )
129         {
130             return false;
131         }
132 
133         Profile that = (Profile) other;
134         boolean result = true;
135 
136         result = result && id == that.id;
137 
138         return result;
139     } //-- boolean equals( Object )
140 
141     /**
142      * Get the buildAgentGroup field.
143      * 
144      * @return String
145      */
146     public String getBuildAgentGroup()
147     {
148         return this.buildAgentGroup;
149     } //-- String getBuildAgentGroup()
150 
151     /**
152      * Get the builder field.
153      * 
154      * @return Installation
155      */
156     public Installation getBuilder()
157     {
158         return this.builder;
159     } //-- Installation getBuilder()
160 
161     /**
162      * Get the description field.
163      * 
164      * @return String
165      */
166     public String getDescription()
167     {
168         return this.description;
169     } //-- String getDescription()
170 
171     /**
172      * Method getEnvironmentVariables.
173      * 
174      * @return List
175      */
176     public java.util.List<Installation> getEnvironmentVariables()
177     {
178         if ( this.environmentVariables == null )
179         {
180             this.environmentVariables = new java.util.ArrayList<Installation>();
181         }
182 
183         return this.environmentVariables;
184     } //-- java.util.List<Installation> getEnvironmentVariables()
185 
186     /**
187      * Get the id field.
188      * 
189      * @return int
190      */
191     public int getId()
192     {
193         return this.id;
194     } //-- int getId()
195 
196     /**
197      * Get the jdk field.
198      * 
199      * @return Installation
200      */
201     public Installation getJdk()
202     {
203         return this.jdk;
204     } //-- Installation getJdk()
205 
206     /**
207      * Get the name field.
208      * 
209      * @return String
210      */
211     public String getName()
212     {
213         return this.name;
214     } //-- String getName()
215 
216     /**
217      * Get the scmMode field.
218      * 
219      * @return int
220      */
221     public int getScmMode()
222     {
223         return this.scmMode;
224     } //-- int getScmMode()
225 
226     /**
227      * Method hashCode.
228      * 
229      * @return int
230      */
231     public int hashCode()
232     {
233         int result = 17;
234 
235         result = 37 * result + (int) id;
236 
237         return result;
238     } //-- int hashCode()
239 
240     /**
241      * Get the active field.
242      * 
243      * @return boolean
244      */
245     public boolean isActive()
246     {
247         return this.active;
248     } //-- boolean isActive()
249 
250     /**
251      * Get the buildWithoutChanges field.
252      * 
253      * @return boolean
254      */
255     public boolean isBuildWithoutChanges()
256     {
257         return this.buildWithoutChanges;
258     } //-- boolean isBuildWithoutChanges()
259 
260     /**
261      * Method removeEnvironmentVariable.
262      * 
263      * @param installation
264      */
265     public void removeEnvironmentVariable( Installation installation )
266     {
267         getEnvironmentVariables().remove( installation );
268     } //-- void removeEnvironmentVariable( Installation )
269 
270     /**
271      * Set the active field.
272      * 
273      * @param active
274      */
275     public void setActive( boolean active )
276     {
277         this.active = active;
278     } //-- void setActive( boolean )
279 
280     /**
281      * Set the buildAgentGroup field.
282      * 
283      * @param buildAgentGroup
284      */
285     public void setBuildAgentGroup( String buildAgentGroup )
286     {
287         this.buildAgentGroup = buildAgentGroup;
288     } //-- void setBuildAgentGroup( String )
289 
290     /**
291      * Set the buildWithoutChanges field.
292      * 
293      * @param buildWithoutChanges
294      */
295     public void setBuildWithoutChanges( boolean buildWithoutChanges )
296     {
297         this.buildWithoutChanges = buildWithoutChanges;
298     } //-- void setBuildWithoutChanges( boolean )
299 
300     /**
301      * Set the builder field.
302      * 
303      * @param builder
304      */
305     public void setBuilder( Installation builder )
306     {
307         this.builder = builder;
308     } //-- void setBuilder( Installation )
309 
310     /**
311      * Set the description field.
312      * 
313      * @param description
314      */
315     public void setDescription( String description )
316     {
317         this.description = description;
318     } //-- void setDescription( String )
319 
320     /**
321      * Set the environmentVariables field.
322      * 
323      * @param environmentVariables
324      */
325     public void setEnvironmentVariables( java.util.List<Installation> environmentVariables )
326     {
327         this.environmentVariables = environmentVariables;
328     } //-- void setEnvironmentVariables( java.util.List )
329 
330     /**
331      * Set the id field.
332      * 
333      * @param id
334      */
335     public void setId( int id )
336     {
337         this.id = id;
338     } //-- void setId( int )
339 
340     /**
341      * Set the jdk field.
342      * 
343      * @param jdk
344      */
345     public void setJdk( Installation jdk )
346     {
347         this.jdk = jdk;
348     } //-- void setJdk( Installation )
349 
350     /**
351      * Set the name field.
352      * 
353      * @param name
354      */
355     public void setName( String name )
356     {
357         this.name = name;
358     } //-- void setName( String )
359 
360     /**
361      * Set the scmMode field.
362      * 
363      * @param scmMode
364      */
365     public void setScmMode( int scmMode )
366     {
367         this.scmMode = scmMode;
368     } //-- void setScmMode( int )
369 
370     /**
371      * Method toString.
372      * 
373      * @return String
374      */
375     public java.lang.String toString()
376     {
377         StringBuilder buf = new StringBuilder( 128 );
378 
379         buf.append( "id = '" );
380         buf.append( getId() );
381         buf.append( "'" );
382 
383         return buf.toString();
384     } //-- java.lang.String toString()
385 
386 }