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.project;
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.scm.ChangeFile;
21  import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
22  import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
23  import org.apache.maven.continuum.xmlrpc.system.Installation;
24  import org.apache.maven.continuum.xmlrpc.system.Profile;
25  import org.apache.maven.continuum.xmlrpc.system.SystemConfiguration;
26  
27  /**
28   * Class ProjectSummary.
29   * 
30   * @version $Revision$ $Date$
31   */
32  @SuppressWarnings( "all" )
33  public class ProjectSummary
34      implements java.io.Serializable
35  {
36  
37        //--------------------------/
38       //- Class/Member Variables -/
39      //--------------------------/
40  
41      /**
42       * Field id.
43       */
44      private int id = 0;
45  
46      /**
47       * Field groupId.
48       */
49      private String groupId;
50  
51      /**
52       * Field artifactId.
53       */
54      private String artifactId;
55  
56      /**
57       * Field executorId.
58       */
59      private String executorId;
60  
61      /**
62       * Field name.
63       */
64      private String name;
65  
66      /**
67       * Field description.
68       */
69      private String description;
70  
71      /**
72       * Field url.
73       */
74      private String url;
75  
76      /**
77       * Field scmUrl.
78       */
79      private String scmUrl;
80  
81      /**
82       * Field scmTag.
83       */
84      private String scmTag;
85  
86      /**
87       * Field scmUsername.
88       */
89      private String scmUsername;
90  
91      /**
92       * Field scmPassword.
93       */
94      private String scmPassword;
95  
96      /**
97       * Field scmUseCache.
98       */
99      private boolean scmUseCache = false;
100 
101     /**
102      * Field version.
103      */
104     private String version;
105 
106     /**
107      * Field state.
108      */
109     private int state = 1;
110 
111     /**
112      * Field oldState.
113      */
114     private int oldState = 0;
115 
116     /**
117      * Field latestBuildId.
118      */
119     private int latestBuildId = 0;
120 
121     /**
122      * Field buildNumber.
123      */
124     private int buildNumber = 0;
125 
126     /**
127      * Field workingDirectory.
128      */
129     private String workingDirectory;
130 
131     /**
132      * Field relativePath.
133      */
134     private String relativePath;
135 
136     /**
137      * Field projectGroup.
138      */
139     private ProjectGroupSummary projectGroup;
140 
141 
142       //-----------/
143      //- Methods -/
144     //-----------/
145 
146     /**
147      * Method equals.
148      * 
149      * @param other
150      * @return boolean
151      */
152     public boolean equals( Object other )
153     {
154         if ( this == other )
155         {
156             return true;
157         }
158 
159         if ( !( other instanceof ProjectSummary ) )
160         {
161             return false;
162         }
163 
164         ProjectSummary that = (ProjectSummary) other;
165         boolean result = true;
166 
167         result = result && id == that.id;
168 
169         return result;
170     } //-- boolean equals( Object )
171 
172     /**
173      * Get the artifactId field.
174      * 
175      * @return String
176      */
177     public String getArtifactId()
178     {
179         return this.artifactId;
180     } //-- String getArtifactId()
181 
182     /**
183      * Get the buildNumber field.
184      * 
185      * @return int
186      */
187     public int getBuildNumber()
188     {
189         return this.buildNumber;
190     } //-- int getBuildNumber()
191 
192     /**
193      * Get the description field.
194      * 
195      * @return String
196      */
197     public String getDescription()
198     {
199         return this.description;
200     } //-- String getDescription()
201 
202     /**
203      * Get the executorId field.
204      * 
205      * @return String
206      */
207     public String getExecutorId()
208     {
209         return this.executorId;
210     } //-- String getExecutorId()
211 
212     /**
213      * Get the groupId field.
214      * 
215      * @return String
216      */
217     public String getGroupId()
218     {
219         return this.groupId;
220     } //-- String getGroupId()
221 
222     /**
223      * Get the id field.
224      * 
225      * @return int
226      */
227     public int getId()
228     {
229         return this.id;
230     } //-- int getId()
231 
232     /**
233      * Get the latestBuildId field.
234      * 
235      * @return int
236      */
237     public int getLatestBuildId()
238     {
239         return this.latestBuildId;
240     } //-- int getLatestBuildId()
241 
242     /**
243      * Get the name field.
244      * 
245      * @return String
246      */
247     public String getName()
248     {
249         return this.name;
250     } //-- String getName()
251 
252     /**
253      * Get the oldState field.
254      * 
255      * @return int
256      */
257     public int getOldState()
258     {
259         return this.oldState;
260     } //-- int getOldState()
261 
262     /**
263      * Get the projectGroup field.
264      * 
265      * @return ProjectGroupSummary
266      */
267     public ProjectGroupSummary getProjectGroup()
268     {
269         return this.projectGroup;
270     } //-- ProjectGroupSummary getProjectGroup()
271 
272     /**
273      * Get the relativePath field.
274      * 
275      * @return String
276      */
277     public String getRelativePath()
278     {
279         return this.relativePath;
280     } //-- String getRelativePath()
281 
282     /**
283      * Get the scmPassword field.
284      * 
285      * @return String
286      */
287     public String getScmPassword()
288     {
289         return this.scmPassword;
290     } //-- String getScmPassword()
291 
292     /**
293      * Get the scmTag field.
294      * 
295      * @return String
296      */
297     public String getScmTag()
298     {
299         return this.scmTag;
300     } //-- String getScmTag()
301 
302     /**
303      * Get the scmUrl field.
304      * 
305      * @return String
306      */
307     public String getScmUrl()
308     {
309         return this.scmUrl;
310     } //-- String getScmUrl()
311 
312     /**
313      * Get the scmUsername field.
314      * 
315      * @return String
316      */
317     public String getScmUsername()
318     {
319         return this.scmUsername;
320     } //-- String getScmUsername()
321 
322     /**
323      * Get the state field.
324      * 
325      * @return int
326      */
327     public int getState()
328     {
329         return this.state;
330     } //-- int getState()
331 
332     /**
333      * Get the url field.
334      * 
335      * @return String
336      */
337     public String getUrl()
338     {
339         return this.url;
340     } //-- String getUrl()
341 
342     /**
343      * Get the version field.
344      * 
345      * @return String
346      */
347     public String getVersion()
348     {
349         return this.version;
350     } //-- String getVersion()
351 
352     /**
353      * Get the workingDirectory field.
354      * 
355      * @return String
356      */
357     public String getWorkingDirectory()
358     {
359         return this.workingDirectory;
360     } //-- String getWorkingDirectory()
361 
362     /**
363      * Method hashCode.
364      * 
365      * @return int
366      */
367     public int hashCode()
368     {
369         int result = 17;
370 
371         result = 37 * result + (int) id;
372 
373         return result;
374     } //-- int hashCode()
375 
376     /**
377      * Get the scmUseCache field.
378      * 
379      * @return boolean
380      */
381     public boolean isScmUseCache()
382     {
383         return this.scmUseCache;
384     } //-- boolean isScmUseCache()
385 
386     /**
387      * Set the artifactId field.
388      * 
389      * @param artifactId
390      */
391     public void setArtifactId( String artifactId )
392     {
393         this.artifactId = artifactId;
394     } //-- void setArtifactId( String )
395 
396     /**
397      * Set the buildNumber field.
398      * 
399      * @param buildNumber
400      */
401     public void setBuildNumber( int buildNumber )
402     {
403         this.buildNumber = buildNumber;
404     } //-- void setBuildNumber( int )
405 
406     /**
407      * Set the description field.
408      * 
409      * @param description
410      */
411     public void setDescription( String description )
412     {
413         this.description = description;
414     } //-- void setDescription( String )
415 
416     /**
417      * Set the executorId field.
418      * 
419      * @param executorId
420      */
421     public void setExecutorId( String executorId )
422     {
423         this.executorId = executorId;
424     } //-- void setExecutorId( String )
425 
426     /**
427      * Set the groupId field.
428      * 
429      * @param groupId
430      */
431     public void setGroupId( String groupId )
432     {
433         this.groupId = groupId;
434     } //-- void setGroupId( String )
435 
436     /**
437      * Set the id field.
438      * 
439      * @param id
440      */
441     public void setId( int id )
442     {
443         this.id = id;
444     } //-- void setId( int )
445 
446     /**
447      * Set the latestBuildId field.
448      * 
449      * @param latestBuildId
450      */
451     public void setLatestBuildId( int latestBuildId )
452     {
453         this.latestBuildId = latestBuildId;
454     } //-- void setLatestBuildId( int )
455 
456     /**
457      * Set the name field.
458      * 
459      * @param name
460      */
461     public void setName( String name )
462     {
463         this.name = name;
464     } //-- void setName( String )
465 
466     /**
467      * Set the oldState field.
468      * 
469      * @param oldState
470      */
471     public void setOldState( int oldState )
472     {
473         this.oldState = oldState;
474     } //-- void setOldState( int )
475 
476     /**
477      * Set the projectGroup field.
478      * 
479      * @param projectGroup
480      */
481     public void setProjectGroup( ProjectGroupSummary projectGroup )
482     {
483         this.projectGroup = projectGroup;
484     } //-- void setProjectGroup( ProjectGroupSummary )
485 
486     /**
487      * Set the relativePath field.
488      * 
489      * @param relativePath
490      */
491     public void setRelativePath( String relativePath )
492     {
493         this.relativePath = relativePath;
494     } //-- void setRelativePath( String )
495 
496     /**
497      * Set the scmPassword field.
498      * 
499      * @param scmPassword
500      */
501     public void setScmPassword( String scmPassword )
502     {
503         this.scmPassword = scmPassword;
504     } //-- void setScmPassword( String )
505 
506     /**
507      * Set the scmTag field.
508      * 
509      * @param scmTag
510      */
511     public void setScmTag( String scmTag )
512     {
513         this.scmTag = scmTag;
514     } //-- void setScmTag( String )
515 
516     /**
517      * Set the scmUrl field.
518      * 
519      * @param scmUrl
520      */
521     public void setScmUrl( String scmUrl )
522     {
523         this.scmUrl = scmUrl;
524     } //-- void setScmUrl( String )
525 
526     /**
527      * Set the scmUseCache field.
528      * 
529      * @param scmUseCache
530      */
531     public void setScmUseCache( boolean scmUseCache )
532     {
533         this.scmUseCache = scmUseCache;
534     } //-- void setScmUseCache( boolean )
535 
536     /**
537      * Set the scmUsername field.
538      * 
539      * @param scmUsername
540      */
541     public void setScmUsername( String scmUsername )
542     {
543         this.scmUsername = scmUsername;
544     } //-- void setScmUsername( String )
545 
546     /**
547      * Set the state field.
548      * 
549      * @param state
550      */
551     public void setState( int state )
552     {
553         this.state = state;
554     } //-- void setState( int )
555 
556     /**
557      * Set the url field.
558      * 
559      * @param url
560      */
561     public void setUrl( String url )
562     {
563         this.url = url;
564     } //-- void setUrl( String )
565 
566     /**
567      * Set the version field.
568      * 
569      * @param version
570      */
571     public void setVersion( String version )
572     {
573         this.version = version;
574     } //-- void setVersion( String )
575 
576     /**
577      * Set the workingDirectory field.
578      * 
579      * @param workingDirectory
580      */
581     public void setWorkingDirectory( String workingDirectory )
582     {
583         this.workingDirectory = workingDirectory;
584     } //-- void setWorkingDirectory( String )
585 
586     /**
587      * Method toString.
588      * 
589      * @return String
590      */
591     public java.lang.String toString()
592     {
593         StringBuilder buf = new StringBuilder( 128 );
594 
595         buf.append( "id = '" );
596         buf.append( getId() );
597         buf.append( "'" );
598 
599         return buf.toString();
600     } //-- java.lang.String toString()
601 
602 }