1
2
3
4
5
6
7
8
9 package org.jomc.model.test;
10
11 import java.util.ArrayList;
12 import java.util.Iterator;
13 import java.util.List;
14 import javax.annotation.Generated;
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlElement;
18 import javax.xml.bind.annotation.XmlType;
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 @XmlAccessorType(XmlAccessType.FIELD)
46 @XmlType(name = "TestSuite", namespace = "http://jomc.org/model/test", propOrder = {
47 "schemaConstraintsTest",
48 "modulesConstraintsTest",
49 "implementationTest",
50 "instanceTest"
51 })
52 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
53 public class TestSuite implements Cloneable
54 {
55
56 @XmlElement(name = "schema-constraints-test", namespace = "http://jomc.org/model/test")
57 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
58 protected List<SchemaConstraintsTestType> schemaConstraintsTest;
59 @XmlElement(name = "modules-constraints-test", namespace = "http://jomc.org/model/test")
60 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
61 protected List<ModulesConstraintsTestType> modulesConstraintsTest;
62 @XmlElement(name = "implementation-test", namespace = "http://jomc.org/model/test")
63 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
64 protected List<ImplementationTestType> implementationTest;
65 @XmlElement(name = "instance-test", namespace = "http://jomc.org/model/test")
66 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
67 protected List<InstanceTestType> instanceTest;
68
69
70
71
72
73 public TestSuite() {
74
75 super();
76 }
77
78
79
80
81
82
83
84
85
86
87 public TestSuite(final TestSuite o) {
88
89 super();
90 if (o == null) {
91 throw new NullPointerException("Cannot create a copy of 'TestSuite' from 'null'.");
92 }
93
94 if (o.schemaConstraintsTest!= null) {
95 copySchemaConstraintsTest(o.getSchemaConstraintsTest(), this.getSchemaConstraintsTest());
96 }
97
98 if (o.modulesConstraintsTest!= null) {
99 copyModulesConstraintsTest(o.getModulesConstraintsTest(), this.getModulesConstraintsTest());
100 }
101
102 if (o.implementationTest!= null) {
103 copyImplementationTest(o.getImplementationTest(), this.getImplementationTest());
104 }
105
106 if (o.instanceTest!= null) {
107 copyInstanceTest(o.getInstanceTest(), this.getInstanceTest());
108 }
109 }
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
134 public List<SchemaConstraintsTestType> getSchemaConstraintsTest() {
135 if (schemaConstraintsTest == null) {
136 schemaConstraintsTest = new ArrayList<SchemaConstraintsTestType>();
137 }
138 return this.schemaConstraintsTest;
139 }
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
164 public List<ModulesConstraintsTestType> getModulesConstraintsTest() {
165 if (modulesConstraintsTest == null) {
166 modulesConstraintsTest = new ArrayList<ModulesConstraintsTestType>();
167 }
168 return this.modulesConstraintsTest;
169 }
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
194 public List<ImplementationTestType> getImplementationTest() {
195 if (implementationTest == null) {
196 implementationTest = new ArrayList<ImplementationTestType>();
197 }
198 return this.implementationTest;
199 }
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
224 public List<InstanceTestType> getInstanceTest() {
225 if (instanceTest == null) {
226 instanceTest = new ArrayList<InstanceTestType>();
227 }
228 return this.instanceTest;
229 }
230
231
232
233
234
235
236
237
238
239
240
241 @SuppressWarnings("unchecked")
242 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
243 private static void copySchemaConstraintsTest(final List<SchemaConstraintsTestType> source, final List<SchemaConstraintsTestType> target) {
244
245 if ((source!= null)&&(!source.isEmpty())) {
246 for (final Iterator<?> it = source.iterator(); it.hasNext(); ) {
247 final Object next = it.next();
248 if (next instanceof SchemaConstraintsTestType) {
249
250 target.add(((SchemaConstraintsTestType) next).clone());
251 continue;
252 }
253
254 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'SchemaConstraintsTest' of class 'org.jomc.model.test.TestSuite'."));
255 }
256 }
257 }
258
259
260
261
262
263
264
265
266
267
268
269 @SuppressWarnings("unchecked")
270 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
271 private static void copyModulesConstraintsTest(final List<ModulesConstraintsTestType> source, final List<ModulesConstraintsTestType> target) {
272
273 if ((source!= null)&&(!source.isEmpty())) {
274 for (final Iterator<?> it = source.iterator(); it.hasNext(); ) {
275 final Object next = it.next();
276 if (next instanceof ModulesConstraintsTestType) {
277
278 target.add(((ModulesConstraintsTestType) next).clone());
279 continue;
280 }
281
282 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'ModulesConstraintsTest' of class 'org.jomc.model.test.TestSuite'."));
283 }
284 }
285 }
286
287
288
289
290
291
292
293
294
295
296
297 @SuppressWarnings("unchecked")
298 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
299 private static void copyImplementationTest(final List<ImplementationTestType> source, final List<ImplementationTestType> target) {
300
301 if ((source!= null)&&(!source.isEmpty())) {
302 for (final Iterator<?> it = source.iterator(); it.hasNext(); ) {
303 final Object next = it.next();
304 if (next instanceof ImplementationTestType) {
305
306 target.add(((ImplementationTestType) next).clone());
307 continue;
308 }
309
310 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'ImplementationTest' of class 'org.jomc.model.test.TestSuite'."));
311 }
312 }
313 }
314
315
316
317
318
319
320
321
322
323
324
325 @SuppressWarnings("unchecked")
326 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
327 private static void copyInstanceTest(final List<InstanceTestType> source, final List<InstanceTestType> target) {
328
329 if ((source!= null)&&(!source.isEmpty())) {
330 for (final Iterator<?> it = source.iterator(); it.hasNext(); ) {
331 final Object next = it.next();
332 if (next instanceof InstanceTestType) {
333
334 target.add(((InstanceTestType) next).clone());
335 continue;
336 }
337
338 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'InstanceTest' of class 'org.jomc.model.test.TestSuite'."));
339 }
340 }
341 }
342
343
344
345
346
347
348
349
350 @Override
351 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
352 public TestSuite clone() {
353 try {
354 {
355
356 final TestSuite clone = ((TestSuite) super.clone());
357
358 if (this.schemaConstraintsTest!= null) {
359 clone.schemaConstraintsTest = null;
360 copySchemaConstraintsTest(this.getSchemaConstraintsTest(), clone.getSchemaConstraintsTest());
361 }
362
363 if (this.modulesConstraintsTest!= null) {
364 clone.modulesConstraintsTest = null;
365 copyModulesConstraintsTest(this.getModulesConstraintsTest(), clone.getModulesConstraintsTest());
366 }
367
368 if (this.implementationTest!= null) {
369 clone.implementationTest = null;
370 copyImplementationTest(this.getImplementationTest(), clone.getImplementationTest());
371 }
372
373 if (this.instanceTest!= null) {
374 clone.instanceTest = null;
375 copyInstanceTest(this.getInstanceTest(), clone.getInstanceTest());
376 }
377 return clone;
378 }
379 } catch (CloneNotSupportedException e) {
380
381 throw new AssertionError(e);
382 }
383 }
384
385 }