Source Code Cross Referenced for ComponentBindingType.java in  » Database-ORM » castor » org » exolab » castor » builder » binding » xml » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » castor » org.exolab.castor.builder.binding.xml 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /*
0002:         * This class was automatically generated with 
0003:         * <a href="http://www.castor.org">Castor 1.1-M2</a>, using an XML
0004:         * Schema.
0005:         * $Id: ComponentBindingType.java 6766 2007-01-18 21:12:08Z wguttmn $
0006:         */
0007:
0008:        package org.exolab.castor.builder.binding.xml;
0009:
0010:        //---------------------------------/
0011:        //- Imported classes and packages -/
0012:        //---------------------------------/
0013:
0014:        import org.exolab.castor.xml.Marshaller;
0015:        import org.exolab.castor.xml.Unmarshaller;
0016:
0017:        /**
0018:         * A binding element is defined to express the binding between an
0019:         * XML Schema Component
0020:         *  and Java class OR a java interface or a java member class. The
0021:         * XML Schema component can 
0022:         *  be an element, an attribute, a complexType or a group.
0023:         * Attribute cannot be mapped to 
0024:         *  class, the reader of a binding file will take care that class
0025:         * or interface are not
0026:         *  used for component whose xml-type is attribute.
0027:         *  
0028:         * 
0029:         * @version $Revision: 6766 $ $Date$
0030:         */
0031:        public class ComponentBindingType implements  java.io.Serializable {
0032:
0033:            //--------------------------/
0034:            //- Class/Member Variables -/
0035:            //--------------------------/
0036:
0037:            /**
0038:             * Field _name.
0039:             */
0040:            private java.lang.String _name;
0041:
0042:            /**
0043:             * Field _componentBindingTypeChoice.
0044:             */
0045:            private org.exolab.castor.builder.binding.xml.ComponentBindingTypeChoice _componentBindingTypeChoice;
0046:
0047:            /**
0048:             * Field _componentBindingList.
0049:             */
0050:            private java.util.List _componentBindingList;
0051:
0052:            /**
0053:             * Field _elementBindingList.
0054:             */
0055:            private java.util.List _elementBindingList;
0056:
0057:            /**
0058:             * Field _attributeBindingList.
0059:             */
0060:            private java.util.List _attributeBindingList;
0061:
0062:            /**
0063:             * Field _complexTypeBindingList.
0064:             */
0065:            private java.util.List _complexTypeBindingList;
0066:
0067:            /**
0068:             * Field _groupBindingList.
0069:             */
0070:            private java.util.List _groupBindingList;
0071:
0072:            /**
0073:             * Field _enumBindingList.
0074:             */
0075:            private java.util.List _enumBindingList;
0076:
0077:            /**
0078:             * Field _simpleTypeBindingList.
0079:             */
0080:            private java.util.List _simpleTypeBindingList;
0081:
0082:            //----------------/
0083:            //- Constructors -/
0084:            //----------------/
0085:
0086:            public ComponentBindingType() {
0087:                super ();
0088:                this ._componentBindingList = new java.util.ArrayList();
0089:                this ._elementBindingList = new java.util.ArrayList();
0090:                this ._attributeBindingList = new java.util.ArrayList();
0091:                this ._complexTypeBindingList = new java.util.ArrayList();
0092:                this ._groupBindingList = new java.util.ArrayList();
0093:                this ._enumBindingList = new java.util.ArrayList();
0094:                this ._simpleTypeBindingList = new java.util.ArrayList();
0095:            }
0096:
0097:            //-----------/
0098:            //- Methods -/
0099:            //-----------/
0100:
0101:            /**
0102:             * 
0103:             * 
0104:             * @param vAttributeBinding
0105:             * @throws java.lang.IndexOutOfBoundsException if the index
0106:             * given is outside the bounds of the collection
0107:             */
0108:            public void addAttributeBinding(
0109:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding)
0110:                    throws java.lang.IndexOutOfBoundsException {
0111:                this ._attributeBindingList.add(vAttributeBinding);
0112:            }
0113:
0114:            /**
0115:             * 
0116:             * 
0117:             * @param index
0118:             * @param vAttributeBinding
0119:             * @throws java.lang.IndexOutOfBoundsException if the index
0120:             * given is outside the bounds of the collection
0121:             */
0122:            public void addAttributeBinding(
0123:                    final int index,
0124:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding)
0125:                    throws java.lang.IndexOutOfBoundsException {
0126:                this ._attributeBindingList.add(index, vAttributeBinding);
0127:            }
0128:
0129:            /**
0130:             * 
0131:             * 
0132:             * @param vComplexTypeBinding
0133:             * @throws java.lang.IndexOutOfBoundsException if the index
0134:             * given is outside the bounds of the collection
0135:             */
0136:            public void addComplexTypeBinding(
0137:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding)
0138:                    throws java.lang.IndexOutOfBoundsException {
0139:                this ._complexTypeBindingList.add(vComplexTypeBinding);
0140:            }
0141:
0142:            /**
0143:             * 
0144:             * 
0145:             * @param index
0146:             * @param vComplexTypeBinding
0147:             * @throws java.lang.IndexOutOfBoundsException if the index
0148:             * given is outside the bounds of the collection
0149:             */
0150:            public void addComplexTypeBinding(
0151:                    final int index,
0152:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding)
0153:                    throws java.lang.IndexOutOfBoundsException {
0154:                this ._complexTypeBindingList.add(index, vComplexTypeBinding);
0155:            }
0156:
0157:            /**
0158:             * 
0159:             * 
0160:             * @param vComponentBinding
0161:             * @throws java.lang.IndexOutOfBoundsException if the index
0162:             * given is outside the bounds of the collection
0163:             */
0164:            public void addComponentBinding(
0165:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding)
0166:                    throws java.lang.IndexOutOfBoundsException {
0167:                this ._componentBindingList.add(vComponentBinding);
0168:            }
0169:
0170:            /**
0171:             * 
0172:             * 
0173:             * @param index
0174:             * @param vComponentBinding
0175:             * @throws java.lang.IndexOutOfBoundsException if the index
0176:             * given is outside the bounds of the collection
0177:             */
0178:            public void addComponentBinding(
0179:                    final int index,
0180:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding)
0181:                    throws java.lang.IndexOutOfBoundsException {
0182:                this ._componentBindingList.add(index, vComponentBinding);
0183:            }
0184:
0185:            /**
0186:             * 
0187:             * 
0188:             * @param vElementBinding
0189:             * @throws java.lang.IndexOutOfBoundsException if the index
0190:             * given is outside the bounds of the collection
0191:             */
0192:            public void addElementBinding(
0193:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding)
0194:                    throws java.lang.IndexOutOfBoundsException {
0195:                this ._elementBindingList.add(vElementBinding);
0196:            }
0197:
0198:            /**
0199:             * 
0200:             * 
0201:             * @param index
0202:             * @param vElementBinding
0203:             * @throws java.lang.IndexOutOfBoundsException if the index
0204:             * given is outside the bounds of the collection
0205:             */
0206:            public void addElementBinding(
0207:                    final int index,
0208:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding)
0209:                    throws java.lang.IndexOutOfBoundsException {
0210:                this ._elementBindingList.add(index, vElementBinding);
0211:            }
0212:
0213:            /**
0214:             * 
0215:             * 
0216:             * @param vEnumBinding
0217:             * @throws java.lang.IndexOutOfBoundsException if the index
0218:             * given is outside the bounds of the collection
0219:             */
0220:            public void addEnumBinding(
0221:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding)
0222:                    throws java.lang.IndexOutOfBoundsException {
0223:                this ._enumBindingList.add(vEnumBinding);
0224:            }
0225:
0226:            /**
0227:             * 
0228:             * 
0229:             * @param index
0230:             * @param vEnumBinding
0231:             * @throws java.lang.IndexOutOfBoundsException if the index
0232:             * given is outside the bounds of the collection
0233:             */
0234:            public void addEnumBinding(
0235:                    final int index,
0236:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding)
0237:                    throws java.lang.IndexOutOfBoundsException {
0238:                this ._enumBindingList.add(index, vEnumBinding);
0239:            }
0240:
0241:            /**
0242:             * 
0243:             * 
0244:             * @param vGroupBinding
0245:             * @throws java.lang.IndexOutOfBoundsException if the index
0246:             * given is outside the bounds of the collection
0247:             */
0248:            public void addGroupBinding(
0249:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding)
0250:                    throws java.lang.IndexOutOfBoundsException {
0251:                this ._groupBindingList.add(vGroupBinding);
0252:            }
0253:
0254:            /**
0255:             * 
0256:             * 
0257:             * @param index
0258:             * @param vGroupBinding
0259:             * @throws java.lang.IndexOutOfBoundsException if the index
0260:             * given is outside the bounds of the collection
0261:             */
0262:            public void addGroupBinding(
0263:                    final int index,
0264:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding)
0265:                    throws java.lang.IndexOutOfBoundsException {
0266:                this ._groupBindingList.add(index, vGroupBinding);
0267:            }
0268:
0269:            /**
0270:             * 
0271:             * 
0272:             * @param vSimpleTypeBinding
0273:             * @throws java.lang.IndexOutOfBoundsException if the index
0274:             * given is outside the bounds of the collection
0275:             */
0276:            public void addSimpleTypeBinding(
0277:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding)
0278:                    throws java.lang.IndexOutOfBoundsException {
0279:                this ._simpleTypeBindingList.add(vSimpleTypeBinding);
0280:            }
0281:
0282:            /**
0283:             * 
0284:             * 
0285:             * @param index
0286:             * @param vSimpleTypeBinding
0287:             * @throws java.lang.IndexOutOfBoundsException if the index
0288:             * given is outside the bounds of the collection
0289:             */
0290:            public void addSimpleTypeBinding(
0291:                    final int index,
0292:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding)
0293:                    throws java.lang.IndexOutOfBoundsException {
0294:                this ._simpleTypeBindingList.add(index, vSimpleTypeBinding);
0295:            }
0296:
0297:            /**
0298:             * Method enumerateAttributeBinding.
0299:             * 
0300:             * @return an Enumeration over all possible elements of this
0301:             * collection
0302:             */
0303:            public java.util.Enumeration enumerateAttributeBinding() {
0304:                return java.util.Collections
0305:                        .enumeration(this ._attributeBindingList);
0306:            }
0307:
0308:            /**
0309:             * Method enumerateComplexTypeBinding.
0310:             * 
0311:             * @return an Enumeration over all possible elements of this
0312:             * collection
0313:             */
0314:            public java.util.Enumeration enumerateComplexTypeBinding() {
0315:                return java.util.Collections
0316:                        .enumeration(this ._complexTypeBindingList);
0317:            }
0318:
0319:            /**
0320:             * Method enumerateComponentBinding.
0321:             * 
0322:             * @return an Enumeration over all possible elements of this
0323:             * collection
0324:             */
0325:            public java.util.Enumeration enumerateComponentBinding() {
0326:                return java.util.Collections
0327:                        .enumeration(this ._componentBindingList);
0328:            }
0329:
0330:            /**
0331:             * Method enumerateElementBinding.
0332:             * 
0333:             * @return an Enumeration over all possible elements of this
0334:             * collection
0335:             */
0336:            public java.util.Enumeration enumerateElementBinding() {
0337:                return java.util.Collections
0338:                        .enumeration(this ._elementBindingList);
0339:            }
0340:
0341:            /**
0342:             * Method enumerateEnumBinding.
0343:             * 
0344:             * @return an Enumeration over all possible elements of this
0345:             * collection
0346:             */
0347:            public java.util.Enumeration enumerateEnumBinding() {
0348:                return java.util.Collections.enumeration(this ._enumBindingList);
0349:            }
0350:
0351:            /**
0352:             * Method enumerateGroupBinding.
0353:             * 
0354:             * @return an Enumeration over all possible elements of this
0355:             * collection
0356:             */
0357:            public java.util.Enumeration enumerateGroupBinding() {
0358:                return java.util.Collections
0359:                        .enumeration(this ._groupBindingList);
0360:            }
0361:
0362:            /**
0363:             * Method enumerateSimpleTypeBinding.
0364:             * 
0365:             * @return an Enumeration over all possible elements of this
0366:             * collection
0367:             */
0368:            public java.util.Enumeration enumerateSimpleTypeBinding() {
0369:                return java.util.Collections
0370:                        .enumeration(this ._simpleTypeBindingList);
0371:            }
0372:
0373:            /**
0374:             * Method getAttributeBinding.
0375:             * 
0376:             * @param index
0377:             * @throws java.lang.IndexOutOfBoundsException if the index
0378:             * given is outside the bounds of the collection
0379:             * @return the value of the
0380:             * org.exolab.castor.builder.binding.ComponentBindingType at
0381:             * the given index
0382:             */
0383:            public org.exolab.castor.builder.binding.xml.ComponentBindingType getAttributeBinding(
0384:                    final int index) throws java.lang.IndexOutOfBoundsException {
0385:                // check bounds for index
0386:                if (index < 0 || index >= this ._attributeBindingList.size()) {
0387:                    throw new IndexOutOfBoundsException(
0388:                            "getAttributeBinding: Index value '" + index
0389:                                    + "' not in range [0.."
0390:                                    + (this ._attributeBindingList.size() - 1)
0391:                                    + "]");
0392:                }
0393:
0394:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _attributeBindingList
0395:                        .get(index);
0396:            }
0397:
0398:            /**
0399:             * Method getAttributeBinding.Returns the contents of the
0400:             * collection in an Array.  <p>Note:  Just in case the
0401:             * collection contents are changing in another thread, we pass
0402:             * a 0-length Array of the correct type into the API call. 
0403:             * This way we <i>know</i> that the Array returned is of
0404:             * exactly the correct length.
0405:             * 
0406:             * @return this collection as an Array
0407:             */
0408:            public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getAttributeBinding() {
0409:                org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
0410:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this ._attributeBindingList
0411:                        .toArray(array);
0412:            }
0413:
0414:            /**
0415:             * Method getAttributeBindingCount.
0416:             * 
0417:             * @return the size of this collection
0418:             */
0419:            public int getAttributeBindingCount() {
0420:                return this ._attributeBindingList.size();
0421:            }
0422:
0423:            /**
0424:             * Method getComplexTypeBinding.
0425:             * 
0426:             * @param index
0427:             * @throws java.lang.IndexOutOfBoundsException if the index
0428:             * given is outside the bounds of the collection
0429:             * @return the value of the
0430:             * org.exolab.castor.builder.binding.ComponentBindingType at
0431:             * the given index
0432:             */
0433:            public org.exolab.castor.builder.binding.xml.ComponentBindingType getComplexTypeBinding(
0434:                    final int index) throws java.lang.IndexOutOfBoundsException {
0435:                // check bounds for index
0436:                if (index < 0 || index >= this ._complexTypeBindingList.size()) {
0437:                    throw new IndexOutOfBoundsException(
0438:                            "getComplexTypeBinding: Index value '" + index
0439:                                    + "' not in range [0.."
0440:                                    + (this ._complexTypeBindingList.size() - 1)
0441:                                    + "]");
0442:                }
0443:
0444:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _complexTypeBindingList
0445:                        .get(index);
0446:            }
0447:
0448:            /**
0449:             * Method getComplexTypeBinding.Returns the contents of the
0450:             * collection in an Array.  <p>Note:  Just in case the
0451:             * collection contents are changing in another thread, we pass
0452:             * a 0-length Array of the correct type into the API call. 
0453:             * This way we <i>know</i> that the Array returned is of
0454:             * exactly the correct length.
0455:             * 
0456:             * @return this collection as an Array
0457:             */
0458:            public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getComplexTypeBinding() {
0459:                org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
0460:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this ._complexTypeBindingList
0461:                        .toArray(array);
0462:            }
0463:
0464:            /**
0465:             * Method getComplexTypeBindingCount.
0466:             * 
0467:             * @return the size of this collection
0468:             */
0469:            public int getComplexTypeBindingCount() {
0470:                return this ._complexTypeBindingList.size();
0471:            }
0472:
0473:            /**
0474:             * Method getComponentBinding.
0475:             * 
0476:             * @param index
0477:             * @throws java.lang.IndexOutOfBoundsException if the index
0478:             * given is outside the bounds of the collection
0479:             * @return the value of the
0480:             * org.exolab.castor.builder.binding.ComponentBindingType at
0481:             * the given index
0482:             */
0483:            public org.exolab.castor.builder.binding.xml.ComponentBindingType getComponentBinding(
0484:                    final int index) throws java.lang.IndexOutOfBoundsException {
0485:                // check bounds for index
0486:                if (index < 0 || index >= this ._componentBindingList.size()) {
0487:                    throw new IndexOutOfBoundsException(
0488:                            "getComponentBinding: Index value '" + index
0489:                                    + "' not in range [0.."
0490:                                    + (this ._componentBindingList.size() - 1)
0491:                                    + "]");
0492:                }
0493:
0494:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _componentBindingList
0495:                        .get(index);
0496:            }
0497:
0498:            /**
0499:             * Method getComponentBinding.Returns the contents of the
0500:             * collection in an Array.  <p>Note:  Just in case the
0501:             * collection contents are changing in another thread, we pass
0502:             * a 0-length Array of the correct type into the API call. 
0503:             * This way we <i>know</i> that the Array returned is of
0504:             * exactly the correct length.
0505:             * 
0506:             * @return this collection as an Array
0507:             */
0508:            public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getComponentBinding() {
0509:                org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
0510:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this ._componentBindingList
0511:                        .toArray(array);
0512:            }
0513:
0514:            /**
0515:             * Method getComponentBindingCount.
0516:             * 
0517:             * @return the size of this collection
0518:             */
0519:            public int getComponentBindingCount() {
0520:                return this ._componentBindingList.size();
0521:            }
0522:
0523:            /**
0524:             * Returns the value of field 'componentBindingTypeChoice'.
0525:             * 
0526:             * @return the value of field 'ComponentBindingTypeChoice'.
0527:             */
0528:            public org.exolab.castor.builder.binding.xml.ComponentBindingTypeChoice getComponentBindingTypeChoice() {
0529:                return this ._componentBindingTypeChoice;
0530:            }
0531:
0532:            /**
0533:             * Method getElementBinding.
0534:             * 
0535:             * @param index
0536:             * @throws java.lang.IndexOutOfBoundsException if the index
0537:             * given is outside the bounds of the collection
0538:             * @return the value of the
0539:             * org.exolab.castor.builder.binding.ComponentBindingType at
0540:             * the given index
0541:             */
0542:            public org.exolab.castor.builder.binding.xml.ComponentBindingType getElementBinding(
0543:                    final int index) throws java.lang.IndexOutOfBoundsException {
0544:                // check bounds for index
0545:                if (index < 0 || index >= this ._elementBindingList.size()) {
0546:                    throw new IndexOutOfBoundsException(
0547:                            "getElementBinding: Index value '" + index
0548:                                    + "' not in range [0.."
0549:                                    + (this ._elementBindingList.size() - 1)
0550:                                    + "]");
0551:                }
0552:
0553:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _elementBindingList
0554:                        .get(index);
0555:            }
0556:
0557:            /**
0558:             * Method getElementBinding.Returns the contents of the
0559:             * collection in an Array.  <p>Note:  Just in case the
0560:             * collection contents are changing in another thread, we pass
0561:             * a 0-length Array of the correct type into the API call. 
0562:             * This way we <i>know</i> that the Array returned is of
0563:             * exactly the correct length.
0564:             * 
0565:             * @return this collection as an Array
0566:             */
0567:            public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getElementBinding() {
0568:                org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
0569:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this ._elementBindingList
0570:                        .toArray(array);
0571:            }
0572:
0573:            /**
0574:             * Method getElementBindingCount.
0575:             * 
0576:             * @return the size of this collection
0577:             */
0578:            public int getElementBindingCount() {
0579:                return this ._elementBindingList.size();
0580:            }
0581:
0582:            /**
0583:             * Method getEnumBinding.
0584:             * 
0585:             * @param index
0586:             * @throws java.lang.IndexOutOfBoundsException if the index
0587:             * given is outside the bounds of the collection
0588:             * @return the value of the
0589:             * org.exolab.castor.builder.binding.ComponentBindingType at
0590:             * the given index
0591:             */
0592:            public org.exolab.castor.builder.binding.xml.ComponentBindingType getEnumBinding(
0593:                    final int index) throws java.lang.IndexOutOfBoundsException {
0594:                // check bounds for index
0595:                if (index < 0 || index >= this ._enumBindingList.size()) {
0596:                    throw new IndexOutOfBoundsException(
0597:                            "getEnumBinding: Index value '" + index
0598:                                    + "' not in range [0.."
0599:                                    + (this ._enumBindingList.size() - 1) + "]");
0600:                }
0601:
0602:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _enumBindingList
0603:                        .get(index);
0604:            }
0605:
0606:            /**
0607:             * Method getEnumBinding.Returns the contents of the collection
0608:             * in an Array.  <p>Note:  Just in case the collection contents
0609:             * are changing in another thread, we pass a 0-length Array of
0610:             * the correct type into the API call.  This way we <i>know</i>
0611:             * that the Array returned is of exactly the correct length.
0612:             * 
0613:             * @return this collection as an Array
0614:             */
0615:            public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getEnumBinding() {
0616:                org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
0617:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this ._enumBindingList
0618:                        .toArray(array);
0619:            }
0620:
0621:            /**
0622:             * Method getEnumBindingCount.
0623:             * 
0624:             * @return the size of this collection
0625:             */
0626:            public int getEnumBindingCount() {
0627:                return this ._enumBindingList.size();
0628:            }
0629:
0630:            /**
0631:             * Method getGroupBinding.
0632:             * 
0633:             * @param index
0634:             * @throws java.lang.IndexOutOfBoundsException if the index
0635:             * given is outside the bounds of the collection
0636:             * @return the value of the
0637:             * org.exolab.castor.builder.binding.ComponentBindingType at
0638:             * the given index
0639:             */
0640:            public org.exolab.castor.builder.binding.xml.ComponentBindingType getGroupBinding(
0641:                    final int index) throws java.lang.IndexOutOfBoundsException {
0642:                // check bounds for index
0643:                if (index < 0 || index >= this ._groupBindingList.size()) {
0644:                    throw new IndexOutOfBoundsException(
0645:                            "getGroupBinding: Index value '" + index
0646:                                    + "' not in range [0.."
0647:                                    + (this ._groupBindingList.size() - 1) + "]");
0648:                }
0649:
0650:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _groupBindingList
0651:                        .get(index);
0652:            }
0653:
0654:            /**
0655:             * Method getGroupBinding.Returns the contents of the
0656:             * collection in an Array.  <p>Note:  Just in case the
0657:             * collection contents are changing in another thread, we pass
0658:             * a 0-length Array of the correct type into the API call. 
0659:             * This way we <i>know</i> that the Array returned is of
0660:             * exactly the correct length.
0661:             * 
0662:             * @return this collection as an Array
0663:             */
0664:            public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getGroupBinding() {
0665:                org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
0666:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this ._groupBindingList
0667:                        .toArray(array);
0668:            }
0669:
0670:            /**
0671:             * Method getGroupBindingCount.
0672:             * 
0673:             * @return the size of this collection
0674:             */
0675:            public int getGroupBindingCount() {
0676:                return this ._groupBindingList.size();
0677:            }
0678:
0679:            /**
0680:             * Returns the value of field 'name'.
0681:             * 
0682:             * @return the value of field 'Name'.
0683:             */
0684:            public java.lang.String getName() {
0685:                return this ._name;
0686:            }
0687:
0688:            /**
0689:             * Method getSimpleTypeBinding.
0690:             * 
0691:             * @param index
0692:             * @throws java.lang.IndexOutOfBoundsException if the index
0693:             * given is outside the bounds of the collection
0694:             * @return the value of the
0695:             * org.exolab.castor.builder.binding.ComponentBindingType at
0696:             * the given index
0697:             */
0698:            public org.exolab.castor.builder.binding.xml.ComponentBindingType getSimpleTypeBinding(
0699:                    final int index) throws java.lang.IndexOutOfBoundsException {
0700:                // check bounds for index
0701:                if (index < 0 || index >= this ._simpleTypeBindingList.size()) {
0702:                    throw new IndexOutOfBoundsException(
0703:                            "getSimpleTypeBinding: Index value '" + index
0704:                                    + "' not in range [0.."
0705:                                    + (this ._simpleTypeBindingList.size() - 1)
0706:                                    + "]");
0707:                }
0708:
0709:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) _simpleTypeBindingList
0710:                        .get(index);
0711:            }
0712:
0713:            /**
0714:             * Method getSimpleTypeBinding.Returns the contents of the
0715:             * collection in an Array.  <p>Note:  Just in case the
0716:             * collection contents are changing in another thread, we pass
0717:             * a 0-length Array of the correct type into the API call. 
0718:             * This way we <i>know</i> that the Array returned is of
0719:             * exactly the correct length.
0720:             * 
0721:             * @return this collection as an Array
0722:             */
0723:            public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getSimpleTypeBinding() {
0724:                org.exolab.castor.builder.binding.xml.ComponentBindingType[] array = new org.exolab.castor.builder.binding.xml.ComponentBindingType[0];
0725:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType[]) this ._simpleTypeBindingList
0726:                        .toArray(array);
0727:            }
0728:
0729:            /**
0730:             * Method getSimpleTypeBindingCount.
0731:             * 
0732:             * @return the size of this collection
0733:             */
0734:            public int getSimpleTypeBindingCount() {
0735:                return this ._simpleTypeBindingList.size();
0736:            }
0737:
0738:            /**
0739:             * Method isValid.
0740:             * 
0741:             * @return true if this object is valid according to the schema
0742:             */
0743:            public boolean isValid() {
0744:                try {
0745:                    validate();
0746:                } catch (org.exolab.castor.xml.ValidationException vex) {
0747:                    return false;
0748:                }
0749:                return true;
0750:            }
0751:
0752:            /**
0753:             * Method iterateAttributeBinding.
0754:             * 
0755:             * @return an Iterator over all possible elements in this
0756:             * collection
0757:             */
0758:            public java.util.Iterator iterateAttributeBinding() {
0759:                return this ._attributeBindingList.iterator();
0760:            }
0761:
0762:            /**
0763:             * Method iterateComplexTypeBinding.
0764:             * 
0765:             * @return an Iterator over all possible elements in this
0766:             * collection
0767:             */
0768:            public java.util.Iterator iterateComplexTypeBinding() {
0769:                return this ._complexTypeBindingList.iterator();
0770:            }
0771:
0772:            /**
0773:             * Method iterateComponentBinding.
0774:             * 
0775:             * @return an Iterator over all possible elements in this
0776:             * collection
0777:             */
0778:            public java.util.Iterator iterateComponentBinding() {
0779:                return this ._componentBindingList.iterator();
0780:            }
0781:
0782:            /**
0783:             * Method iterateElementBinding.
0784:             * 
0785:             * @return an Iterator over all possible elements in this
0786:             * collection
0787:             */
0788:            public java.util.Iterator iterateElementBinding() {
0789:                return this ._elementBindingList.iterator();
0790:            }
0791:
0792:            /**
0793:             * Method iterateEnumBinding.
0794:             * 
0795:             * @return an Iterator over all possible elements in this
0796:             * collection
0797:             */
0798:            public java.util.Iterator iterateEnumBinding() {
0799:                return this ._enumBindingList.iterator();
0800:            }
0801:
0802:            /**
0803:             * Method iterateGroupBinding.
0804:             * 
0805:             * @return an Iterator over all possible elements in this
0806:             * collection
0807:             */
0808:            public java.util.Iterator iterateGroupBinding() {
0809:                return this ._groupBindingList.iterator();
0810:            }
0811:
0812:            /**
0813:             * Method iterateSimpleTypeBinding.
0814:             * 
0815:             * @return an Iterator over all possible elements in this
0816:             * collection
0817:             */
0818:            public java.util.Iterator iterateSimpleTypeBinding() {
0819:                return this ._simpleTypeBindingList.iterator();
0820:            }
0821:
0822:            /**
0823:             * 
0824:             * 
0825:             * @param out
0826:             * @throws org.exolab.castor.xml.MarshalException if object is
0827:             * null or if any SAXException is thrown during marshaling
0828:             * @throws org.exolab.castor.xml.ValidationException if this
0829:             * object is an invalid instance according to the schema
0830:             */
0831:            public void marshal(final java.io.Writer out)
0832:                    throws org.exolab.castor.xml.MarshalException,
0833:                    org.exolab.castor.xml.ValidationException {
0834:                Marshaller.marshal(this , out);
0835:            }
0836:
0837:            /**
0838:             * 
0839:             * 
0840:             * @param handler
0841:             * @throws java.io.IOException if an IOException occurs during
0842:             * marshaling
0843:             * @throws org.exolab.castor.xml.ValidationException if this
0844:             * object is an invalid instance according to the schema
0845:             * @throws org.exolab.castor.xml.MarshalException if object is
0846:             * null or if any SAXException is thrown during marshaling
0847:             */
0848:            public void marshal(final org.xml.sax.ContentHandler handler)
0849:                    throws java.io.IOException,
0850:                    org.exolab.castor.xml.MarshalException,
0851:                    org.exolab.castor.xml.ValidationException {
0852:                Marshaller.marshal(this , handler);
0853:            }
0854:
0855:            /**
0856:             */
0857:            public void removeAllAttributeBinding() {
0858:                this ._attributeBindingList.clear();
0859:            }
0860:
0861:            /**
0862:             */
0863:            public void removeAllComplexTypeBinding() {
0864:                this ._complexTypeBindingList.clear();
0865:            }
0866:
0867:            /**
0868:             */
0869:            public void removeAllComponentBinding() {
0870:                this ._componentBindingList.clear();
0871:            }
0872:
0873:            /**
0874:             */
0875:            public void removeAllElementBinding() {
0876:                this ._elementBindingList.clear();
0877:            }
0878:
0879:            /**
0880:             */
0881:            public void removeAllEnumBinding() {
0882:                this ._enumBindingList.clear();
0883:            }
0884:
0885:            /**
0886:             */
0887:            public void removeAllGroupBinding() {
0888:                this ._groupBindingList.clear();
0889:            }
0890:
0891:            /**
0892:             */
0893:            public void removeAllSimpleTypeBinding() {
0894:                this ._simpleTypeBindingList.clear();
0895:            }
0896:
0897:            /**
0898:             * Method removeAttributeBinding.
0899:             * 
0900:             * @param vAttributeBinding
0901:             * @return true if the object was removed from the collection.
0902:             */
0903:            public boolean removeAttributeBinding(
0904:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding) {
0905:                boolean removed = _attributeBindingList
0906:                        .remove(vAttributeBinding);
0907:                return removed;
0908:            }
0909:
0910:            /**
0911:             * Method removeAttributeBindingAt.
0912:             * 
0913:             * @param index
0914:             * @return the element removed from the collection
0915:             */
0916:            public org.exolab.castor.builder.binding.xml.ComponentBindingType removeAttributeBindingAt(
0917:                    final int index) {
0918:                java.lang.Object obj = this ._attributeBindingList.remove(index);
0919:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
0920:            }
0921:
0922:            /**
0923:             * Method removeComplexTypeBinding.
0924:             * 
0925:             * @param vComplexTypeBinding
0926:             * @return true if the object was removed from the collection.
0927:             */
0928:            public boolean removeComplexTypeBinding(
0929:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding) {
0930:                boolean removed = _complexTypeBindingList
0931:                        .remove(vComplexTypeBinding);
0932:                return removed;
0933:            }
0934:
0935:            /**
0936:             * Method removeComplexTypeBindingAt.
0937:             * 
0938:             * @param index
0939:             * @return the element removed from the collection
0940:             */
0941:            public org.exolab.castor.builder.binding.xml.ComponentBindingType removeComplexTypeBindingAt(
0942:                    final int index) {
0943:                java.lang.Object obj = this ._complexTypeBindingList
0944:                        .remove(index);
0945:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
0946:            }
0947:
0948:            /**
0949:             * Method removeComponentBinding.
0950:             * 
0951:             * @param vComponentBinding
0952:             * @return true if the object was removed from the collection.
0953:             */
0954:            public boolean removeComponentBinding(
0955:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding) {
0956:                boolean removed = _componentBindingList
0957:                        .remove(vComponentBinding);
0958:                return removed;
0959:            }
0960:
0961:            /**
0962:             * Method removeComponentBindingAt.
0963:             * 
0964:             * @param index
0965:             * @return the element removed from the collection
0966:             */
0967:            public org.exolab.castor.builder.binding.xml.ComponentBindingType removeComponentBindingAt(
0968:                    final int index) {
0969:                java.lang.Object obj = this ._componentBindingList.remove(index);
0970:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
0971:            }
0972:
0973:            /**
0974:             * Method removeElementBinding.
0975:             * 
0976:             * @param vElementBinding
0977:             * @return true if the object was removed from the collection.
0978:             */
0979:            public boolean removeElementBinding(
0980:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding) {
0981:                boolean removed = _elementBindingList.remove(vElementBinding);
0982:                return removed;
0983:            }
0984:
0985:            /**
0986:             * Method removeElementBindingAt.
0987:             * 
0988:             * @param index
0989:             * @return the element removed from the collection
0990:             */
0991:            public org.exolab.castor.builder.binding.xml.ComponentBindingType removeElementBindingAt(
0992:                    final int index) {
0993:                java.lang.Object obj = this ._elementBindingList.remove(index);
0994:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
0995:            }
0996:
0997:            /**
0998:             * Method removeEnumBinding.
0999:             * 
1000:             * @param vEnumBinding
1001:             * @return true if the object was removed from the collection.
1002:             */
1003:            public boolean removeEnumBinding(
1004:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding) {
1005:                boolean removed = _enumBindingList.remove(vEnumBinding);
1006:                return removed;
1007:            }
1008:
1009:            /**
1010:             * Method removeEnumBindingAt.
1011:             * 
1012:             * @param index
1013:             * @return the element removed from the collection
1014:             */
1015:            public org.exolab.castor.builder.binding.xml.ComponentBindingType removeEnumBindingAt(
1016:                    final int index) {
1017:                java.lang.Object obj = this ._enumBindingList.remove(index);
1018:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1019:            }
1020:
1021:            /**
1022:             * Method removeGroupBinding.
1023:             * 
1024:             * @param vGroupBinding
1025:             * @return true if the object was removed from the collection.
1026:             */
1027:            public boolean removeGroupBinding(
1028:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding) {
1029:                boolean removed = _groupBindingList.remove(vGroupBinding);
1030:                return removed;
1031:            }
1032:
1033:            /**
1034:             * Method removeGroupBindingAt.
1035:             * 
1036:             * @param index
1037:             * @return the element removed from the collection
1038:             */
1039:            public org.exolab.castor.builder.binding.xml.ComponentBindingType removeGroupBindingAt(
1040:                    final int index) {
1041:                java.lang.Object obj = this ._groupBindingList.remove(index);
1042:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1043:            }
1044:
1045:            /**
1046:             * Method removeSimpleTypeBinding.
1047:             * 
1048:             * @param vSimpleTypeBinding
1049:             * @return true if the object was removed from the collection.
1050:             */
1051:            public boolean removeSimpleTypeBinding(
1052:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding) {
1053:                boolean removed = _simpleTypeBindingList
1054:                        .remove(vSimpleTypeBinding);
1055:                return removed;
1056:            }
1057:
1058:            /**
1059:             * Method removeSimpleTypeBindingAt.
1060:             * 
1061:             * @param index
1062:             * @return the element removed from the collection
1063:             */
1064:            public org.exolab.castor.builder.binding.xml.ComponentBindingType removeSimpleTypeBindingAt(
1065:                    final int index) {
1066:                java.lang.Object obj = this ._simpleTypeBindingList
1067:                        .remove(index);
1068:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) obj;
1069:            }
1070:
1071:            /**
1072:             * 
1073:             * 
1074:             * @param index
1075:             * @param vAttributeBinding
1076:             * @throws java.lang.IndexOutOfBoundsException if the index
1077:             * given is outside the bounds of the collection
1078:             */
1079:            public void setAttributeBinding(
1080:                    final int index,
1081:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding)
1082:                    throws java.lang.IndexOutOfBoundsException {
1083:                // check bounds for index
1084:                if (index < 0 || index >= this ._attributeBindingList.size()) {
1085:                    throw new IndexOutOfBoundsException(
1086:                            "setAttributeBinding: Index value '" + index
1087:                                    + "' not in range [0.."
1088:                                    + (this ._attributeBindingList.size() - 1)
1089:                                    + "]");
1090:                }
1091:
1092:                this ._attributeBindingList.set(index, vAttributeBinding);
1093:            }
1094:
1095:            /**
1096:             * 
1097:             * 
1098:             * @param vAttributeBindingArray
1099:             */
1100:            public void setAttributeBinding(
1101:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vAttributeBindingArray) {
1102:                //-- copy array
1103:                _attributeBindingList.clear();
1104:
1105:                for (int i = 0; i < vAttributeBindingArray.length; i++) {
1106:                    this ._attributeBindingList.add(vAttributeBindingArray[i]);
1107:                }
1108:            }
1109:
1110:            /**
1111:             * 
1112:             * 
1113:             * @param index
1114:             * @param vComplexTypeBinding
1115:             * @throws java.lang.IndexOutOfBoundsException if the index
1116:             * given is outside the bounds of the collection
1117:             */
1118:            public void setComplexTypeBinding(
1119:                    final int index,
1120:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding)
1121:                    throws java.lang.IndexOutOfBoundsException {
1122:                // check bounds for index
1123:                if (index < 0 || index >= this ._complexTypeBindingList.size()) {
1124:                    throw new IndexOutOfBoundsException(
1125:                            "setComplexTypeBinding: Index value '" + index
1126:                                    + "' not in range [0.."
1127:                                    + (this ._complexTypeBindingList.size() - 1)
1128:                                    + "]");
1129:                }
1130:
1131:                this ._complexTypeBindingList.set(index, vComplexTypeBinding);
1132:            }
1133:
1134:            /**
1135:             * 
1136:             * 
1137:             * @param vComplexTypeBindingArray
1138:             */
1139:            public void setComplexTypeBinding(
1140:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComplexTypeBindingArray) {
1141:                //-- copy array
1142:                _complexTypeBindingList.clear();
1143:
1144:                for (int i = 0; i < vComplexTypeBindingArray.length; i++) {
1145:                    this ._complexTypeBindingList
1146:                            .add(vComplexTypeBindingArray[i]);
1147:                }
1148:            }
1149:
1150:            /**
1151:             * 
1152:             * 
1153:             * @param index
1154:             * @param vComponentBinding
1155:             * @throws java.lang.IndexOutOfBoundsException if the index
1156:             * given is outside the bounds of the collection
1157:             */
1158:            public void setComponentBinding(
1159:                    final int index,
1160:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding)
1161:                    throws java.lang.IndexOutOfBoundsException {
1162:                // check bounds for index
1163:                if (index < 0 || index >= this ._componentBindingList.size()) {
1164:                    throw new IndexOutOfBoundsException(
1165:                            "setComponentBinding: Index value '" + index
1166:                                    + "' not in range [0.."
1167:                                    + (this ._componentBindingList.size() - 1)
1168:                                    + "]");
1169:                }
1170:
1171:                this ._componentBindingList.set(index, vComponentBinding);
1172:            }
1173:
1174:            /**
1175:             * 
1176:             * 
1177:             * @param vComponentBindingArray
1178:             */
1179:            public void setComponentBinding(
1180:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComponentBindingArray) {
1181:                //-- copy array
1182:                _componentBindingList.clear();
1183:
1184:                for (int i = 0; i < vComponentBindingArray.length; i++) {
1185:                    this ._componentBindingList.add(vComponentBindingArray[i]);
1186:                }
1187:            }
1188:
1189:            /**
1190:             * Sets the value of field 'componentBindingTypeChoice'.
1191:             * 
1192:             * @param componentBindingTypeChoice the value of field
1193:             * 'componentBindingTypeChoice'.
1194:             */
1195:            public void setComponentBindingTypeChoice(
1196:                    final org.exolab.castor.builder.binding.xml.ComponentBindingTypeChoice componentBindingTypeChoice) {
1197:                this ._componentBindingTypeChoice = componentBindingTypeChoice;
1198:            }
1199:
1200:            /**
1201:             * 
1202:             * 
1203:             * @param index
1204:             * @param vElementBinding
1205:             * @throws java.lang.IndexOutOfBoundsException if the index
1206:             * given is outside the bounds of the collection
1207:             */
1208:            public void setElementBinding(
1209:                    final int index,
1210:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding)
1211:                    throws java.lang.IndexOutOfBoundsException {
1212:                // check bounds for index
1213:                if (index < 0 || index >= this ._elementBindingList.size()) {
1214:                    throw new IndexOutOfBoundsException(
1215:                            "setElementBinding: Index value '" + index
1216:                                    + "' not in range [0.."
1217:                                    + (this ._elementBindingList.size() - 1)
1218:                                    + "]");
1219:                }
1220:
1221:                this ._elementBindingList.set(index, vElementBinding);
1222:            }
1223:
1224:            /**
1225:             * 
1226:             * 
1227:             * @param vElementBindingArray
1228:             */
1229:            public void setElementBinding(
1230:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vElementBindingArray) {
1231:                //-- copy array
1232:                _elementBindingList.clear();
1233:
1234:                for (int i = 0; i < vElementBindingArray.length; i++) {
1235:                    this ._elementBindingList.add(vElementBindingArray[i]);
1236:                }
1237:            }
1238:
1239:            /**
1240:             * 
1241:             * 
1242:             * @param index
1243:             * @param vEnumBinding
1244:             * @throws java.lang.IndexOutOfBoundsException if the index
1245:             * given is outside the bounds of the collection
1246:             */
1247:            public void setEnumBinding(
1248:                    final int index,
1249:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding)
1250:                    throws java.lang.IndexOutOfBoundsException {
1251:                // check bounds for index
1252:                if (index < 0 || index >= this ._enumBindingList.size()) {
1253:                    throw new IndexOutOfBoundsException(
1254:                            "setEnumBinding: Index value '" + index
1255:                                    + "' not in range [0.."
1256:                                    + (this ._enumBindingList.size() - 1) + "]");
1257:                }
1258:
1259:                this ._enumBindingList.set(index, vEnumBinding);
1260:            }
1261:
1262:            /**
1263:             * 
1264:             * 
1265:             * @param vEnumBindingArray
1266:             */
1267:            public void setEnumBinding(
1268:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vEnumBindingArray) {
1269:                //-- copy array
1270:                _enumBindingList.clear();
1271:
1272:                for (int i = 0; i < vEnumBindingArray.length; i++) {
1273:                    this ._enumBindingList.add(vEnumBindingArray[i]);
1274:                }
1275:            }
1276:
1277:            /**
1278:             * 
1279:             * 
1280:             * @param index
1281:             * @param vGroupBinding
1282:             * @throws java.lang.IndexOutOfBoundsException if the index
1283:             * given is outside the bounds of the collection
1284:             */
1285:            public void setGroupBinding(
1286:                    final int index,
1287:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding)
1288:                    throws java.lang.IndexOutOfBoundsException {
1289:                // check bounds for index
1290:                if (index < 0 || index >= this ._groupBindingList.size()) {
1291:                    throw new IndexOutOfBoundsException(
1292:                            "setGroupBinding: Index value '" + index
1293:                                    + "' not in range [0.."
1294:                                    + (this ._groupBindingList.size() - 1) + "]");
1295:                }
1296:
1297:                this ._groupBindingList.set(index, vGroupBinding);
1298:            }
1299:
1300:            /**
1301:             * 
1302:             * 
1303:             * @param vGroupBindingArray
1304:             */
1305:            public void setGroupBinding(
1306:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vGroupBindingArray) {
1307:                //-- copy array
1308:                _groupBindingList.clear();
1309:
1310:                for (int i = 0; i < vGroupBindingArray.length; i++) {
1311:                    this ._groupBindingList.add(vGroupBindingArray[i]);
1312:                }
1313:            }
1314:
1315:            /**
1316:             * Sets the value of field 'name'.
1317:             * 
1318:             * @param name the value of field 'name'.
1319:             */
1320:            public void setName(final java.lang.String name) {
1321:                this ._name = name;
1322:            }
1323:
1324:            /**
1325:             * 
1326:             * 
1327:             * @param index
1328:             * @param vSimpleTypeBinding
1329:             * @throws java.lang.IndexOutOfBoundsException if the index
1330:             * given is outside the bounds of the collection
1331:             */
1332:            public void setSimpleTypeBinding(
1333:                    final int index,
1334:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding)
1335:                    throws java.lang.IndexOutOfBoundsException {
1336:                // check bounds for index
1337:                if (index < 0 || index >= this ._simpleTypeBindingList.size()) {
1338:                    throw new IndexOutOfBoundsException(
1339:                            "setSimpleTypeBinding: Index value '" + index
1340:                                    + "' not in range [0.."
1341:                                    + (this ._simpleTypeBindingList.size() - 1)
1342:                                    + "]");
1343:                }
1344:
1345:                this ._simpleTypeBindingList.set(index, vSimpleTypeBinding);
1346:            }
1347:
1348:            /**
1349:             * 
1350:             * 
1351:             * @param vSimpleTypeBindingArray
1352:             */
1353:            public void setSimpleTypeBinding(
1354:                    final org.exolab.castor.builder.binding.xml.ComponentBindingType[] vSimpleTypeBindingArray) {
1355:                //-- copy array
1356:                _simpleTypeBindingList.clear();
1357:
1358:                for (int i = 0; i < vSimpleTypeBindingArray.length; i++) {
1359:                    this ._simpleTypeBindingList.add(vSimpleTypeBindingArray[i]);
1360:                }
1361:            }
1362:
1363:            /**
1364:             * Method unmarshalComponentBindingType.
1365:             * 
1366:             * @param reader
1367:             * @throws org.exolab.castor.xml.MarshalException if object is
1368:             * null or if any SAXException is thrown during marshaling
1369:             * @throws org.exolab.castor.xml.ValidationException if this
1370:             * object is an invalid instance according to the schema
1371:             * @return the unmarshaled
1372:             * org.exolab.castor.builder.binding.ComponentBindingType
1373:             */
1374:            public static org.exolab.castor.builder.binding.xml.ComponentBindingType unmarshalComponentBindingType(
1375:                    final java.io.Reader reader)
1376:                    throws org.exolab.castor.xml.MarshalException,
1377:                    org.exolab.castor.xml.ValidationException {
1378:                return (org.exolab.castor.builder.binding.xml.ComponentBindingType) Unmarshaller
1379:                        .unmarshal(
1380:                                org.exolab.castor.builder.binding.xml.ComponentBindingType.class,
1381:                                reader);
1382:            }
1383:
1384:            /**
1385:             * 
1386:             * 
1387:             * @throws org.exolab.castor.xml.ValidationException if this
1388:             * object is an invalid instance according to the schema
1389:             */
1390:            public void validate()
1391:                    throws org.exolab.castor.xml.ValidationException {
1392:                org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1393:                validator.validate(this);
1394:            }
1395:
1396:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.