View Javadoc

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