View Javadoc

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