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   * 
29   *         Schedule for a project.
30   *       
31   * 
32   * @version $Revision$ $Date$
33   */
34  @SuppressWarnings( "all" )
35  public class Schedule
36      implements java.io.Serializable
37  {
38  
39        //--------------------------/
40       //- Class/Member Variables -/
41      //--------------------------/
42  
43      /**
44       * Field id.
45       */
46      private int id = 0;
47  
48      /**
49       * Field active.
50       */
51      private boolean active = false;
52  
53      /**
54       * Field name.
55       */
56      private String name;
57  
58      /**
59       * Field description.
60       */
61      private String description;
62  
63      /**
64       * 
65       *             Delay in seconds.
66       *           
67       */
68      private int delay = 0;
69  
70      /**
71       * 
72       *             Maximum execution time of a job in seconds
73       * before it's
74       *             terminated.
75       *           
76       */
77      private int maxJobExecutionTime = 3600;
78  
79      /**
80       * Field cronExpression.
81       */
82      private String cronExpression;
83  
84  
85        //-----------/
86       //- Methods -/
87      //-----------/
88  
89      /**
90       * Method equals.
91       * 
92       * @param other
93       * @return boolean
94       */
95      public boolean equals( Object other )
96      {
97          if ( this == other )
98          {
99              return true;
100         }
101 
102         if ( !( other instanceof Schedule ) )
103         {
104             return false;
105         }
106 
107         Schedule that = (Schedule) other;
108         boolean result = true;
109 
110         result = result && id == that.id;
111 
112         return result;
113     } //-- boolean equals( Object )
114 
115     /**
116      * Get the cronExpression field.
117      * 
118      * @return String
119      */
120     public String getCronExpression()
121     {
122         return this.cronExpression;
123     } //-- String getCronExpression()
124 
125     /**
126      * Get delay in seconds.
127      * 
128      * @return int
129      */
130     public int getDelay()
131     {
132         return this.delay;
133     } //-- int getDelay()
134 
135     /**
136      * Get the description field.
137      * 
138      * @return String
139      */
140     public String getDescription()
141     {
142         return this.description;
143     } //-- String getDescription()
144 
145     /**
146      * Get the id field.
147      * 
148      * @return int
149      */
150     public int getId()
151     {
152         return this.id;
153     } //-- int getId()
154 
155     /**
156      * Get maximum execution time of a job in seconds before it's
157      *             terminated.
158      * 
159      * @return int
160      */
161     public int getMaxJobExecutionTime()
162     {
163         return this.maxJobExecutionTime;
164     } //-- int getMaxJobExecutionTime()
165 
166     /**
167      * Get the name field.
168      * 
169      * @return String
170      */
171     public String getName()
172     {
173         return this.name;
174     } //-- String getName()
175 
176     /**
177      * Method hashCode.
178      * 
179      * @return int
180      */
181     public int hashCode()
182     {
183         int result = 17;
184 
185         result = 37 * result + (int) id;
186 
187         return result;
188     } //-- int hashCode()
189 
190     /**
191      * Get the active field.
192      * 
193      * @return boolean
194      */
195     public boolean isActive()
196     {
197         return this.active;
198     } //-- boolean isActive()
199 
200     /**
201      * Set the active field.
202      * 
203      * @param active
204      */
205     public void setActive( boolean active )
206     {
207         this.active = active;
208     } //-- void setActive( boolean )
209 
210     /**
211      * Set the cronExpression field.
212      * 
213      * @param cronExpression
214      */
215     public void setCronExpression( String cronExpression )
216     {
217         this.cronExpression = cronExpression;
218     } //-- void setCronExpression( String )
219 
220     /**
221      * Set delay in seconds.
222      * 
223      * @param delay
224      */
225     public void setDelay( int delay )
226     {
227         this.delay = delay;
228     } //-- void setDelay( int )
229 
230     /**
231      * Set the description field.
232      * 
233      * @param description
234      */
235     public void setDescription( String description )
236     {
237         this.description = description;
238     } //-- void setDescription( String )
239 
240     /**
241      * Set the id field.
242      * 
243      * @param id
244      */
245     public void setId( int id )
246     {
247         this.id = id;
248     } //-- void setId( int )
249 
250     /**
251      * Set maximum execution time of a job in seconds before it's
252      *             terminated.
253      * 
254      * @param maxJobExecutionTime
255      */
256     public void setMaxJobExecutionTime( int maxJobExecutionTime )
257     {
258         this.maxJobExecutionTime = maxJobExecutionTime;
259     } //-- void setMaxJobExecutionTime( int )
260 
261     /**
262      * Set the name field.
263      * 
264      * @param name
265      */
266     public void setName( String name )
267     {
268         this.name = name;
269     } //-- void setName( String )
270 
271     /**
272      * Method toString.
273      * 
274      * @return String
275      */
276     public java.lang.String toString()
277     {
278         StringBuilder buf = new StringBuilder( 128 );
279 
280         buf.append( "id = '" );
281         buf.append( getId() );
282         buf.append( "'" );
283 
284         return buf.toString();
285     } //-- java.lang.String toString()
286 
287 }