001    /*
002     * XML Type:  tBinding
003     * Namespace: http://schemas.xmlsoap.org/wsdl/
004     * Java type: org.apache.geronimo.xbeans.wsdl.TBinding
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.wsdl.impl;
009    /**
010     * An XML tBinding(@http://schemas.xmlsoap.org/wsdl/).
011     *
012     * This is a complex type.
013     */
014    public class TBindingImpl extends org.apache.geronimo.xbeans.wsdl.impl.TExtensibleDocumentedImpl implements org.apache.geronimo.xbeans.wsdl.TBinding
015    {
016        
017        public TBindingImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName OPERATION$0 = 
023            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/wsdl/", "operation");
024        private static final javax.xml.namespace.QName NAME$2 = 
025            new javax.xml.namespace.QName("", "name");
026        private static final javax.xml.namespace.QName TYPE$4 = 
027            new javax.xml.namespace.QName("", "type");
028        
029        
030        /**
031         * Gets array of all "operation" elements
032         */
033        public org.apache.geronimo.xbeans.wsdl.TBindingOperation[] getOperationArray()
034        {
035            synchronized (monitor())
036            {
037                check_orphaned();
038                java.util.List targetList = new java.util.ArrayList();
039                get_store().find_all_element_users(OPERATION$0, targetList);
040                org.apache.geronimo.xbeans.wsdl.TBindingOperation[] result = new org.apache.geronimo.xbeans.wsdl.TBindingOperation[targetList.size()];
041                targetList.toArray(result);
042                return result;
043            }
044        }
045        
046        /**
047         * Gets ith "operation" element
048         */
049        public org.apache.geronimo.xbeans.wsdl.TBindingOperation getOperationArray(int i)
050        {
051            synchronized (monitor())
052            {
053                check_orphaned();
054                org.apache.geronimo.xbeans.wsdl.TBindingOperation target = null;
055                target = (org.apache.geronimo.xbeans.wsdl.TBindingOperation)get_store().find_element_user(OPERATION$0, i);
056                if (target == null)
057                {
058                    throw new IndexOutOfBoundsException();
059                }
060                return target;
061            }
062        }
063        
064        /**
065         * Returns number of "operation" element
066         */
067        public int sizeOfOperationArray()
068        {
069            synchronized (monitor())
070            {
071                check_orphaned();
072                return get_store().count_elements(OPERATION$0);
073            }
074        }
075        
076        /**
077         * Sets array of all "operation" element
078         */
079        public void setOperationArray(org.apache.geronimo.xbeans.wsdl.TBindingOperation[] operationArray)
080        {
081            synchronized (monitor())
082            {
083                check_orphaned();
084                arraySetterHelper(operationArray, OPERATION$0);
085            }
086        }
087        
088        /**
089         * Sets ith "operation" element
090         */
091        public void setOperationArray(int i, org.apache.geronimo.xbeans.wsdl.TBindingOperation operation)
092        {
093            synchronized (monitor())
094            {
095                check_orphaned();
096                org.apache.geronimo.xbeans.wsdl.TBindingOperation target = null;
097                target = (org.apache.geronimo.xbeans.wsdl.TBindingOperation)get_store().find_element_user(OPERATION$0, i);
098                if (target == null)
099                {
100                    throw new IndexOutOfBoundsException();
101                }
102                target.set(operation);
103            }
104        }
105        
106        /**
107         * Inserts and returns a new empty value (as xml) as the ith "operation" element
108         */
109        public org.apache.geronimo.xbeans.wsdl.TBindingOperation insertNewOperation(int i)
110        {
111            synchronized (monitor())
112            {
113                check_orphaned();
114                org.apache.geronimo.xbeans.wsdl.TBindingOperation target = null;
115                target = (org.apache.geronimo.xbeans.wsdl.TBindingOperation)get_store().insert_element_user(OPERATION$0, i);
116                return target;
117            }
118        }
119        
120        /**
121         * Appends and returns a new empty value (as xml) as the last "operation" element
122         */
123        public org.apache.geronimo.xbeans.wsdl.TBindingOperation addNewOperation()
124        {
125            synchronized (monitor())
126            {
127                check_orphaned();
128                org.apache.geronimo.xbeans.wsdl.TBindingOperation target = null;
129                target = (org.apache.geronimo.xbeans.wsdl.TBindingOperation)get_store().add_element_user(OPERATION$0);
130                return target;
131            }
132        }
133        
134        /**
135         * Removes the ith "operation" element
136         */
137        public void removeOperation(int i)
138        {
139            synchronized (monitor())
140            {
141                check_orphaned();
142                get_store().remove_element(OPERATION$0, i);
143            }
144        }
145        
146        /**
147         * Gets the "name" attribute
148         */
149        public java.lang.String getName()
150        {
151            synchronized (monitor())
152            {
153                check_orphaned();
154                org.apache.xmlbeans.SimpleValue target = null;
155                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);
156                if (target == null)
157                {
158                    return null;
159                }
160                return target.getStringValue();
161            }
162        }
163        
164        /**
165         * Gets (as xml) the "name" attribute
166         */
167        public org.apache.xmlbeans.XmlNCName xgetName()
168        {
169            synchronized (monitor())
170            {
171                check_orphaned();
172                org.apache.xmlbeans.XmlNCName target = null;
173                target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$2);
174                return target;
175            }
176        }
177        
178        /**
179         * Sets the "name" attribute
180         */
181        public void setName(java.lang.String name)
182        {
183            synchronized (monitor())
184            {
185                check_orphaned();
186                org.apache.xmlbeans.SimpleValue target = null;
187                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);
188                if (target == null)
189                {
190                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$2);
191                }
192                target.setStringValue(name);
193            }
194        }
195        
196        /**
197         * Sets (as xml) the "name" attribute
198         */
199        public void xsetName(org.apache.xmlbeans.XmlNCName name)
200        {
201            synchronized (monitor())
202            {
203                check_orphaned();
204                org.apache.xmlbeans.XmlNCName target = null;
205                target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$2);
206                if (target == null)
207                {
208                    target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$2);
209                }
210                target.set(name);
211            }
212        }
213        
214        /**
215         * Gets the "type" attribute
216         */
217        public javax.xml.namespace.QName getType()
218        {
219            synchronized (monitor())
220            {
221                check_orphaned();
222                org.apache.xmlbeans.SimpleValue target = null;
223                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$4);
224                if (target == null)
225                {
226                    return null;
227                }
228                return target.getQNameValue();
229            }
230        }
231        
232        /**
233         * Gets (as xml) the "type" attribute
234         */
235        public org.apache.xmlbeans.XmlQName xgetType()
236        {
237            synchronized (monitor())
238            {
239                check_orphaned();
240                org.apache.xmlbeans.XmlQName target = null;
241                target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(TYPE$4);
242                return target;
243            }
244        }
245        
246        /**
247         * Sets the "type" attribute
248         */
249        public void setType(javax.xml.namespace.QName type)
250        {
251            synchronized (monitor())
252            {
253                check_orphaned();
254                org.apache.xmlbeans.SimpleValue target = null;
255                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$4);
256                if (target == null)
257                {
258                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$4);
259                }
260                target.setQNameValue(type);
261            }
262        }
263        
264        /**
265         * Sets (as xml) the "type" attribute
266         */
267        public void xsetType(org.apache.xmlbeans.XmlQName type)
268        {
269            synchronized (monitor())
270            {
271                check_orphaned();
272                org.apache.xmlbeans.XmlQName target = null;
273                target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(TYPE$4);
274                if (target == null)
275                {
276                    target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(TYPE$4);
277                }
278                target.set(type);
279            }
280        }
281    }