1
2
3
4
5
6
7
8 package org.apache.maven.continuum.xmlrpc.project;
9
10
11
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
30
31
32 @SuppressWarnings( "all" )
33 public class ProjectScmRoot
34 implements java.io.Serializable
35 {
36
37
38
39
40
41
42
43
44 private int id = 0;
45
46
47
48
49 private String scmRootAddress;
50
51
52
53
54 private int oldState = 0;
55
56
57
58
59 private int state = 0;
60
61
62
63
64 private String error;
65
66
67
68
69
70
71
72
73
74
75
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 }
96
97
98
99
100
101
102 public String getError()
103 {
104 return this.error;
105 }
106
107
108
109
110
111
112 public int getId()
113 {
114 return this.id;
115 }
116
117
118
119
120
121
122 public int getOldState()
123 {
124 return this.oldState;
125 }
126
127
128
129
130
131
132 public String getScmRootAddress()
133 {
134 return this.scmRootAddress;
135 }
136
137
138
139
140
141
142 public int getState()
143 {
144 return this.state;
145 }
146
147
148
149
150
151
152 public int hashCode()
153 {
154 int result = 17;
155
156 result = 37 * result + (int) id;
157
158 return result;
159 }
160
161
162
163
164
165
166 public void setError( String error )
167 {
168 this.error = error;
169 }
170
171
172
173
174
175
176 public void setId( int id )
177 {
178 this.id = id;
179 }
180
181
182
183
184
185
186 public void setOldState( int oldState )
187 {
188 this.oldState = oldState;
189 }
190
191
192
193
194
195
196 public void setScmRootAddress( String scmRootAddress )
197 {
198 this.scmRootAddress = scmRootAddress;
199 }
200
201
202
203
204
205
206 public void setState( int state )
207 {
208 this.state = state;
209 }
210
211
212
213
214
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 }
226
227 }