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