View Javadoc

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