001 /* 002 * XML Type: tBindingOperation 003 * Namespace: http://schemas.xmlsoap.org/wsdl/ 004 * Java type: org.apache.geronimo.xbeans.wsdl.TBindingOperation 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.wsdl.impl; 009 /** 010 * An XML tBindingOperation(@http://schemas.xmlsoap.org/wsdl/). 011 * 012 * This is a complex type. 013 */ 014 public class TBindingOperationImpl extends org.apache.geronimo.xbeans.wsdl.impl.TExtensibleDocumentedImpl implements org.apache.geronimo.xbeans.wsdl.TBindingOperation 015 { 016 017 public TBindingOperationImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName INPUT$0 = 023 new javax.xml.namespace.QName("http://schemas.xmlsoap.org/wsdl/", "input"); 024 private static final javax.xml.namespace.QName OUTPUT$2 = 025 new javax.xml.namespace.QName("http://schemas.xmlsoap.org/wsdl/", "output"); 026 private static final javax.xml.namespace.QName FAULT$4 = 027 new javax.xml.namespace.QName("http://schemas.xmlsoap.org/wsdl/", "fault"); 028 private static final javax.xml.namespace.QName NAME$6 = 029 new javax.xml.namespace.QName("", "name"); 030 031 032 /** 033 * Gets the "input" element 034 */ 035 public org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage getInput() 036 { 037 synchronized (monitor()) 038 { 039 check_orphaned(); 040 org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage target = null; 041 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage)get_store().find_element_user(INPUT$0, 0); 042 if (target == null) 043 { 044 return null; 045 } 046 return target; 047 } 048 } 049 050 /** 051 * True if has "input" element 052 */ 053 public boolean isSetInput() 054 { 055 synchronized (monitor()) 056 { 057 check_orphaned(); 058 return get_store().count_elements(INPUT$0) != 0; 059 } 060 } 061 062 /** 063 * Sets the "input" element 064 */ 065 public void setInput(org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage input) 066 { 067 synchronized (monitor()) 068 { 069 check_orphaned(); 070 org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage target = null; 071 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage)get_store().find_element_user(INPUT$0, 0); 072 if (target == null) 073 { 074 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage)get_store().add_element_user(INPUT$0); 075 } 076 target.set(input); 077 } 078 } 079 080 /** 081 * Appends and returns a new empty "input" element 082 */ 083 public org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage addNewInput() 084 { 085 synchronized (monitor()) 086 { 087 check_orphaned(); 088 org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage target = null; 089 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage)get_store().add_element_user(INPUT$0); 090 return target; 091 } 092 } 093 094 /** 095 * Unsets the "input" element 096 */ 097 public void unsetInput() 098 { 099 synchronized (monitor()) 100 { 101 check_orphaned(); 102 get_store().remove_element(INPUT$0, 0); 103 } 104 } 105 106 /** 107 * Gets the "output" element 108 */ 109 public org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage getOutput() 110 { 111 synchronized (monitor()) 112 { 113 check_orphaned(); 114 org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage target = null; 115 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage)get_store().find_element_user(OUTPUT$2, 0); 116 if (target == null) 117 { 118 return null; 119 } 120 return target; 121 } 122 } 123 124 /** 125 * True if has "output" element 126 */ 127 public boolean isSetOutput() 128 { 129 synchronized (monitor()) 130 { 131 check_orphaned(); 132 return get_store().count_elements(OUTPUT$2) != 0; 133 } 134 } 135 136 /** 137 * Sets the "output" element 138 */ 139 public void setOutput(org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage output) 140 { 141 synchronized (monitor()) 142 { 143 check_orphaned(); 144 org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage target = null; 145 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage)get_store().find_element_user(OUTPUT$2, 0); 146 if (target == null) 147 { 148 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage)get_store().add_element_user(OUTPUT$2); 149 } 150 target.set(output); 151 } 152 } 153 154 /** 155 * Appends and returns a new empty "output" element 156 */ 157 public org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage addNewOutput() 158 { 159 synchronized (monitor()) 160 { 161 check_orphaned(); 162 org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage target = null; 163 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationMessage)get_store().add_element_user(OUTPUT$2); 164 return target; 165 } 166 } 167 168 /** 169 * Unsets the "output" element 170 */ 171 public void unsetOutput() 172 { 173 synchronized (monitor()) 174 { 175 check_orphaned(); 176 get_store().remove_element(OUTPUT$2, 0); 177 } 178 } 179 180 /** 181 * Gets array of all "fault" elements 182 */ 183 public org.apache.geronimo.xbeans.wsdl.TBindingOperationFault[] getFaultArray() 184 { 185 synchronized (monitor()) 186 { 187 check_orphaned(); 188 java.util.List targetList = new java.util.ArrayList(); 189 get_store().find_all_element_users(FAULT$4, targetList); 190 org.apache.geronimo.xbeans.wsdl.TBindingOperationFault[] result = new org.apache.geronimo.xbeans.wsdl.TBindingOperationFault[targetList.size()]; 191 targetList.toArray(result); 192 return result; 193 } 194 } 195 196 /** 197 * Gets ith "fault" element 198 */ 199 public org.apache.geronimo.xbeans.wsdl.TBindingOperationFault getFaultArray(int i) 200 { 201 synchronized (monitor()) 202 { 203 check_orphaned(); 204 org.apache.geronimo.xbeans.wsdl.TBindingOperationFault target = null; 205 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationFault)get_store().find_element_user(FAULT$4, i); 206 if (target == null) 207 { 208 throw new IndexOutOfBoundsException(); 209 } 210 return target; 211 } 212 } 213 214 /** 215 * Returns number of "fault" element 216 */ 217 public int sizeOfFaultArray() 218 { 219 synchronized (monitor()) 220 { 221 check_orphaned(); 222 return get_store().count_elements(FAULT$4); 223 } 224 } 225 226 /** 227 * Sets array of all "fault" element 228 */ 229 public void setFaultArray(org.apache.geronimo.xbeans.wsdl.TBindingOperationFault[] faultArray) 230 { 231 synchronized (monitor()) 232 { 233 check_orphaned(); 234 arraySetterHelper(faultArray, FAULT$4); 235 } 236 } 237 238 /** 239 * Sets ith "fault" element 240 */ 241 public void setFaultArray(int i, org.apache.geronimo.xbeans.wsdl.TBindingOperationFault fault) 242 { 243 synchronized (monitor()) 244 { 245 check_orphaned(); 246 org.apache.geronimo.xbeans.wsdl.TBindingOperationFault target = null; 247 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationFault)get_store().find_element_user(FAULT$4, i); 248 if (target == null) 249 { 250 throw new IndexOutOfBoundsException(); 251 } 252 target.set(fault); 253 } 254 } 255 256 /** 257 * Inserts and returns a new empty value (as xml) as the ith "fault" element 258 */ 259 public org.apache.geronimo.xbeans.wsdl.TBindingOperationFault insertNewFault(int i) 260 { 261 synchronized (monitor()) 262 { 263 check_orphaned(); 264 org.apache.geronimo.xbeans.wsdl.TBindingOperationFault target = null; 265 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationFault)get_store().insert_element_user(FAULT$4, i); 266 return target; 267 } 268 } 269 270 /** 271 * Appends and returns a new empty value (as xml) as the last "fault" element 272 */ 273 public org.apache.geronimo.xbeans.wsdl.TBindingOperationFault addNewFault() 274 { 275 synchronized (monitor()) 276 { 277 check_orphaned(); 278 org.apache.geronimo.xbeans.wsdl.TBindingOperationFault target = null; 279 target = (org.apache.geronimo.xbeans.wsdl.TBindingOperationFault)get_store().add_element_user(FAULT$4); 280 return target; 281 } 282 } 283 284 /** 285 * Removes the ith "fault" element 286 */ 287 public void removeFault(int i) 288 { 289 synchronized (monitor()) 290 { 291 check_orphaned(); 292 get_store().remove_element(FAULT$4, i); 293 } 294 } 295 296 /** 297 * Gets the "name" attribute 298 */ 299 public java.lang.String getName() 300 { 301 synchronized (monitor()) 302 { 303 check_orphaned(); 304 org.apache.xmlbeans.SimpleValue target = null; 305 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6); 306 if (target == null) 307 { 308 return null; 309 } 310 return target.getStringValue(); 311 } 312 } 313 314 /** 315 * Gets (as xml) the "name" attribute 316 */ 317 public org.apache.xmlbeans.XmlNCName xgetName() 318 { 319 synchronized (monitor()) 320 { 321 check_orphaned(); 322 org.apache.xmlbeans.XmlNCName target = null; 323 target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$6); 324 return target; 325 } 326 } 327 328 /** 329 * Sets the "name" attribute 330 */ 331 public void setName(java.lang.String name) 332 { 333 synchronized (monitor()) 334 { 335 check_orphaned(); 336 org.apache.xmlbeans.SimpleValue target = null; 337 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6); 338 if (target == null) 339 { 340 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$6); 341 } 342 target.setStringValue(name); 343 } 344 } 345 346 /** 347 * Sets (as xml) the "name" attribute 348 */ 349 public void xsetName(org.apache.xmlbeans.XmlNCName name) 350 { 351 synchronized (monitor()) 352 { 353 check_orphaned(); 354 org.apache.xmlbeans.XmlNCName target = null; 355 target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$6); 356 if (target == null) 357 { 358 target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$6); 359 } 360 target.set(name); 361 } 362 } 363 }