1
2
3
4
5
6
7
8 package org.exolab.castor.builder.binding.xml;
9
10
11
12
13
14
15
16
17
18
19
20
21 public class Binding implements java.io.Serializable {
22
23
24
25
26
27
28
29
30
31 private org.exolab.castor.builder.binding.xml.types.BindingType _defaultBindingType = org.exolab.castor.builder.binding.xml.types.BindingType.valueOf("element");
32
33
34
35
36 private java.util.List _includeList;
37
38
39
40
41 private java.util.List _packageList;
42
43
44
45
46 private org.exolab.castor.builder.binding.xml.NamingXMLType _namingXML;
47
48
49
50
51 private org.exolab.castor.builder.binding.xml.AutomaticNamingType _automaticNaming;
52
53
54
55
56 private java.util.List _componentBindingList;
57
58
59
60
61 private java.util.List _elementBindingList;
62
63
64
65
66 private java.util.List _attributeBindingList;
67
68
69
70
71 private java.util.List _complexTypeBindingList;
72
73
74
75
76 private java.util.List _groupBindingList;
77
78
79
80
81 private java.util.List _enumBindingList;
82
83
84
85
86 private java.util.List _simpleTypeBindingList;
87
88
89
90
91
92
93 public Binding() {
94 super();
95 setDefaultBindingType(org.exolab.castor.builder.binding.xml.types.BindingType.valueOf("element"));
96 this._includeList = new java.util.ArrayList();
97 this._packageList = new java.util.ArrayList();
98 this._componentBindingList = new java.util.ArrayList();
99 this._elementBindingList = new java.util.ArrayList();
100 this._attributeBindingList = new java.util.ArrayList();
101 this._complexTypeBindingList = new java.util.ArrayList();
102 this._groupBindingList = new java.util.ArrayList();
103 this._enumBindingList = new java.util.ArrayList();
104 this._simpleTypeBindingList = new java.util.ArrayList();
105 }
106
107
108
109
110
111
112
113
114
115
116
117
118
119 public void addAttributeBinding(
120 final org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding)
121 throws java.lang.IndexOutOfBoundsException {
122 this._attributeBindingList.add(vAttributeBinding);
123 }
124
125
126
127
128
129
130
131
132
133 public void addAttributeBinding(
134 final int index,
135 final org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding)
136 throws java.lang.IndexOutOfBoundsException {
137 this._attributeBindingList.add(index, vAttributeBinding);
138 }
139
140
141
142
143
144
145
146
147 public void addComplexTypeBinding(
148 final org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding)
149 throws java.lang.IndexOutOfBoundsException {
150 this._complexTypeBindingList.add(vComplexTypeBinding);
151 }
152
153
154
155
156
157
158
159
160
161 public void addComplexTypeBinding(
162 final int index,
163 final org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding)
164 throws java.lang.IndexOutOfBoundsException {
165 this._complexTypeBindingList.add(index, vComplexTypeBinding);
166 }
167
168
169
170
171
172
173
174
175 public void addComponentBinding(
176 final org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding)
177 throws java.lang.IndexOutOfBoundsException {
178 this._componentBindingList.add(vComponentBinding);
179 }
180
181
182
183
184
185
186
187
188
189 public void addComponentBinding(
190 final int index,
191 final org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding)
192 throws java.lang.IndexOutOfBoundsException {
193 this._componentBindingList.add(index, vComponentBinding);
194 }
195
196
197
198
199
200
201
202
203 public void addElementBinding(
204 final org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding)
205 throws java.lang.IndexOutOfBoundsException {
206 this._elementBindingList.add(vElementBinding);
207 }
208
209
210
211
212
213
214
215
216
217 public void addElementBinding(
218 final int index,
219 final org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding)
220 throws java.lang.IndexOutOfBoundsException {
221 this._elementBindingList.add(index, vElementBinding);
222 }
223
224
225
226
227
228
229
230
231 public void addEnumBinding(
232 final org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding)
233 throws java.lang.IndexOutOfBoundsException {
234 this._enumBindingList.add(vEnumBinding);
235 }
236
237
238
239
240
241
242
243
244
245 public void addEnumBinding(
246 final int index,
247 final org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding)
248 throws java.lang.IndexOutOfBoundsException {
249 this._enumBindingList.add(index, vEnumBinding);
250 }
251
252
253
254
255
256
257
258
259 public void addGroupBinding(
260 final org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding)
261 throws java.lang.IndexOutOfBoundsException {
262 this._groupBindingList.add(vGroupBinding);
263 }
264
265
266
267
268
269
270
271
272
273 public void addGroupBinding(
274 final int index,
275 final org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding)
276 throws java.lang.IndexOutOfBoundsException {
277 this._groupBindingList.add(index, vGroupBinding);
278 }
279
280
281
282
283
284
285
286
287 public void addInclude(
288 final org.exolab.castor.builder.binding.xml.IncludeType vInclude)
289 throws java.lang.IndexOutOfBoundsException {
290 this._includeList.add(vInclude);
291 }
292
293
294
295
296
297
298
299
300
301 public void addInclude(
302 final int index,
303 final org.exolab.castor.builder.binding.xml.IncludeType vInclude)
304 throws java.lang.IndexOutOfBoundsException {
305 this._includeList.add(index, vInclude);
306 }
307
308
309
310
311
312
313
314
315 public void addPackage(
316 final org.exolab.castor.builder.binding.xml.PackageType vPackage)
317 throws java.lang.IndexOutOfBoundsException {
318 this._packageList.add(vPackage);
319 }
320
321
322
323
324
325
326
327
328
329 public void addPackage(
330 final int index,
331 final org.exolab.castor.builder.binding.xml.PackageType vPackage)
332 throws java.lang.IndexOutOfBoundsException {
333 this._packageList.add(index, vPackage);
334 }
335
336
337
338
339
340
341
342
343 public void addSimpleTypeBinding(
344 final org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding)
345 throws java.lang.IndexOutOfBoundsException {
346 this._simpleTypeBindingList.add(vSimpleTypeBinding);
347 }
348
349
350
351
352
353
354
355
356
357 public void addSimpleTypeBinding(
358 final int index,
359 final org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding)
360 throws java.lang.IndexOutOfBoundsException {
361 this._simpleTypeBindingList.add(index, vSimpleTypeBinding);
362 }
363
364
365
366
367
368
369
370 public java.util.Enumeration enumerateAttributeBinding(
371 ) {
372 return java.util.Collections.enumeration(this._attributeBindingList);
373 }
374
375
376
377
378
379
380
381 public java.util.Enumeration enumerateComplexTypeBinding(
382 ) {
383 return java.util.Collections.enumeration(this._complexTypeBindingList);
384 }
385
386
387
388
389
390
391
392 public java.util.Enumeration enumerateComponentBinding(
393 ) {
394 return java.util.Collections.enumeration(this._componentBindingList);
395 }
396
397
398
399
400
401
402
403 public java.util.Enumeration enumerateElementBinding(
404 ) {
405 return java.util.Collections.enumeration(this._elementBindingList);
406 }
407
408
409
410
411
412
413
414 public java.util.Enumeration enumerateEnumBinding(
415 ) {
416 return java.util.Collections.enumeration(this._enumBindingList);
417 }
418
419
420
421
422
423
424
425 public java.util.Enumeration enumerateGroupBinding(
426 ) {
427 return java.util.Collections.enumeration(this._groupBindingList);
428 }
429
430
431
432
433
434
435
436 public java.util.Enumeration enumerateInclude(
437 ) {
438 return java.util.Collections.enumeration(this._includeList);
439 }
440
441
442
443
444
445
446
447 public java.util.Enumeration enumeratePackage(
448 ) {
449 return java.util.Collections.enumeration(this._packageList);
450 }
451
452
453
454
455
456
457
458 public java.util.Enumeration enumerateSimpleTypeBinding(
459 ) {
460 return java.util.Collections.enumeration(this._simpleTypeBindingList);
461 }
462
463
464
465
466
467
468
469
470
471
472
473 public org.exolab.castor.builder.binding.xml.ComponentBindingType getAttributeBinding(
474 final int index)
475 throws java.lang.IndexOutOfBoundsException {
476
477 if (index < 0 || index >= this._attributeBindingList.size()) {
478 throw new IndexOutOfBoundsException("getAttributeBinding: Index value '" + index + "' not in range [0.." + (this._attributeBindingList.size() - 1) + "]");
479 }
480
481 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _attributeBindingList.get(index);
482 }
483
484
485
486
487
488
489
490
491
492
493
494 public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getAttributeBinding(
495 ) {
496 org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
497 return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this._attributeBindingList.toArray(array);
498 }
499
500
501
502
503
504
505 public int getAttributeBindingCount(
506 ) {
507 return this._attributeBindingList.size();
508 }
509
510
511
512
513
514
515 public org.exolab.castor.builder.binding.xml.AutomaticNamingType getAutomaticNaming(
516 ) {
517 return this._automaticNaming;
518 }
519
520
521
522
523
524
525
526
527
528
529
530 public org.exolab.castor.builder.binding.xml.ComponentBindingType getComplexTypeBinding(
531 final int index)
532 throws java.lang.IndexOutOfBoundsException {
533
534 if (index < 0 || index >= this._complexTypeBindingList.size()) {
535 throw new IndexOutOfBoundsException("getComplexTypeBinding: Index value '" + index + "' not in range [0.." + (this._complexTypeBindingList.size() - 1) + "]");
536 }
537
538 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _complexTypeBindingList.get(index);
539 }
540
541
542
543
544
545
546
547
548
549
550
551 public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getComplexTypeBinding(
552 ) {
553 org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
554 return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this._complexTypeBindingList.toArray(array);
555 }
556
557
558
559
560
561
562 public int getComplexTypeBindingCount(
563 ) {
564 return this._complexTypeBindingList.size();
565 }
566
567
568
569
570
571
572
573
574
575
576
577 public org.exolab.castor.builder.binding.xml.ComponentBindingType getComponentBinding(
578 final int index)
579 throws java.lang.IndexOutOfBoundsException {
580
581 if (index < 0 || index >= this._componentBindingList.size()) {
582 throw new IndexOutOfBoundsException("getComponentBinding: Index value '" + index + "' not in range [0.." + (this._componentBindingList.size() - 1) + "]");
583 }
584
585 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _componentBindingList.get(index);
586 }
587
588
589
590
591
592
593
594
595
596
597
598 public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getComponentBinding(
599 ) {
600 org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
601 return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this._componentBindingList.toArray(array);
602 }
603
604
605
606
607
608
609 public int getComponentBindingCount(
610 ) {
611 return this._componentBindingList.size();
612 }
613
614
615
616
617
618
619 public org.exolab.castor.builder.binding.xml.types.BindingType getDefaultBindingType(
620 ) {
621 return this._defaultBindingType;
622 }
623
624
625
626
627
628
629
630
631
632
633
634 public org.exolab.castor.builder.binding.xml.ComponentBindingType getElementBinding(
635 final int index)
636 throws java.lang.IndexOutOfBoundsException {
637
638 if (index < 0 || index >= this._elementBindingList.size()) {
639 throw new IndexOutOfBoundsException("getElementBinding: Index value '" + index + "' not in range [0.." + (this._elementBindingList.size() - 1) + "]");
640 }
641
642 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _elementBindingList.get(index);
643 }
644
645
646
647
648
649
650
651
652
653
654
655 public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getElementBinding(
656 ) {
657 org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
658 return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this._elementBindingList.toArray(array);
659 }
660
661
662
663
664
665
666 public int getElementBindingCount(
667 ) {
668 return this._elementBindingList.size();
669 }
670
671
672
673
674
675
676
677
678
679
680
681 public org.exolab.castor.builder.binding.xml.ComponentBindingType getEnumBinding(
682 final int index)
683 throws java.lang.IndexOutOfBoundsException {
684
685 if (index < 0 || index >= this._enumBindingList.size()) {
686 throw new IndexOutOfBoundsException("getEnumBinding: Index value '" + index + "' not in range [0.." + (this._enumBindingList.size() - 1) + "]");
687 }
688
689 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _enumBindingList.get(index);
690 }
691
692
693
694
695
696
697
698
699
700
701 public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getEnumBinding(
702 ) {
703 org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
704 return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this._enumBindingList.toArray(array);
705 }
706
707
708
709
710
711
712 public int getEnumBindingCount(
713 ) {
714 return this._enumBindingList.size();
715 }
716
717
718
719
720
721
722
723
724
725
726
727 public org.exolab.castor.builder.binding.xml.ComponentBindingType getGroupBinding(
728 final int index)
729 throws java.lang.IndexOutOfBoundsException {
730
731 if (index < 0 || index >= this._groupBindingList.size()) {
732 throw new IndexOutOfBoundsException("getGroupBinding: Index value '" + index + "' not in range [0.." + (this._groupBindingList.size() - 1) + "]");
733 }
734
735 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _groupBindingList.get(index);
736 }
737
738
739
740
741
742
743
744
745
746
747
748 public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getGroupBinding(
749 ) {
750 org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
751 return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this._groupBindingList.toArray(array);
752 }
753
754
755
756
757
758
759 public int getGroupBindingCount(
760 ) {
761 return this._groupBindingList.size();
762 }
763
764
765
766
767
768
769
770
771
772
773
774 public org.exolab.castor.builder.binding.xml.IncludeType getInclude(
775 final int index)
776 throws java.lang.IndexOutOfBoundsException {
777
778 if (index < 0 || index >= this._includeList.size()) {
779 throw new IndexOutOfBoundsException("getInclude: Index value '" + index + "' not in range [0.." + (this._includeList.size() - 1) + "]");
780 }
781
782 return (org.exolab.castor.builder.binding.xml.IncludeType) _includeList.get(index);
783 }
784
785
786
787
788
789
790
791
792
793
794 public org.exolab.castor.builder.binding.xml.IncludeType[] getInclude(
795 ) {
796 org.exolab.castor.builder.binding.xml.IncludeType[] array = new org.exolab.castor.builder.binding.xml.IncludeType[0];
797 return (org.exolab.castor.builder.binding.xml.IncludeType[]) this._includeList.toArray(array);
798 }
799
800
801
802
803
804
805 public int getIncludeCount(
806 ) {
807 return this._includeList.size();
808 }
809
810
811
812
813
814
815 public org.exolab.castor.builder.binding.xml.NamingXMLType getNamingXML(
816 ) {
817 return this._namingXML;
818 }
819
820
821
822
823
824
825
826
827
828
829
830 public org.exolab.castor.builder.binding.xml.PackageType getPackage(
831 final int index)
832 throws java.lang.IndexOutOfBoundsException {
833
834 if (index < 0 || index >= this._packageList.size()) {
835 throw new IndexOutOfBoundsException("getPackage: Index value '" + index + "' not in range [0.." + (this._packageList.size() - 1) + "]");
836 }
837
838 return (org.exolab.castor.builder.binding.xml.PackageType) _packageList.get(index);
839 }
840
841
842
843
844
845
846
847
848
849
850 public org.exolab.castor.builder.binding.xml.PackageType[] getPackage(
851 ) {
852 org.exolab.castor.builder.binding.xml.PackageType[] array = new org.exolab.castor.builder.binding.xml.PackageType[0];
853 return (org.exolab.castor.builder.binding.xml.PackageType[]) this._packageList.toArray(array);
854 }
855
856
857
858
859
860
861 public int getPackageCount(
862 ) {
863 return this._packageList.size();
864 }
865
866
867
868
869
870
871
872
873
874
875
876 public org.exolab.castor.builder.binding.xml.ComponentBindingType getSimpleTypeBinding(
877 final int index)
878 throws java.lang.IndexOutOfBoundsException {
879
880 if (index < 0 || index >= this._simpleTypeBindingList.size()) {
881 throw new IndexOutOfBoundsException("getSimpleTypeBinding: Index value '" + index + "' not in range [0.." + (this._simpleTypeBindingList.size() - 1) + "]");
882 }
883
884 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _simpleTypeBindingList.get(index);
885 }
886
887
888
889
890
891
892
893
894
895
896
897 public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getSimpleTypeBinding(
898 ) {
899 org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
900 return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this._simpleTypeBindingList.toArray(array);
901 }
902
903
904
905
906
907
908 public int getSimpleTypeBindingCount(
909 ) {
910 return this._simpleTypeBindingList.size();
911 }
912
913
914
915
916
917
918 public boolean isValid(
919 ) {
920 try {
921 validate();
922 } catch (org.exolab.castor.xml.ValidationException vex) {
923 return false;
924 }
925 return true;
926 }
927
928
929
930
931
932
933
934 public java.util.Iterator iterateAttributeBinding(
935 ) {
936 return this._attributeBindingList.iterator();
937 }
938
939
940
941
942
943
944
945 public java.util.Iterator iterateComplexTypeBinding(
946 ) {
947 return this._complexTypeBindingList.iterator();
948 }
949
950
951
952
953
954
955
956 public java.util.Iterator iterateComponentBinding(
957 ) {
958 return this._componentBindingList.iterator();
959 }
960
961
962
963
964
965
966
967 public java.util.Iterator iterateElementBinding(
968 ) {
969 return this._elementBindingList.iterator();
970 }
971
972
973
974
975
976
977
978 public java.util.Iterator iterateEnumBinding(
979 ) {
980 return this._enumBindingList.iterator();
981 }
982
983
984
985
986
987
988
989 public java.util.Iterator iterateGroupBinding(
990 ) {
991 return this._groupBindingList.iterator();
992 }
993
994
995
996
997
998
999
1000 public java.util.Iterator iterateInclude(
1001 ) {
1002 return this._includeList.iterator();
1003 }
1004
1005
1006
1007
1008
1009
1010
1011 public java.util.Iterator iteratePackage(
1012 ) {
1013 return this._packageList.iterator();
1014 }
1015
1016
1017
1018
1019
1020
1021
1022 public java.util.Iterator iterateSimpleTypeBinding(
1023 ) {
1024 return this._simpleTypeBindingList.iterator();
1025 }
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036 public void marshal(
1037 final java.io.Writer out)
1038 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1039 org.exolab.castor.xml.Marshaller.marshal(this, out);
1040 }
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053 public void marshal(
1054 final org.xml.sax.ContentHandler handler)
1055 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1056 org.exolab.castor.xml.Marshaller.marshal(this, handler);
1057 }
1058
1059
1060
1061 public void removeAllAttributeBinding(
1062 ) {
1063 this._attributeBindingList.clear();
1064 }
1065
1066
1067
1068 public void removeAllComplexTypeBinding(
1069 ) {
1070 this._complexTypeBindingList.clear();
1071 }
1072
1073
1074
1075 public void removeAllComponentBinding(
1076 ) {
1077 this._componentBindingList.clear();
1078 }
1079
1080
1081
1082 public void removeAllElementBinding(
1083 ) {
1084 this._elementBindingList.clear();
1085 }
1086
1087
1088
1089 public void removeAllEnumBinding(
1090 ) {
1091 this._enumBindingList.clear();
1092 }
1093
1094
1095
1096 public void removeAllGroupBinding(
1097 ) {
1098 this._groupBindingList.clear();
1099 }
1100
1101
1102
1103 public void removeAllInclude(
1104 ) {
1105 this._includeList.clear();
1106 }
1107
1108
1109
1110 public void removeAllPackage(
1111 ) {
1112 this._packageList.clear();
1113 }
1114
1115
1116
1117 public void removeAllSimpleTypeBinding(
1118 ) {
1119 this._simpleTypeBindingList.clear();
1120 }
1121
1122
1123
1124
1125
1126
1127
1128 public boolean removeAttributeBinding(
1129 final org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding) {
1130 boolean removed = _attributeBindingList.remove(vAttributeBinding);
1131 return removed;
1132 }
1133
1134
1135
1136
1137
1138
1139
1140 public org.exolab.castor.builder.binding.xml.ComponentBindingType removeAttributeBindingAt(
1141 final int index) {
1142 java.lang.Object obj = this._attributeBindingList.remove(index);
1143 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1144 }
1145
1146
1147
1148
1149
1150
1151
1152 public boolean removeComplexTypeBinding(
1153 final org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding) {
1154 boolean removed = _complexTypeBindingList.remove(vComplexTypeBinding);
1155 return removed;
1156 }
1157
1158
1159
1160
1161
1162
1163
1164 public org.exolab.castor.builder.binding.xml.ComponentBindingType removeComplexTypeBindingAt(
1165 final int index) {
1166 java.lang.Object obj = this._complexTypeBindingList.remove(index);
1167 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1168 }
1169
1170
1171
1172
1173
1174
1175
1176 public boolean removeComponentBinding(
1177 final org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding) {
1178 boolean removed = _componentBindingList.remove(vComponentBinding);
1179 return removed;
1180 }
1181
1182
1183
1184
1185
1186
1187
1188 public org.exolab.castor.builder.binding.xml.ComponentBindingType removeComponentBindingAt(
1189 final int index) {
1190 java.lang.Object obj = this._componentBindingList.remove(index);
1191 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1192 }
1193
1194
1195
1196
1197
1198
1199
1200 public boolean removeElementBinding(
1201 final org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding) {
1202 boolean removed = _elementBindingList.remove(vElementBinding);
1203 return removed;
1204 }
1205
1206
1207
1208
1209
1210
1211
1212 public org.exolab.castor.builder.binding.xml.ComponentBindingType removeElementBindingAt(
1213 final int index) {
1214 java.lang.Object obj = this._elementBindingList.remove(index);
1215 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1216 }
1217
1218
1219
1220
1221
1222
1223
1224 public boolean removeEnumBinding(
1225 final org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding) {
1226 boolean removed = _enumBindingList.remove(vEnumBinding);
1227 return removed;
1228 }
1229
1230
1231
1232
1233
1234
1235
1236 public org.exolab.castor.builder.binding.xml.ComponentBindingType removeEnumBindingAt(
1237 final int index) {
1238 java.lang.Object obj = this._enumBindingList.remove(index);
1239 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1240 }
1241
1242
1243
1244
1245
1246
1247
1248 public boolean removeGroupBinding(
1249 final org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding) {
1250 boolean removed = _groupBindingList.remove(vGroupBinding);
1251 return removed;
1252 }
1253
1254
1255
1256
1257
1258
1259
1260 public org.exolab.castor.builder.binding.xml.ComponentBindingType removeGroupBindingAt(
1261 final int index) {
1262 java.lang.Object obj = this._groupBindingList.remove(index);
1263 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1264 }
1265
1266
1267
1268
1269
1270
1271
1272 public boolean removeInclude(
1273 final org.exolab.castor.builder.binding.xml.IncludeType vInclude) {
1274 boolean removed = _includeList.remove(vInclude);
1275 return removed;
1276 }
1277
1278
1279
1280
1281
1282
1283
1284 public org.exolab.castor.builder.binding.xml.IncludeType removeIncludeAt(
1285 final int index) {
1286 java.lang.Object obj = this._includeList.remove(index);
1287 return (org.exolab.castor.builder.binding.xml.IncludeType) obj;
1288 }
1289
1290
1291
1292
1293
1294
1295
1296 public boolean removePackage(
1297 final org.exolab.castor.builder.binding.xml.PackageType vPackage) {
1298 boolean removed = _packageList.remove(vPackage);
1299 return removed;
1300 }
1301
1302
1303
1304
1305
1306
1307
1308 public org.exolab.castor.builder.binding.xml.PackageType removePackageAt(
1309 final int index) {
1310 java.lang.Object obj = this._packageList.remove(index);
1311 return (org.exolab.castor.builder.binding.xml.PackageType) obj;
1312 }
1313
1314
1315
1316
1317
1318
1319
1320 public boolean removeSimpleTypeBinding(
1321 final org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding) {
1322 boolean removed = _simpleTypeBindingList.remove(vSimpleTypeBinding);
1323 return removed;
1324 }
1325
1326
1327
1328
1329
1330
1331
1332 public org.exolab.castor.builder.binding.xml.ComponentBindingType removeSimpleTypeBindingAt(
1333 final int index) {
1334 java.lang.Object obj = this._simpleTypeBindingList.remove(index);
1335 return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1336 }
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346 public void setAttributeBinding(
1347 final int index,
1348 final org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding)
1349 throws java.lang.IndexOutOfBoundsException {
1350
1351 if (index < 0 || index >= this._attributeBindingList.size()) {
1352 throw new IndexOutOfBoundsException("setAttributeBinding: Index value '" + index + "' not in range [0.." + (this._attributeBindingList.size() - 1) + "]");
1353 }
1354
1355 this._attributeBindingList.set(index, vAttributeBinding);
1356 }
1357
1358
1359
1360
1361
1362
1363 public void setAttributeBinding(
1364 final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vAttributeBindingArray) {
1365
1366 _attributeBindingList.clear();
1367
1368 for (int i = 0; i < vAttributeBindingArray.length; i++) {
1369 this._attributeBindingList.add(vAttributeBindingArray[i]);
1370 }
1371 }
1372
1373
1374
1375
1376
1377
1378 public void setAutomaticNaming(
1379 final org.exolab.castor.builder.binding.xml.AutomaticNamingType automaticNaming) {
1380 this._automaticNaming = automaticNaming;
1381 }
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391 public void setComplexTypeBinding(
1392 final int index,
1393 final org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding)
1394 throws java.lang.IndexOutOfBoundsException {
1395
1396 if (index < 0 || index >= this._complexTypeBindingList.size()) {
1397 throw new IndexOutOfBoundsException("setComplexTypeBinding: Index value '" + index + "' not in range [0.." + (this._complexTypeBindingList.size() - 1) + "]");
1398 }
1399
1400 this._complexTypeBindingList.set(index, vComplexTypeBinding);
1401 }
1402
1403
1404
1405
1406
1407
1408 public void setComplexTypeBinding(
1409 final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComplexTypeBindingArray) {
1410
1411 _complexTypeBindingList.clear();
1412
1413 for (int i = 0; i < vComplexTypeBindingArray.length; i++) {
1414 this._complexTypeBindingList.add(vComplexTypeBindingArray[i]);
1415 }
1416 }
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426 public void setComponentBinding(
1427 final int index,
1428 final org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding)
1429 throws java.lang.IndexOutOfBoundsException {
1430
1431 if (index < 0 || index >= this._componentBindingList.size()) {
1432 throw new IndexOutOfBoundsException("setComponentBinding: Index value '" + index + "' not in range [0.." + (this._componentBindingList.size() - 1) + "]");
1433 }
1434
1435 this._componentBindingList.set(index, vComponentBinding);
1436 }
1437
1438
1439
1440
1441
1442
1443 public void setComponentBinding(
1444 final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComponentBindingArray) {
1445
1446 _componentBindingList.clear();
1447
1448 for (int i = 0; i < vComponentBindingArray.length; i++) {
1449 this._componentBindingList.add(vComponentBindingArray[i]);
1450 }
1451 }
1452
1453
1454
1455
1456
1457
1458
1459 public void setDefaultBindingType(
1460 final org.exolab.castor.builder.binding.xml.types.BindingType defaultBindingType) {
1461 this._defaultBindingType = defaultBindingType;
1462 }
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472 public void setElementBinding(
1473 final int index,
1474 final org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding)
1475 throws java.lang.IndexOutOfBoundsException {
1476
1477 if (index < 0 || index >= this._elementBindingList.size()) {
1478 throw new IndexOutOfBoundsException("setElementBinding: Index value '" + index + "' not in range [0.." + (this._elementBindingList.size() - 1) + "]");
1479 }
1480
1481 this._elementBindingList.set(index, vElementBinding);
1482 }
1483
1484
1485
1486
1487
1488
1489 public void setElementBinding(
1490 final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vElementBindingArray) {
1491
1492 _elementBindingList.clear();
1493
1494 for (int i = 0; i < vElementBindingArray.length; i++) {
1495 this._elementBindingList.add(vElementBindingArray[i]);
1496 }
1497 }
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507 public void setEnumBinding(
1508 final int index,
1509 final org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding)
1510 throws java.lang.IndexOutOfBoundsException {
1511
1512 if (index < 0 || index >= this._enumBindingList.size()) {
1513 throw new IndexOutOfBoundsException("setEnumBinding: Index value '" + index + "' not in range [0.." + (this._enumBindingList.size() - 1) + "]");
1514 }
1515
1516 this._enumBindingList.set(index, vEnumBinding);
1517 }
1518
1519
1520
1521
1522
1523
1524 public void setEnumBinding(
1525 final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vEnumBindingArray) {
1526
1527 _enumBindingList.clear();
1528
1529 for (int i = 0; i < vEnumBindingArray.length; i++) {
1530 this._enumBindingList.add(vEnumBindingArray[i]);
1531 }
1532 }
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542 public void setGroupBinding(
1543 final int index,
1544 final org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding)
1545 throws java.lang.IndexOutOfBoundsException {
1546
1547 if (index < 0 || index >= this._groupBindingList.size()) {
1548 throw new IndexOutOfBoundsException("setGroupBinding: Index value '" + index + "' not in range [0.." + (this._groupBindingList.size() - 1) + "]");
1549 }
1550
1551 this._groupBindingList.set(index, vGroupBinding);
1552 }
1553
1554
1555
1556
1557
1558
1559 public void setGroupBinding(
1560 final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vGroupBindingArray) {
1561
1562 _groupBindingList.clear();
1563
1564 for (int i = 0; i < vGroupBindingArray.length; i++) {
1565 this._groupBindingList.add(vGroupBindingArray[i]);
1566 }
1567 }
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577 public void setInclude(
1578 final int index,
1579 final org.exolab.castor.builder.binding.xml.IncludeType vInclude)
1580 throws java.lang.IndexOutOfBoundsException {
1581
1582 if (index < 0 || index >= this._includeList.size()) {
1583 throw new IndexOutOfBoundsException("setInclude: Index value '" + index + "' not in range [0.." + (this._includeList.size() - 1) + "]");
1584 }
1585
1586 this._includeList.set(index, vInclude);
1587 }
1588
1589
1590
1591
1592
1593
1594 public void setInclude(
1595 final org.exolab.castor.builder.binding.xml.IncludeType[] vIncludeArray) {
1596
1597 _includeList.clear();
1598
1599 for (int i = 0; i < vIncludeArray.length; i++) {
1600 this._includeList.add(vIncludeArray[i]);
1601 }
1602 }
1603
1604
1605
1606
1607
1608
1609 public void setNamingXML(
1610 final org.exolab.castor.builder.binding.xml.NamingXMLType namingXML) {
1611 this._namingXML = namingXML;
1612 }
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622 public void setPackage(
1623 final int index,
1624 final org.exolab.castor.builder.binding.xml.PackageType vPackage)
1625 throws java.lang.IndexOutOfBoundsException {
1626
1627 if (index < 0 || index >= this._packageList.size()) {
1628 throw new IndexOutOfBoundsException("setPackage: Index value '" + index + "' not in range [0.." + (this._packageList.size() - 1) + "]");
1629 }
1630
1631 this._packageList.set(index, vPackage);
1632 }
1633
1634
1635
1636
1637
1638
1639 public void setPackage(
1640 final org.exolab.castor.builder.binding.xml.PackageType[] vPackageArray) {
1641
1642 _packageList.clear();
1643
1644 for (int i = 0; i < vPackageArray.length; i++) {
1645 this._packageList.add(vPackageArray[i]);
1646 }
1647 }
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657 public void setSimpleTypeBinding(
1658 final int index,
1659 final org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding)
1660 throws java.lang.IndexOutOfBoundsException {
1661
1662 if (index < 0 || index >= this._simpleTypeBindingList.size()) {
1663 throw new IndexOutOfBoundsException("setSimpleTypeBinding: Index value '" + index + "' not in range [0.." + (this._simpleTypeBindingList.size() - 1) + "]");
1664 }
1665
1666 this._simpleTypeBindingList.set(index, vSimpleTypeBinding);
1667 }
1668
1669
1670
1671
1672
1673
1674 public void setSimpleTypeBinding(
1675 final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vSimpleTypeBindingArray) {
1676
1677 _simpleTypeBindingList.clear();
1678
1679 for (int i = 0; i < vSimpleTypeBindingArray.length; i++) {
1680 this._simpleTypeBindingList.add(vSimpleTypeBindingArray[i]);
1681 }
1682 }
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695 public static org.exolab.castor.builder.binding.xml.Binding unmarshalBinding(
1696 final java.io.Reader reader)
1697 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1698 return (org.exolab.castor.builder.binding.xml.Binding) org.exolab.castor.xml.Unmarshaller.unmarshal(org.exolab.castor.builder.binding.xml.Binding.class, reader);
1699 }
1700
1701
1702
1703
1704
1705
1706
1707 public void validate(
1708 )
1709 throws org.exolab.castor.xml.ValidationException {
1710 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1711 validator.validate(this);
1712 }
1713
1714 }