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