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