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 ProjectScmRoot.
29   * 
30   * @version $Revision$ $Date$
31   */
32  @SuppressWarnings( "all" )
33  public class ProjectScmRoot
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 scmRootAddress.
48       */
49      private String scmRootAddress;
50  
51      /**
52       * Field oldState.
53       */
54      private int oldState = 0;
55  
56      /**
57       * Field state.
58       */
59      private int state = 0;
60  
61      /**
62       * Field error.
63       */
64      private String error;
65  
66  
67        //-----------/
68       //- Methods -/
69      //-----------/
70  
71      /**
72       * Method equals.
73       * 
74       * @param other
75       * @return boolean
76       */
77      public boolean equals( Object other )
78      {
79          if ( this == other )
80          {
81              return true;
82          }
83  
84          if ( !( other instanceof ProjectScmRoot ) )
85          {
86              return false;
87          }
88  
89          ProjectScmRoot that = (ProjectScmRoot) other;
90          boolean result = true;
91  
92          result = result && id == that.id;
93  
94          return result;
95      } //-- boolean equals( Object )
96  
97      /**
98       * Get the error field.
99       * 
100      * @return String
101      */
102     public String getError()
103     {
104         return this.error;
105     } //-- String getError()
106 
107     /**
108      * Get the id field.
109      * 
110      * @return int
111      */
112     public int getId()
113     {
114         return this.id;
115     } //-- int getId()
116 
117     /**
118      * Get the oldState field.
119      * 
120      * @return int
121      */
122     public int getOldState()
123     {
124         return this.oldState;
125     } //-- int getOldState()
126 
127     /**
128      * Get the scmRootAddress field.
129      * 
130      * @return String
131      */
132     public String getScmRootAddress()
133     {
134         return this.scmRootAddress;
135     } //-- String getScmRootAddress()
136 
137     /**
138      * Get the state field.
139      * 
140      * @return int
141      */
142     public int getState()
143     {
144         return this.state;
145     } //-- int getState()
146 
147     /**
148      * Method hashCode.
149      * 
150      * @return int
151      */
152     public int hashCode()
153     {
154         int result = 17;
155 
156         result = 37 * result + (int) id;
157 
158         return result;
159     } //-- int hashCode()
160 
161     /**
162      * Set the error field.
163      * 
164      * @param error
165      */
166     public void setError( String error )
167     {
168         this.error = error;
169     } //-- void setError( String )
170 
171     /**
172      * Set the id field.
173      * 
174      * @param id
175      */
176     public void setId( int id )
177     {
178         this.id = id;
179     } //-- void setId( int )
180 
181     /**
182      * Set the oldState field.
183      * 
184      * @param oldState
185      */
186     public void setOldState( int oldState )
187     {
188         this.oldState = oldState;
189     } //-- void setOldState( int )
190 
191     /**
192      * Set the scmRootAddress field.
193      * 
194      * @param scmRootAddress
195      */
196     public void setScmRootAddress( String scmRootAddress )
197     {
198         this.scmRootAddress = scmRootAddress;
199     } //-- void setScmRootAddress( String )
200 
201     /**
202      * Set the state field.
203      * 
204      * @param state
205      */
206     public void setState( int state )
207     {
208         this.state = state;
209     } //-- void setState( int )
210 
211     /**
212      * Method toString.
213      * 
214      * @return String
215      */
216     public java.lang.String toString()
217     {
218         StringBuilder buf = new StringBuilder( 128 );
219 
220         buf.append( "id = '" );
221         buf.append( getId() );
222         buf.append( "'" );
223 
224         return buf.toString();
225     } //-- java.lang.String toString()
226 
227 }