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