View Javadoc
1   /*
2    * This class was automatically generated with 
3    * <a href="http://www.castor.org">Castor 1.3.1</a>, using an XML
4    * Schema.
5    * $Id$
6    */
7   
8   package org.exolab.castor.builder.binding.xml;
9   
10  /**
11   * The root element that contains the different binding elements.
12   *  The binding file is written from a schema point of view and
13   * follows the
14   *  structure of an XML Schema.
15   *  The root element can also be used to configure the default
16   * binding type. 
17   *  
18   * 
19   * @version $Revision$ $Date$
20   */
21  public class Binding implements java.io.Serializable {
22  
23  
24        //--------------------------/
25       //- Class/Member Variables -/
26      //--------------------------/
27  
28      /**
29       * Field _defaultBindingType.
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       * Field _includeList.
35       */
36      private java.util.List _includeList;
37  
38      /**
39       * Field _packageList.
40       */
41      private java.util.List _packageList;
42  
43      /**
44       * Field _namingXML.
45       */
46      private org.exolab.castor.builder.binding.xml.NamingXMLType _namingXML;
47  
48      /**
49       * Field _automaticNaming.
50       */
51      private org.exolab.castor.builder.binding.xml.AutomaticNamingType _automaticNaming;
52  
53      /**
54       * Field _componentBindingList.
55       */
56      private java.util.List _componentBindingList;
57  
58      /**
59       * Field _elementBindingList.
60       */
61      private java.util.List _elementBindingList;
62  
63      /**
64       * Field _attributeBindingList.
65       */
66      private java.util.List _attributeBindingList;
67  
68      /**
69       * Field _complexTypeBindingList.
70       */
71      private java.util.List _complexTypeBindingList;
72  
73      /**
74       * Field _groupBindingList.
75       */
76      private java.util.List _groupBindingList;
77  
78      /**
79       * Field _enumBindingList.
80       */
81      private java.util.List _enumBindingList;
82  
83      /**
84       * Field _simpleTypeBindingList.
85       */
86      private java.util.List _simpleTypeBindingList;
87  
88  
89        //----------------/
90       //- Constructors -/
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      //- Methods -/
110     //-----------/
111 
112     /**
113      * 
114      * 
115      * @param vAttributeBinding
116      * @throws java.lang.IndexOutOfBoundsException if the index
117      * given is outside the bounds of the collection
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      * @param index
129      * @param vAttributeBinding
130      * @throws java.lang.IndexOutOfBoundsException if the index
131      * given is outside the bounds of the collection
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      * @param vComplexTypeBinding
144      * @throws java.lang.IndexOutOfBoundsException if the index
145      * given is outside the bounds of the collection
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      * @param index
157      * @param vComplexTypeBinding
158      * @throws java.lang.IndexOutOfBoundsException if the index
159      * given is outside the bounds of the collection
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      * @param vComponentBinding
172      * @throws java.lang.IndexOutOfBoundsException if the index
173      * given is outside the bounds of the collection
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      * @param index
185      * @param vComponentBinding
186      * @throws java.lang.IndexOutOfBoundsException if the index
187      * given is outside the bounds of the collection
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      * @param vElementBinding
200      * @throws java.lang.IndexOutOfBoundsException if the index
201      * given is outside the bounds of the collection
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      * @param index
213      * @param vElementBinding
214      * @throws java.lang.IndexOutOfBoundsException if the index
215      * given is outside the bounds of the collection
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      * @param vEnumBinding
228      * @throws java.lang.IndexOutOfBoundsException if the index
229      * given is outside the bounds of the collection
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      * @param index
241      * @param vEnumBinding
242      * @throws java.lang.IndexOutOfBoundsException if the index
243      * given is outside the bounds of the collection
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      * @param vGroupBinding
256      * @throws java.lang.IndexOutOfBoundsException if the index
257      * given is outside the bounds of the collection
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      * @param index
269      * @param vGroupBinding
270      * @throws java.lang.IndexOutOfBoundsException if the index
271      * given is outside the bounds of the collection
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      * @param vInclude
284      * @throws java.lang.IndexOutOfBoundsException if the index
285      * given is outside the bounds of the collection
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      * @param index
297      * @param vInclude
298      * @throws java.lang.IndexOutOfBoundsException if the index
299      * given is outside the bounds of the collection
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      * @param vPackage
312      * @throws java.lang.IndexOutOfBoundsException if the index
313      * given is outside the bounds of the collection
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      * @param index
325      * @param vPackage
326      * @throws java.lang.IndexOutOfBoundsException if the index
327      * given is outside the bounds of the collection
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      * @param vSimpleTypeBinding
340      * @throws java.lang.IndexOutOfBoundsException if the index
341      * given is outside the bounds of the collection
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      * @param index
353      * @param vSimpleTypeBinding
354      * @throws java.lang.IndexOutOfBoundsException if the index
355      * given is outside the bounds of the collection
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      * Method enumerateAttributeBinding.
366      * 
367      * @return an Enumeration over all possible elements of this
368      * collection
369      */
370     public java.util.Enumeration enumerateAttributeBinding(
371     ) {
372         return java.util.Collections.enumeration(this._attributeBindingList);
373     }
374 
375     /**
376      * Method enumerateComplexTypeBinding.
377      * 
378      * @return an Enumeration over all possible elements of this
379      * collection
380      */
381     public java.util.Enumeration enumerateComplexTypeBinding(
382     ) {
383         return java.util.Collections.enumeration(this._complexTypeBindingList);
384     }
385 
386     /**
387      * Method enumerateComponentBinding.
388      * 
389      * @return an Enumeration over all possible elements of this
390      * collection
391      */
392     public java.util.Enumeration enumerateComponentBinding(
393     ) {
394         return java.util.Collections.enumeration(this._componentBindingList);
395     }
396 
397     /**
398      * Method enumerateElementBinding.
399      * 
400      * @return an Enumeration over all possible elements of this
401      * collection
402      */
403     public java.util.Enumeration enumerateElementBinding(
404     ) {
405         return java.util.Collections.enumeration(this._elementBindingList);
406     }
407 
408     /**
409      * Method enumerateEnumBinding.
410      * 
411      * @return an Enumeration over all possible elements of this
412      * collection
413      */
414     public java.util.Enumeration enumerateEnumBinding(
415     ) {
416         return java.util.Collections.enumeration(this._enumBindingList);
417     }
418 
419     /**
420      * Method enumerateGroupBinding.
421      * 
422      * @return an Enumeration over all possible elements of this
423      * collection
424      */
425     public java.util.Enumeration enumerateGroupBinding(
426     ) {
427         return java.util.Collections.enumeration(this._groupBindingList);
428     }
429 
430     /**
431      * Method enumerateInclude.
432      * 
433      * @return an Enumeration over all possible elements of this
434      * collection
435      */
436     public java.util.Enumeration enumerateInclude(
437     ) {
438         return java.util.Collections.enumeration(this._includeList);
439     }
440 
441     /**
442      * Method enumeratePackage.
443      * 
444      * @return an Enumeration over all possible elements of this
445      * collection
446      */
447     public java.util.Enumeration enumeratePackage(
448     ) {
449         return java.util.Collections.enumeration(this._packageList);
450     }
451 
452     /**
453      * Method enumerateSimpleTypeBinding.
454      * 
455      * @return an Enumeration over all possible elements of this
456      * collection
457      */
458     public java.util.Enumeration enumerateSimpleTypeBinding(
459     ) {
460         return java.util.Collections.enumeration(this._simpleTypeBindingList);
461     }
462 
463     /**
464      * Method getAttributeBinding.
465      * 
466      * @param index
467      * @throws java.lang.IndexOutOfBoundsException if the index
468      * given is outside the bounds of the collection
469      * @return the value of the
470      * org.exolab.castor.builder.binding.xml.ComponentBindingType
471      * at the given index
472      */
473     public org.exolab.castor.builder.binding.xml.ComponentBindingType getAttributeBinding(
474             final int index)
475     throws java.lang.IndexOutOfBoundsException {
476         // check bounds for index
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      * Method getAttributeBinding.Returns the contents of the
486      * collection in an Array.  <p>Note:  Just in case the
487      * collection contents are changing in another thread, we pass
488      * a 0-length Array of the correct type into the API call. 
489      * This way we <i>know</i> that the Array returned is of
490      * exactly the correct length.
491      * 
492      * @return this collection as an Array
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      * Method getAttributeBindingCount.
502      * 
503      * @return the size of this collection
504      */
505     public int getAttributeBindingCount(
506     ) {
507         return this._attributeBindingList.size();
508     }
509 
510     /**
511      * Returns the value of field 'automaticNaming'.
512      * 
513      * @return the value of field 'AutomaticNaming'.
514      */
515     public org.exolab.castor.builder.binding.xml.AutomaticNamingType getAutomaticNaming(
516     ) {
517         return this._automaticNaming;
518     }
519 
520     /**
521      * Method getComplexTypeBinding.
522      * 
523      * @param index
524      * @throws java.lang.IndexOutOfBoundsException if the index
525      * given is outside the bounds of the collection
526      * @return the value of the
527      * org.exolab.castor.builder.binding.xml.ComponentBindingType
528      * at the given index
529      */
530     public org.exolab.castor.builder.binding.xml.ComponentBindingType getComplexTypeBinding(
531             final int index)
532     throws java.lang.IndexOutOfBoundsException {
533         // check bounds for index
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      * Method getComplexTypeBinding.Returns the contents of the
543      * collection in an Array.  <p>Note:  Just in case the
544      * collection contents are changing in another thread, we pass
545      * a 0-length Array of the correct type into the API call. 
546      * This way we <i>know</i> that the Array returned is of
547      * exactly the correct length.
548      * 
549      * @return this collection as an Array
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      * Method getComplexTypeBindingCount.
559      * 
560      * @return the size of this collection
561      */
562     public int getComplexTypeBindingCount(
563     ) {
564         return this._complexTypeBindingList.size();
565     }
566 
567     /**
568      * Method getComponentBinding.
569      * 
570      * @param index
571      * @throws java.lang.IndexOutOfBoundsException if the index
572      * given is outside the bounds of the collection
573      * @return the value of the
574      * org.exolab.castor.builder.binding.xml.ComponentBindingType
575      * at the given index
576      */
577     public org.exolab.castor.builder.binding.xml.ComponentBindingType getComponentBinding(
578             final int index)
579     throws java.lang.IndexOutOfBoundsException {
580         // check bounds for index
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      * Method getComponentBinding.Returns the contents of the
590      * collection in an Array.  <p>Note:  Just in case the
591      * collection contents are changing in another thread, we pass
592      * a 0-length Array of the correct type into the API call. 
593      * This way we <i>know</i> that the Array returned is of
594      * exactly the correct length.
595      * 
596      * @return this collection as an Array
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      * Method getComponentBindingCount.
606      * 
607      * @return the size of this collection
608      */
609     public int getComponentBindingCount(
610     ) {
611         return this._componentBindingList.size();
612     }
613 
614     /**
615      * Returns the value of field 'defaultBindingType'.
616      * 
617      * @return the value of field 'DefaultBindingType'.
618      */
619     public org.exolab.castor.builder.binding.xml.types.BindingType getDefaultBindingType(
620     ) {
621         return this._defaultBindingType;
622     }
623 
624     /**
625      * Method getElementBinding.
626      * 
627      * @param index
628      * @throws java.lang.IndexOutOfBoundsException if the index
629      * given is outside the bounds of the collection
630      * @return the value of the
631      * org.exolab.castor.builder.binding.xml.ComponentBindingType
632      * at the given index
633      */
634     public org.exolab.castor.builder.binding.xml.ComponentBindingType getElementBinding(
635             final int index)
636     throws java.lang.IndexOutOfBoundsException {
637         // check bounds for index
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      * Method getElementBinding.Returns the contents of the
647      * collection in an Array.  <p>Note:  Just in case the
648      * collection contents are changing in another thread, we pass
649      * a 0-length Array of the correct type into the API call. 
650      * This way we <i>know</i> that the Array returned is of
651      * exactly the correct length.
652      * 
653      * @return this collection as an Array
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      * Method getElementBindingCount.
663      * 
664      * @return the size of this collection
665      */
666     public int getElementBindingCount(
667     ) {
668         return this._elementBindingList.size();
669     }
670 
671     /**
672      * Method getEnumBinding.
673      * 
674      * @param index
675      * @throws java.lang.IndexOutOfBoundsException if the index
676      * given is outside the bounds of the collection
677      * @return the value of the
678      * org.exolab.castor.builder.binding.xml.ComponentBindingType
679      * at the given index
680      */
681     public org.exolab.castor.builder.binding.xml.ComponentBindingType getEnumBinding(
682             final int index)
683     throws java.lang.IndexOutOfBoundsException {
684         // check bounds for index
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      * Method getEnumBinding.Returns the contents of the collection
694      * in an Array.  <p>Note:  Just in case the collection contents
695      * are changing in another thread, we pass a 0-length Array of
696      * the correct type into the API call.  This way we <i>know</i>
697      * that the Array returned is of exactly the correct length.
698      * 
699      * @return this collection as an Array
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      * Method getEnumBindingCount.
709      * 
710      * @return the size of this collection
711      */
712     public int getEnumBindingCount(
713     ) {
714         return this._enumBindingList.size();
715     }
716 
717     /**
718      * Method getGroupBinding.
719      * 
720      * @param index
721      * @throws java.lang.IndexOutOfBoundsException if the index
722      * given is outside the bounds of the collection
723      * @return the value of the
724      * org.exolab.castor.builder.binding.xml.ComponentBindingType
725      * at the given index
726      */
727     public org.exolab.castor.builder.binding.xml.ComponentBindingType getGroupBinding(
728             final int index)
729     throws java.lang.IndexOutOfBoundsException {
730         // check bounds for index
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      * Method getGroupBinding.Returns the contents of the
740      * collection in an Array.  <p>Note:  Just in case the
741      * collection contents are changing in another thread, we pass
742      * a 0-length Array of the correct type into the API call. 
743      * This way we <i>know</i> that the Array returned is of
744      * exactly the correct length.
745      * 
746      * @return this collection as an Array
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      * Method getGroupBindingCount.
756      * 
757      * @return the size of this collection
758      */
759     public int getGroupBindingCount(
760     ) {
761         return this._groupBindingList.size();
762     }
763 
764     /**
765      * Method getInclude.
766      * 
767      * @param index
768      * @throws java.lang.IndexOutOfBoundsException if the index
769      * given is outside the bounds of the collection
770      * @return the value of the
771      * org.exolab.castor.builder.binding.xml.IncludeType at the
772      * given index
773      */
774     public org.exolab.castor.builder.binding.xml.IncludeType getInclude(
775             final int index)
776     throws java.lang.IndexOutOfBoundsException {
777         // check bounds for index
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      * Method getInclude.Returns the contents of the collection in
787      * an Array.  <p>Note:  Just in case the collection contents
788      * are changing in another thread, we pass a 0-length Array of
789      * the correct type into the API call.  This way we <i>know</i>
790      * that the Array returned is of exactly the correct length.
791      * 
792      * @return this collection as an Array
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      * Method getIncludeCount.
802      * 
803      * @return the size of this collection
804      */
805     public int getIncludeCount(
806     ) {
807         return this._includeList.size();
808     }
809 
810     /**
811      * Returns the value of field 'namingXML'.
812      * 
813      * @return the value of field 'NamingXML'.
814      */
815     public org.exolab.castor.builder.binding.xml.NamingXMLType getNamingXML(
816     ) {
817         return this._namingXML;
818     }
819 
820     /**
821      * Method getPackage.
822      * 
823      * @param index
824      * @throws java.lang.IndexOutOfBoundsException if the index
825      * given is outside the bounds of the collection
826      * @return the value of the
827      * org.exolab.castor.builder.binding.xml.PackageType at the
828      * given index
829      */
830     public org.exolab.castor.builder.binding.xml.PackageType getPackage(
831             final int index)
832     throws java.lang.IndexOutOfBoundsException {
833         // check bounds for index
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      * Method getPackage.Returns the contents of the collection in
843      * an Array.  <p>Note:  Just in case the collection contents
844      * are changing in another thread, we pass a 0-length Array of
845      * the correct type into the API call.  This way we <i>know</i>
846      * that the Array returned is of exactly the correct length.
847      * 
848      * @return this collection as an Array
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      * Method getPackageCount.
858      * 
859      * @return the size of this collection
860      */
861     public int getPackageCount(
862     ) {
863         return this._packageList.size();
864     }
865 
866     /**
867      * Method getSimpleTypeBinding.
868      * 
869      * @param index
870      * @throws java.lang.IndexOutOfBoundsException if the index
871      * given is outside the bounds of the collection
872      * @return the value of the
873      * org.exolab.castor.builder.binding.xml.ComponentBindingType
874      * at the given index
875      */
876     public org.exolab.castor.builder.binding.xml.ComponentBindingType getSimpleTypeBinding(
877             final int index)
878     throws java.lang.IndexOutOfBoundsException {
879         // check bounds for index
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      * Method getSimpleTypeBinding.Returns the contents of the
889      * collection in an Array.  <p>Note:  Just in case the
890      * collection contents are changing in another thread, we pass
891      * a 0-length Array of the correct type into the API call. 
892      * This way we <i>know</i> that the Array returned is of
893      * exactly the correct length.
894      * 
895      * @return this collection as an Array
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      * Method getSimpleTypeBindingCount.
905      * 
906      * @return the size of this collection
907      */
908     public int getSimpleTypeBindingCount(
909     ) {
910         return this._simpleTypeBindingList.size();
911     }
912 
913     /**
914      * Method isValid.
915      * 
916      * @return true if this object is valid according to the schema
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      * Method iterateAttributeBinding.
930      * 
931      * @return an Iterator over all possible elements in this
932      * collection
933      */
934     public java.util.Iterator iterateAttributeBinding(
935     ) {
936         return this._attributeBindingList.iterator();
937     }
938 
939     /**
940      * Method iterateComplexTypeBinding.
941      * 
942      * @return an Iterator over all possible elements in this
943      * collection
944      */
945     public java.util.Iterator iterateComplexTypeBinding(
946     ) {
947         return this._complexTypeBindingList.iterator();
948     }
949 
950     /**
951      * Method iterateComponentBinding.
952      * 
953      * @return an Iterator over all possible elements in this
954      * collection
955      */
956     public java.util.Iterator iterateComponentBinding(
957     ) {
958         return this._componentBindingList.iterator();
959     }
960 
961     /**
962      * Method iterateElementBinding.
963      * 
964      * @return an Iterator over all possible elements in this
965      * collection
966      */
967     public java.util.Iterator iterateElementBinding(
968     ) {
969         return this._elementBindingList.iterator();
970     }
971 
972     /**
973      * Method iterateEnumBinding.
974      * 
975      * @return an Iterator over all possible elements in this
976      * collection
977      */
978     public java.util.Iterator iterateEnumBinding(
979     ) {
980         return this._enumBindingList.iterator();
981     }
982 
983     /**
984      * Method iterateGroupBinding.
985      * 
986      * @return an Iterator over all possible elements in this
987      * collection
988      */
989     public java.util.Iterator iterateGroupBinding(
990     ) {
991         return this._groupBindingList.iterator();
992     }
993 
994     /**
995      * Method iterateInclude.
996      * 
997      * @return an Iterator over all possible elements in this
998      * collection
999      */
1000     public java.util.Iterator iterateInclude(
1001     ) {
1002         return this._includeList.iterator();
1003     }
1004 
1005     /**
1006      * Method iteratePackage.
1007      * 
1008      * @return an Iterator over all possible elements in this
1009      * collection
1010      */
1011     public java.util.Iterator iteratePackage(
1012     ) {
1013         return this._packageList.iterator();
1014     }
1015 
1016     /**
1017      * Method iterateSimpleTypeBinding.
1018      * 
1019      * @return an Iterator over all possible elements in this
1020      * collection
1021      */
1022     public java.util.Iterator iterateSimpleTypeBinding(
1023     ) {
1024         return this._simpleTypeBindingList.iterator();
1025     }
1026 
1027     /**
1028      * 
1029      * 
1030      * @param out
1031      * @throws org.exolab.castor.xml.MarshalException if object is
1032      * null or if any SAXException is thrown during marshaling
1033      * @throws org.exolab.castor.xml.ValidationException if this
1034      * object is an invalid instance according to the schema
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      * @param handler
1046      * @throws java.io.IOException if an IOException occurs during
1047      * marshaling
1048      * @throws org.exolab.castor.xml.ValidationException if this
1049      * object is an invalid instance according to the schema
1050      * @throws org.exolab.castor.xml.MarshalException if object is
1051      * null or if any SAXException is thrown during marshaling
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      * Method removeAttributeBinding.
1124      * 
1125      * @param vAttributeBinding
1126      * @return true if the object was removed from the collection.
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      * Method removeAttributeBindingAt.
1136      * 
1137      * @param index
1138      * @return the element removed from the collection
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      * Method removeComplexTypeBinding.
1148      * 
1149      * @param vComplexTypeBinding
1150      * @return true if the object was removed from the collection.
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      * Method removeComplexTypeBindingAt.
1160      * 
1161      * @param index
1162      * @return the element removed from the collection
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      * Method removeComponentBinding.
1172      * 
1173      * @param vComponentBinding
1174      * @return true if the object was removed from the collection.
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      * Method removeComponentBindingAt.
1184      * 
1185      * @param index
1186      * @return the element removed from the collection
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      * Method removeElementBinding.
1196      * 
1197      * @param vElementBinding
1198      * @return true if the object was removed from the collection.
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      * Method removeElementBindingAt.
1208      * 
1209      * @param index
1210      * @return the element removed from the collection
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      * Method removeEnumBinding.
1220      * 
1221      * @param vEnumBinding
1222      * @return true if the object was removed from the collection.
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      * Method removeEnumBindingAt.
1232      * 
1233      * @param index
1234      * @return the element removed from the collection
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      * Method removeGroupBinding.
1244      * 
1245      * @param vGroupBinding
1246      * @return true if the object was removed from the collection.
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      * Method removeGroupBindingAt.
1256      * 
1257      * @param index
1258      * @return the element removed from the collection
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      * Method removeInclude.
1268      * 
1269      * @param vInclude
1270      * @return true if the object was removed from the collection.
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      * Method removeIncludeAt.
1280      * 
1281      * @param index
1282      * @return the element removed from the collection
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      * Method removePackage.
1292      * 
1293      * @param vPackage
1294      * @return true if the object was removed from the collection.
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      * Method removePackageAt.
1304      * 
1305      * @param index
1306      * @return the element removed from the collection
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      * Method removeSimpleTypeBinding.
1316      * 
1317      * @param vSimpleTypeBinding
1318      * @return true if the object was removed from the collection.
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      * Method removeSimpleTypeBindingAt.
1328      * 
1329      * @param index
1330      * @return the element removed from the collection
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      * @param index
1342      * @param vAttributeBinding
1343      * @throws java.lang.IndexOutOfBoundsException if the index
1344      * given is outside the bounds of the collection
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         // check bounds for index
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      * @param vAttributeBindingArray
1362      */
1363     public void setAttributeBinding(
1364             final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vAttributeBindingArray) {
1365         //-- copy array
1366         _attributeBindingList.clear();
1367 
1368         for (int i = 0; i < vAttributeBindingArray.length; i++) {
1369                 this._attributeBindingList.add(vAttributeBindingArray[i]);
1370         }
1371     }
1372 
1373     /**
1374      * Sets the value of field 'automaticNaming'.
1375      * 
1376      * @param automaticNaming the value of field 'automaticNaming'.
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      * @param index
1387      * @param vComplexTypeBinding
1388      * @throws java.lang.IndexOutOfBoundsException if the index
1389      * given is outside the bounds of the collection
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         // check bounds for index
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      * @param vComplexTypeBindingArray
1407      */
1408     public void setComplexTypeBinding(
1409             final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComplexTypeBindingArray) {
1410         //-- copy array
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      * @param index
1422      * @param vComponentBinding
1423      * @throws java.lang.IndexOutOfBoundsException if the index
1424      * given is outside the bounds of the collection
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         // check bounds for index
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      * @param vComponentBindingArray
1442      */
1443     public void setComponentBinding(
1444             final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComponentBindingArray) {
1445         //-- copy array
1446         _componentBindingList.clear();
1447 
1448         for (int i = 0; i < vComponentBindingArray.length; i++) {
1449                 this._componentBindingList.add(vComponentBindingArray[i]);
1450         }
1451     }
1452 
1453     /**
1454      * Sets the value of field 'defaultBindingType'.
1455      * 
1456      * @param defaultBindingType the value of field
1457      * 'defaultBindingType'.
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      * @param index
1468      * @param vElementBinding
1469      * @throws java.lang.IndexOutOfBoundsException if the index
1470      * given is outside the bounds of the collection
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         // check bounds for index
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      * @param vElementBindingArray
1488      */
1489     public void setElementBinding(
1490             final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vElementBindingArray) {
1491         //-- copy array
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      * @param index
1503      * @param vEnumBinding
1504      * @throws java.lang.IndexOutOfBoundsException if the index
1505      * given is outside the bounds of the collection
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         // check bounds for index
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      * @param vEnumBindingArray
1523      */
1524     public void setEnumBinding(
1525             final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vEnumBindingArray) {
1526         //-- copy array
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      * @param index
1538      * @param vGroupBinding
1539      * @throws java.lang.IndexOutOfBoundsException if the index
1540      * given is outside the bounds of the collection
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         // check bounds for index
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      * @param vGroupBindingArray
1558      */
1559     public void setGroupBinding(
1560             final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vGroupBindingArray) {
1561         //-- copy array
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      * @param index
1573      * @param vInclude
1574      * @throws java.lang.IndexOutOfBoundsException if the index
1575      * given is outside the bounds of the collection
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         // check bounds for index
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      * @param vIncludeArray
1593      */
1594     public void setInclude(
1595             final org.exolab.castor.builder.binding.xml.IncludeType[] vIncludeArray) {
1596         //-- copy array
1597         _includeList.clear();
1598 
1599         for (int i = 0; i < vIncludeArray.length; i++) {
1600                 this._includeList.add(vIncludeArray[i]);
1601         }
1602     }
1603 
1604     /**
1605      * Sets the value of field 'namingXML'.
1606      * 
1607      * @param namingXML the value of field 'namingXML'.
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      * @param index
1618      * @param vPackage
1619      * @throws java.lang.IndexOutOfBoundsException if the index
1620      * given is outside the bounds of the collection
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         // check bounds for index
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      * @param vPackageArray
1638      */
1639     public void setPackage(
1640             final org.exolab.castor.builder.binding.xml.PackageType[] vPackageArray) {
1641         //-- copy array
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      * @param index
1653      * @param vSimpleTypeBinding
1654      * @throws java.lang.IndexOutOfBoundsException if the index
1655      * given is outside the bounds of the collection
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         // check bounds for index
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      * @param vSimpleTypeBindingArray
1673      */
1674     public void setSimpleTypeBinding(
1675             final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vSimpleTypeBindingArray) {
1676         //-- copy array
1677         _simpleTypeBindingList.clear();
1678 
1679         for (int i = 0; i < vSimpleTypeBindingArray.length; i++) {
1680                 this._simpleTypeBindingList.add(vSimpleTypeBindingArray[i]);
1681         }
1682     }
1683 
1684     /**
1685      * Method unmarshalBinding.
1686      * 
1687      * @param reader
1688      * @throws org.exolab.castor.xml.MarshalException if object is
1689      * null or if any SAXException is thrown during marshaling
1690      * @throws org.exolab.castor.xml.ValidationException if this
1691      * object is an invalid instance according to the schema
1692      * @return the unmarshaled
1693      * org.exolab.castor.builder.binding.xml.Binding
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      * @throws org.exolab.castor.xml.ValidationException if this
1705      * object is an invalid instance according to the schema
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 }