1
2
3
4
5
6
7
8
9 package org.jomc.tools.model;
10
11 import java.io.ByteArrayInputStream;
12 import java.io.ByteArrayOutputStream;
13 import java.io.File;
14 import java.io.IOException;
15 import java.io.InvalidClassException;
16 import java.io.NotSerializableException;
17 import java.io.ObjectInputStream;
18 import java.io.ObjectOutputStream;
19 import java.io.OptionalDataException;
20 import java.io.Serializable;
21 import java.io.StreamCorruptedException;
22 import java.lang.reflect.Array;
23 import java.lang.reflect.InvocationTargetException;
24 import java.math.BigDecimal;
25 import java.math.BigInteger;
26 import java.net.MalformedURLException;
27 import java.net.URI;
28 import java.net.URISyntaxException;
29 import java.net.URL;
30 import java.util.ArrayList;
31 import java.util.Calendar;
32 import java.util.Currency;
33 import java.util.Date;
34 import java.util.Iterator;
35 import java.util.List;
36 import java.util.Locale;
37 import java.util.TimeZone;
38 import java.util.UUID;
39 import javax.activation.MimeType;
40 import javax.activation.MimeTypeParseException;
41 import javax.annotation.Generated;
42 import javax.xml.bind.JAXBElement;
43 import javax.xml.bind.annotation.XmlAccessType;
44 import javax.xml.bind.annotation.XmlAccessorType;
45 import javax.xml.bind.annotation.XmlAnyElement;
46 import javax.xml.bind.annotation.XmlAttribute;
47 import javax.xml.bind.annotation.XmlElement;
48 import javax.xml.bind.annotation.XmlType;
49 import javax.xml.datatype.Duration;
50 import javax.xml.datatype.XMLGregorianCalendar;
51 import javax.xml.namespace.QName;
52 import org.w3c.dom.Element;
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84 @XmlAccessorType(XmlAccessType.FIELD)
85 @XmlType(name = "SourceSectionType", namespace = "http://jomc.org/tools/model", propOrder = {
86 "sourceSections",
87 "templateParameter",
88 "any"
89 })
90 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
91 public class SourceSectionType
92 extends ToolsType
93 implements Cloneable
94 {
95
96 @XmlElement(name = "source-sections", namespace = "http://jomc.org/tools/model")
97 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
98 protected SourceSectionsType sourceSections;
99 @XmlElement(name = "template-parameter", namespace = "http://jomc.org/tools/model")
100 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
101 protected List<TemplateParameterType> templateParameter;
102 @XmlAnyElement(lax = true)
103 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
104 protected List<Object> any;
105 @XmlAttribute(name = "name", required = true)
106 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
107 protected String name;
108 @XmlAttribute(name = "head-template")
109 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
110 protected String headTemplate;
111 @XmlAttribute(name = "tail-template")
112 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
113 protected String tailTemplate;
114 @XmlAttribute(name = "indentationLevel")
115 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
116 protected Integer indentationLevel;
117 @XmlAttribute(name = "optional")
118 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
119 protected Boolean optional;
120 @XmlAttribute(name = "editable")
121 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
122 protected Boolean editable;
123
124
125
126
127
128 public SourceSectionType() {
129
130 super();
131 }
132
133
134
135
136
137
138
139
140
141
142 public SourceSectionType(final SourceSectionType o) {
143
144 super(o);
145 if (o == null) {
146 throw new NullPointerException("Cannot create a copy of 'SourceSectionType' from 'null'.");
147 }
148
149 this.sourceSections = ((o.sourceSections == null)?null:((o.getSourceSections() == null)?null:o.getSourceSections().clone()));
150
151 if (o.templateParameter!= null) {
152 copyTemplateParameter(o.getTemplateParameter(), this.getTemplateParameter());
153 }
154
155 if (o.any!= null) {
156 copyAny(o.getAny(), this.getAny());
157 }
158
159 this.name = ((o.name == null)?null:o.getName());
160
161 this.headTemplate = ((o.headTemplate == null)?null:o.getHeadTemplate());
162
163 this.tailTemplate = ((o.tailTemplate == null)?null:o.getTailTemplate());
164
165 this.indentationLevel = ((o.indentationLevel == null)?null:o.getIndentationLevel());
166
167 this.optional = ((o.optional == null)?null:o.isOptional());
168
169 this.editable = ((o.editable == null)?null:o.isEditable());
170 }
171
172
173
174
175
176
177
178
179
180 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
181 public SourceSectionsType getSourceSections() {
182 return sourceSections;
183 }
184
185
186
187
188
189
190
191
192
193 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
194 public void setSourceSections(SourceSectionsType value) {
195 this.sourceSections = value;
196 }
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
221 public List<TemplateParameterType> getTemplateParameter() {
222 if (templateParameter == null) {
223 templateParameter = new ArrayList<TemplateParameterType>();
224 }
225 return this.templateParameter;
226 }
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
252 public List<Object> getAny() {
253 if (any == null) {
254 any = new ArrayList<Object>();
255 }
256 return this.any;
257 }
258
259
260
261
262
263
264
265
266
267 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
268 public String getName() {
269 return name;
270 }
271
272
273
274
275
276
277
278
279
280 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
281 public void setName(String value) {
282 this.name = value;
283 }
284
285
286
287
288
289
290
291
292
293 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
294 public String getHeadTemplate() {
295 return headTemplate;
296 }
297
298
299
300
301
302
303
304
305
306 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
307 public void setHeadTemplate(String value) {
308 this.headTemplate = value;
309 }
310
311
312
313
314
315
316
317
318
319 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
320 public String getTailTemplate() {
321 return tailTemplate;
322 }
323
324
325
326
327
328
329
330
331
332 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
333 public void setTailTemplate(String value) {
334 this.tailTemplate = value;
335 }
336
337
338
339
340
341
342
343
344
345 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
346 public int getIndentationLevel() {
347 if (indentationLevel == null) {
348 return 0;
349 } else {
350 return indentationLevel;
351 }
352 }
353
354
355
356
357
358
359
360
361
362 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
363 public void setIndentationLevel(Integer value) {
364 this.indentationLevel = value;
365 }
366
367
368
369
370
371
372
373
374
375 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
376 public boolean isOptional() {
377 if (optional == null) {
378 return false;
379 } else {
380 return optional;
381 }
382 }
383
384
385
386
387
388
389
390
391
392 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
393 public void setOptional(Boolean value) {
394 this.optional = value;
395 }
396
397
398
399
400
401
402
403
404
405 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
406 public boolean isEditable() {
407 if (editable == null) {
408 return false;
409 } else {
410 return editable;
411 }
412 }
413
414
415
416
417
418
419
420
421
422 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
423 public void setEditable(Boolean value) {
424 this.editable = value;
425 }
426
427
428
429
430
431
432
433
434
435
436
437 @SuppressWarnings("unchecked")
438 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
439 private static void copyTemplateParameter(final List<TemplateParameterType> source, final List<TemplateParameterType> target) {
440
441 if ((source!= null)&&(!source.isEmpty())) {
442 for (final Iterator<?> it = source.iterator(); it.hasNext(); ) {
443 final Object next = it.next();
444 if (next instanceof TemplateParameterType) {
445
446 target.add(((TemplateParameterType) next).clone());
447 continue;
448 }
449
450 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'TemplateParameter' of class 'org.jomc.tools.model.SourceSectionType'."));
451 }
452 }
453 }
454
455
456
457
458
459
460
461
462
463
464
465 @SuppressWarnings("unchecked")
466 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
467 private static void copyAny(final List<Object> source, final List<Object> target) {
468
469 if ((source!= null)&&(!source.isEmpty())) {
470 for (final Iterator<?> it = source.iterator(); it.hasNext(); ) {
471 final Object next = it.next();
472 if (next instanceof Element) {
473
474 target.add(((Element)((Element) next).cloneNode(true)));
475 continue;
476 }
477 if (next instanceof Object) {
478
479 target.add(copyOf(((Object) next)));
480 continue;
481 }
482
483 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'Any' of class 'org.jomc.tools.model.SourceSectionType'."));
484 }
485 }
486 }
487
488
489
490
491
492
493
494
495
496 @SuppressWarnings("unchecked")
497 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
498 private static Object copyOf(final Object o) {
499
500 try {
501 if (o!= null) {
502 if (o.getClass().isPrimitive()) {
503 return o;
504 }
505 if (o.getClass().isArray()) {
506 return copyOfArray(o);
507 }
508
509 if (o instanceof Boolean) {
510 return o;
511 }
512 if (o instanceof Byte) {
513 return o;
514 }
515 if (o instanceof Character) {
516 return o;
517 }
518 if (o instanceof Double) {
519 return o;
520 }
521 if (o instanceof Enum) {
522 return o;
523 }
524 if (o instanceof Float) {
525 return o;
526 }
527 if (o instanceof Integer) {
528 return o;
529 }
530 if (o instanceof Long) {
531 return o;
532 }
533 if (o instanceof Short) {
534 return o;
535 }
536 if (o instanceof String) {
537 return o;
538 }
539 if (o instanceof BigDecimal) {
540 return o;
541 }
542 if (o instanceof BigInteger) {
543 return o;
544 }
545 if (o instanceof UUID) {
546 return o;
547 }
548 if (o instanceof QName) {
549 return o;
550 }
551 if (o instanceof Duration) {
552 return o;
553 }
554 if (o instanceof Currency) {
555 return o;
556 }
557
558 if (o instanceof File) {
559 return new File(o.toString());
560 }
561 if (o instanceof URI) {
562 return new URI(o.toString());
563 }
564 if (o instanceof URL) {
565 return new URL(o.toString());
566 }
567 if (o instanceof MimeType) {
568 return new MimeType(o.toString());
569 }
570
571 if (o instanceof XMLGregorianCalendar) {
572 return ((XMLGregorianCalendar) o).clone();
573 }
574 if (o instanceof Date) {
575 return ((Date) o).clone();
576 }
577 if (o instanceof Calendar) {
578 return ((Calendar) o).clone();
579 }
580 if (o instanceof TimeZone) {
581 return ((TimeZone) o).clone();
582 }
583 if (o instanceof Locale) {
584 return ((Locale) o).clone();
585 }
586 if (o instanceof Element) {
587 return ((Element)((Element) o).cloneNode(true));
588 }
589 if (o instanceof JAXBElement) {
590 return copyOf(((JAXBElement) o));
591 }
592 try {
593 return o.getClass().getMethod("clone", ((Class[]) null)).invoke(o, ((Object[]) null));
594 } catch (NoSuchMethodException e) {
595 if (o instanceof Serializable) {
596 return copyOf(((Serializable) o));
597 }
598
599 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
600 } catch (IllegalAccessException e) {
601
602 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
603 } catch (InvocationTargetException e) {
604
605 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
606 } catch (SecurityException e) {
607
608 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
609 } catch (IllegalArgumentException e) {
610
611 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
612 } catch (ExceptionInInitializerError e) {
613
614 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
615 }
616 }
617 return null;
618 } catch (MimeTypeParseException e) {
619 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
620 } catch (MalformedURLException e) {
621 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
622 } catch (URISyntaxException e) {
623 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e));
624 }
625 }
626
627
628
629
630
631
632
633
634
635 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
636 private static Object copyOfArray(final Object array) {
637
638 if (array!= null) {
639 if (array.getClass() == boolean[].class) {
640 return copyOf(((boolean[]) array));
641 }
642 if (array.getClass() == byte[].class) {
643 return copyOf(((byte[]) array));
644 }
645 if (array.getClass() == char[].class) {
646 return copyOf(((char[]) array));
647 }
648 if (array.getClass() == double[].class) {
649 return copyOf(((double[]) array));
650 }
651 if (array.getClass() == float[].class) {
652 return copyOf(((float[]) array));
653 }
654 if (array.getClass() == int[].class) {
655 return copyOf(((int[]) array));
656 }
657 if (array.getClass() == long[].class) {
658 return copyOf(((long[]) array));
659 }
660 if (array.getClass() == short[].class) {
661 return copyOf(((short[]) array));
662 }
663 final int len = Array.getLength(array);
664 final Object copy = Array.newInstance(array.getClass().getComponentType(), len);
665 for (int i = (len- 1); (i >= 0); i--) {
666 Array.set(copy, i, copyOf(Array.get(array, i)));
667 }
668 return copy;
669 }
670 return null;
671 }
672
673
674
675
676
677
678
679
680
681 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
682 private static boolean[] copyOf(final boolean[] array) {
683
684 if (array!= null) {
685 final boolean[] copy = ((boolean[]) Array.newInstance(array.getClass().getComponentType(), array.length));
686 System.arraycopy(array, 0, copy, 0, array.length);
687 return copy;
688 }
689 return null;
690 }
691
692
693
694
695
696
697
698
699
700 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
701 private static byte[] copyOf(final byte[] array) {
702
703 if (array!= null) {
704 final byte[] copy = ((byte[]) Array.newInstance(array.getClass().getComponentType(), array.length));
705 System.arraycopy(array, 0, copy, 0, array.length);
706 return copy;
707 }
708 return null;
709 }
710
711
712
713
714
715
716
717
718
719 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
720 private static char[] copyOf(final char[] array) {
721
722 if (array!= null) {
723 final char[] copy = ((char[]) Array.newInstance(array.getClass().getComponentType(), array.length));
724 System.arraycopy(array, 0, copy, 0, array.length);
725 return copy;
726 }
727 return null;
728 }
729
730
731
732
733
734
735
736
737
738 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
739 private static double[] copyOf(final double[] array) {
740
741 if (array!= null) {
742 final double[] copy = ((double[]) Array.newInstance(array.getClass().getComponentType(), array.length));
743 System.arraycopy(array, 0, copy, 0, array.length);
744 return copy;
745 }
746 return null;
747 }
748
749
750
751
752
753
754
755
756
757 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
758 private static float[] copyOf(final float[] array) {
759
760 if (array!= null) {
761 final float[] copy = ((float[]) Array.newInstance(array.getClass().getComponentType(), array.length));
762 System.arraycopy(array, 0, copy, 0, array.length);
763 return copy;
764 }
765 return null;
766 }
767
768
769
770
771
772
773
774
775
776 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
777 private static int[] copyOf(final int[] array) {
778
779 if (array!= null) {
780 final int[] copy = ((int[]) Array.newInstance(array.getClass().getComponentType(), array.length));
781 System.arraycopy(array, 0, copy, 0, array.length);
782 return copy;
783 }
784 return null;
785 }
786
787
788
789
790
791
792
793
794
795 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
796 private static long[] copyOf(final long[] array) {
797
798 if (array!= null) {
799 final long[] copy = ((long[]) Array.newInstance(array.getClass().getComponentType(), array.length));
800 System.arraycopy(array, 0, copy, 0, array.length);
801 return copy;
802 }
803 return null;
804 }
805
806
807
808
809
810
811
812
813
814 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
815 private static short[] copyOf(final short[] array) {
816
817 if (array!= null) {
818 final short[] copy = ((short[]) Array.newInstance(array.getClass().getComponentType(), array.length));
819 System.arraycopy(array, 0, copy, 0, array.length);
820 return copy;
821 }
822 return null;
823 }
824
825
826
827
828
829
830
831
832
833 @SuppressWarnings("unchecked")
834 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
835 private static JAXBElement copyOf(final JAXBElement element) {
836
837 if (element!= null) {
838 final JAXBElement copy = new JAXBElement(element.getName(), element.getDeclaredType(), element.getScope(), element.getValue());
839 copy.setNil(element.isNil());
840 copy.setValue(copyOf(copy.getValue()));
841 return copy;
842 }
843 return null;
844 }
845
846
847
848
849
850
851
852
853
854 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
855 private static Serializable copyOf(final Serializable serializable) {
856
857 if (serializable!= null) {
858 try {
859 final ByteArrayOutputStream byteArrayOutput = new ByteArrayOutputStream();
860 final ObjectOutputStream out = new ObjectOutputStream(byteArrayOutput);
861 out.writeObject(serializable);
862 out.close();
863 final ByteArrayInputStream byteArrayInput = new ByteArrayInputStream(byteArrayOutput.toByteArray());
864 final ObjectInputStream in = new ObjectInputStream(byteArrayInput);
865 final Serializable copy = ((Serializable) in.readObject());
866 in.close();
867 return copy;
868 } catch (SecurityException e) {
869 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
870 } catch (ClassNotFoundException e) {
871 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
872 } catch (InvalidClassException e) {
873 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
874 } catch (NotSerializableException e) {
875 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
876 } catch (StreamCorruptedException e) {
877 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
878 } catch (OptionalDataException e) {
879 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
880 } catch (IOException e) {
881 throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e));
882 }
883 }
884 return null;
885 }
886
887
888
889
890
891
892
893
894 @Override
895 @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-05-31T05:43:54+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
896 public SourceSectionType clone() {
897 {
898
899 final SourceSectionType clone = ((SourceSectionType) super.clone());
900
901 clone.sourceSections = ((this.sourceSections == null)?null:((this.getSourceSections() == null)?null:this.getSourceSections().clone()));
902
903 if (this.templateParameter!= null) {
904 clone.templateParameter = null;
905 copyTemplateParameter(this.getTemplateParameter(), clone.getTemplateParameter());
906 }
907
908 if (this.any!= null) {
909 clone.any = null;
910 copyAny(this.getAny(), clone.getAny());
911 }
912
913 clone.name = ((this.name == null)?null:this.getName());
914
915 clone.headTemplate = ((this.headTemplate == null)?null:this.getHeadTemplate());
916
917 clone.tailTemplate = ((this.tailTemplate == null)?null:this.getTailTemplate());
918
919 clone.indentationLevel = ((this.indentationLevel == null)?null:this.getIndentationLevel());
920
921 clone.optional = ((this.optional == null)?null:this.isOptional());
922
923 clone.editable = ((this.editable == null)?null:this.isEditable());
924 return clone;
925 }
926 }
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945 public <T> javax.xml.bind.JAXBElement<T> getAnyElement( final String namespaceURI, final String localPart,
946 final Class<T> type )
947 {
948 return this.getAnyElement( this.getAny(), namespaceURI, localPart, type );
949 }
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967 public <T> java.util.List<javax.xml.bind.JAXBElement<T>> getAnyElements( final String namespaceURI,
968 final String localPart,
969 final Class<T> type )
970 {
971 return this.getAnyElements( this.getAny(), namespaceURI, localPart, type );
972 }
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988 public <T> T getAnyObject( final Class<T> clazz )
989 {
990 return this.getAnyObject( this.getAny(), clazz );
991 }
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006 public <T> java.util.List<T> getAnyObjects( final Class<T> clazz )
1007 {
1008 return this.getAnyObjects( this.getAny(), clazz );
1009 }
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024 public TemplateParameterType getTemplateParameter( final String name )
1025 {
1026 if ( name == null )
1027 {
1028 throw new NullPointerException( "name" );
1029 }
1030
1031 for ( int i = 0, s0 = this.getTemplateParameter().size(); i < s0; i++ )
1032 {
1033 final TemplateParameterType t = this.getTemplateParameter().get( i );
1034
1035 if ( name.equals( t.getName() ) )
1036 {
1037 return t;
1038 }
1039 }
1040
1041 return null;
1042 }
1043
1044 }