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