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.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
29
30
31 @SuppressWarnings( "all" )
32 public class BuildDefinitionTemplate
33 implements java.io.Serializable
34 {
35
36
37
38
39
40
41
42
43 private int id = 0;
44
45
46
47
48 private String name;
49
50
51
52
53
54
55
56 private boolean continuumDefault = false;
57
58
59
60
61 private String type;
62
63
64
65
66 private java.util.List<BuildDefinition> buildDefinitions;
67
68
69
70
71
72
73
74
75
76
77
78 public void addBuildDefinition( BuildDefinition buildDefinition )
79 {
80 getBuildDefinitions().add( buildDefinition );
81 }
82
83
84
85
86
87
88
89 public boolean equals( Object other )
90 {
91 if ( this == other )
92 {
93 return true;
94 }
95
96 if ( !( other instanceof BuildDefinitionTemplate ) )
97 {
98 return false;
99 }
100
101 BuildDefinitionTemplate that = (BuildDefinitionTemplate) other;
102 boolean result = true;
103
104 result = result && id == that.id;
105
106 return result;
107 }
108
109
110
111
112
113
114 public java.util.List<BuildDefinition> getBuildDefinitions()
115 {
116 if ( this.buildDefinitions == null )
117 {
118 this.buildDefinitions = new java.util.ArrayList<BuildDefinition>();
119 }
120
121 return this.buildDefinitions;
122 }
123
124
125
126
127
128
129 public int getId()
130 {
131 return this.id;
132 }
133
134
135
136
137
138
139 public String getName()
140 {
141 return this.name;
142 }
143
144
145
146
147
148
149
150 public String getType()
151 {
152 return this.type;
153 }
154
155
156
157
158
159
160 public int hashCode()
161 {
162 int result = 17;
163
164 result = 37 * result + (int) id;
165
166 return result;
167 }
168
169
170
171
172
173
174
175 public boolean isContinuumDefault()
176 {
177 return this.continuumDefault;
178 }
179
180
181
182
183
184
185 public void removeBuildDefinition( BuildDefinition buildDefinition )
186 {
187 getBuildDefinitions().remove( buildDefinition );
188 }
189
190
191
192
193
194
195 public void setBuildDefinitions( java.util.List<BuildDefinition> buildDefinitions )
196 {
197 this.buildDefinitions = buildDefinitions;
198 }
199
200
201
202
203
204
205
206 public void setContinuumDefault( boolean continuumDefault )
207 {
208 this.continuumDefault = continuumDefault;
209 }
210
211
212
213
214
215
216 public void setId( int id )
217 {
218 this.id = id;
219 }
220
221
222
223
224
225
226 public void setName( String name )
227 {
228 this.name = name;
229 }
230
231
232
233
234
235
236
237 public void setType( String type )
238 {
239 this.type = type;
240 }
241
242
243
244
245
246
247 public java.lang.String toString()
248 {
249 StringBuilder buf = new StringBuilder( 128 );
250
251 buf.append( "id = '" );
252 buf.append( getId() );
253 buf.append( "'" );
254
255 return buf.toString();
256 }
257
258 }