001 /* 002 * XML Type: application-clientType 003 * Namespace: http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0 004 * Java type: org.apache.geronimo.xbeans.geronimo.client.GerApplicationClientType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.client.impl; 009 /** 010 * An XML application-clientType(@http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0). 011 * 012 * This is a complex type. 013 */ 014 public class GerApplicationClientTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.client.GerApplicationClientType 015 { 016 017 public GerApplicationClientTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName CLIENTENVIRONMENT$0 = 023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "client-environment"); 024 private static final javax.xml.namespace.QName SERVERENVIRONMENT$2 = 025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "server-environment"); 026 private static final javax.xml.namespace.QName GBEANREF$4 = 027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "gbean-ref"); 028 private static final javax.xml.namespace.QName EJBREF$6 = 029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ejb-ref"); 030 private static final javax.xml.namespace.QName SERVICEREF$8 = 031 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "service-ref"); 032 private static final javax.xml.namespace.QName RESOURCEREF$10 = 033 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-ref"); 034 private static final javax.xml.namespace.QName RESOURCEENVREF$12 = 035 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-env-ref"); 036 private static final javax.xml.namespace.QName MESSAGEDESTINATION$14 = 037 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "message-destination"); 038 private static final javax.xml.namespace.QName DEFAULTSUBJECT$16 = 039 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/security-2.0", "default-subject"); 040 private static final javax.xml.namespace.QName REALMNAME$18 = 041 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0", "realm-name"); 042 private static final javax.xml.namespace.QName CALLBACKHANDLER$20 = 043 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0", "callback-handler"); 044 private static final javax.xml.namespace.QName RESOURCE$22 = 045 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0", "resource"); 046 private static final javax.xml.namespace.QName SERVICE$24 = 047 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service"); 048 private static final org.apache.xmlbeans.QNameSet SERVICE$25 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 049 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service"), 050 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "gbean"), 051 }); 052 053 054 /** 055 * Gets the "client-environment" element 056 */ 057 public org.apache.geronimo.deployment.xbeans.EnvironmentType getClientEnvironment() 058 { 059 synchronized (monitor()) 060 { 061 check_orphaned(); 062 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 063 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(CLIENTENVIRONMENT$0, 0); 064 if (target == null) 065 { 066 return null; 067 } 068 return target; 069 } 070 } 071 072 /** 073 * Sets the "client-environment" element 074 */ 075 public void setClientEnvironment(org.apache.geronimo.deployment.xbeans.EnvironmentType clientEnvironment) 076 { 077 synchronized (monitor()) 078 { 079 check_orphaned(); 080 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 081 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(CLIENTENVIRONMENT$0, 0); 082 if (target == null) 083 { 084 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(CLIENTENVIRONMENT$0); 085 } 086 target.set(clientEnvironment); 087 } 088 } 089 090 /** 091 * Appends and returns a new empty "client-environment" element 092 */ 093 public org.apache.geronimo.deployment.xbeans.EnvironmentType addNewClientEnvironment() 094 { 095 synchronized (monitor()) 096 { 097 check_orphaned(); 098 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 099 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(CLIENTENVIRONMENT$0); 100 return target; 101 } 102 } 103 104 /** 105 * Gets the "server-environment" element 106 */ 107 public org.apache.geronimo.deployment.xbeans.EnvironmentType getServerEnvironment() 108 { 109 synchronized (monitor()) 110 { 111 check_orphaned(); 112 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 113 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(SERVERENVIRONMENT$2, 0); 114 if (target == null) 115 { 116 return null; 117 } 118 return target; 119 } 120 } 121 122 /** 123 * Sets the "server-environment" element 124 */ 125 public void setServerEnvironment(org.apache.geronimo.deployment.xbeans.EnvironmentType serverEnvironment) 126 { 127 synchronized (monitor()) 128 { 129 check_orphaned(); 130 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 131 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(SERVERENVIRONMENT$2, 0); 132 if (target == null) 133 { 134 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(SERVERENVIRONMENT$2); 135 } 136 target.set(serverEnvironment); 137 } 138 } 139 140 /** 141 * Appends and returns a new empty "server-environment" element 142 */ 143 public org.apache.geronimo.deployment.xbeans.EnvironmentType addNewServerEnvironment() 144 { 145 synchronized (monitor()) 146 { 147 check_orphaned(); 148 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 149 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(SERVERENVIRONMENT$2); 150 return target; 151 } 152 } 153 154 /** 155 * Gets array of all "gbean-ref" elements 156 */ 157 public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType[] getGbeanRefArray() 158 { 159 synchronized (monitor()) 160 { 161 check_orphaned(); 162 java.util.List targetList = new java.util.ArrayList(); 163 get_store().find_all_element_users(GBEANREF$4, targetList); 164 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType[targetList.size()]; 165 targetList.toArray(result); 166 return result; 167 } 168 } 169 170 /** 171 * Gets ith "gbean-ref" element 172 */ 173 public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType getGbeanRefArray(int i) 174 { 175 synchronized (monitor()) 176 { 177 check_orphaned(); 178 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType target = null; 179 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType)get_store().find_element_user(GBEANREF$4, i); 180 if (target == null) 181 { 182 throw new IndexOutOfBoundsException(); 183 } 184 return target; 185 } 186 } 187 188 /** 189 * Returns number of "gbean-ref" element 190 */ 191 public int sizeOfGbeanRefArray() 192 { 193 synchronized (monitor()) 194 { 195 check_orphaned(); 196 return get_store().count_elements(GBEANREF$4); 197 } 198 } 199 200 /** 201 * Sets array of all "gbean-ref" element 202 */ 203 public void setGbeanRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType[] gbeanRefArray) 204 { 205 synchronized (monitor()) 206 { 207 check_orphaned(); 208 arraySetterHelper(gbeanRefArray, GBEANREF$4); 209 } 210 } 211 212 /** 213 * Sets ith "gbean-ref" element 214 */ 215 public void setGbeanRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType gbeanRef) 216 { 217 synchronized (monitor()) 218 { 219 check_orphaned(); 220 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType target = null; 221 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType)get_store().find_element_user(GBEANREF$4, i); 222 if (target == null) 223 { 224 throw new IndexOutOfBoundsException(); 225 } 226 target.set(gbeanRef); 227 } 228 } 229 230 /** 231 * Inserts and returns a new empty value (as xml) as the ith "gbean-ref" element 232 */ 233 public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType insertNewGbeanRef(int i) 234 { 235 synchronized (monitor()) 236 { 237 check_orphaned(); 238 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType target = null; 239 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType)get_store().insert_element_user(GBEANREF$4, i); 240 return target; 241 } 242 } 243 244 /** 245 * Appends and returns a new empty value (as xml) as the last "gbean-ref" element 246 */ 247 public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType addNewGbeanRef() 248 { 249 synchronized (monitor()) 250 { 251 check_orphaned(); 252 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType target = null; 253 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanRefType)get_store().add_element_user(GBEANREF$4); 254 return target; 255 } 256 } 257 258 /** 259 * Removes the ith "gbean-ref" element 260 */ 261 public void removeGbeanRef(int i) 262 { 263 synchronized (monitor()) 264 { 265 check_orphaned(); 266 get_store().remove_element(GBEANREF$4, i); 267 } 268 } 269 270 /** 271 * Gets array of all "ejb-ref" elements 272 */ 273 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] getEjbRefArray() 274 { 275 synchronized (monitor()) 276 { 277 check_orphaned(); 278 java.util.List targetList = new java.util.ArrayList(); 279 get_store().find_all_element_users(EJBREF$6, targetList); 280 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[targetList.size()]; 281 targetList.toArray(result); 282 return result; 283 } 284 } 285 286 /** 287 * Gets ith "ejb-ref" element 288 */ 289 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType getEjbRefArray(int i) 290 { 291 synchronized (monitor()) 292 { 293 check_orphaned(); 294 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 295 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$6, i); 296 if (target == null) 297 { 298 throw new IndexOutOfBoundsException(); 299 } 300 return target; 301 } 302 } 303 304 /** 305 * Returns number of "ejb-ref" element 306 */ 307 public int sizeOfEjbRefArray() 308 { 309 synchronized (monitor()) 310 { 311 check_orphaned(); 312 return get_store().count_elements(EJBREF$6); 313 } 314 } 315 316 /** 317 * Sets array of all "ejb-ref" element 318 */ 319 public void setEjbRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] ejbRefArray) 320 { 321 synchronized (monitor()) 322 { 323 check_orphaned(); 324 arraySetterHelper(ejbRefArray, EJBREF$6); 325 } 326 } 327 328 /** 329 * Sets ith "ejb-ref" element 330 */ 331 public void setEjbRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType ejbRef) 332 { 333 synchronized (monitor()) 334 { 335 check_orphaned(); 336 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 337 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$6, i); 338 if (target == null) 339 { 340 throw new IndexOutOfBoundsException(); 341 } 342 target.set(ejbRef); 343 } 344 } 345 346 /** 347 * Inserts and returns a new empty value (as xml) as the ith "ejb-ref" element 348 */ 349 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType insertNewEjbRef(int i) 350 { 351 synchronized (monitor()) 352 { 353 check_orphaned(); 354 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 355 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().insert_element_user(EJBREF$6, i); 356 return target; 357 } 358 } 359 360 /** 361 * Appends and returns a new empty value (as xml) as the last "ejb-ref" element 362 */ 363 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType addNewEjbRef() 364 { 365 synchronized (monitor()) 366 { 367 check_orphaned(); 368 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 369 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().add_element_user(EJBREF$6); 370 return target; 371 } 372 } 373 374 /** 375 * Removes the ith "ejb-ref" element 376 */ 377 public void removeEjbRef(int i) 378 { 379 synchronized (monitor()) 380 { 381 check_orphaned(); 382 get_store().remove_element(EJBREF$6, i); 383 } 384 } 385 386 /** 387 * Gets array of all "service-ref" elements 388 */ 389 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] getServiceRefArray() 390 { 391 synchronized (monitor()) 392 { 393 check_orphaned(); 394 java.util.List targetList = new java.util.ArrayList(); 395 get_store().find_all_element_users(SERVICEREF$8, targetList); 396 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[targetList.size()]; 397 targetList.toArray(result); 398 return result; 399 } 400 } 401 402 /** 403 * Gets ith "service-ref" element 404 */ 405 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType getServiceRefArray(int i) 406 { 407 synchronized (monitor()) 408 { 409 check_orphaned(); 410 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 411 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$8, i); 412 if (target == null) 413 { 414 throw new IndexOutOfBoundsException(); 415 } 416 return target; 417 } 418 } 419 420 /** 421 * Returns number of "service-ref" element 422 */ 423 public int sizeOfServiceRefArray() 424 { 425 synchronized (monitor()) 426 { 427 check_orphaned(); 428 return get_store().count_elements(SERVICEREF$8); 429 } 430 } 431 432 /** 433 * Sets array of all "service-ref" element 434 */ 435 public void setServiceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] serviceRefArray) 436 { 437 synchronized (monitor()) 438 { 439 check_orphaned(); 440 arraySetterHelper(serviceRefArray, SERVICEREF$8); 441 } 442 } 443 444 /** 445 * Sets ith "service-ref" element 446 */ 447 public void setServiceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType serviceRef) 448 { 449 synchronized (monitor()) 450 { 451 check_orphaned(); 452 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 453 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$8, i); 454 if (target == null) 455 { 456 throw new IndexOutOfBoundsException(); 457 } 458 target.set(serviceRef); 459 } 460 } 461 462 /** 463 * Inserts and returns a new empty value (as xml) as the ith "service-ref" element 464 */ 465 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType insertNewServiceRef(int i) 466 { 467 synchronized (monitor()) 468 { 469 check_orphaned(); 470 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 471 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().insert_element_user(SERVICEREF$8, i); 472 return target; 473 } 474 } 475 476 /** 477 * Appends and returns a new empty value (as xml) as the last "service-ref" element 478 */ 479 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType addNewServiceRef() 480 { 481 synchronized (monitor()) 482 { 483 check_orphaned(); 484 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 485 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().add_element_user(SERVICEREF$8); 486 return target; 487 } 488 } 489 490 /** 491 * Removes the ith "service-ref" element 492 */ 493 public void removeServiceRef(int i) 494 { 495 synchronized (monitor()) 496 { 497 check_orphaned(); 498 get_store().remove_element(SERVICEREF$8, i); 499 } 500 } 501 502 /** 503 * Gets array of all "resource-ref" elements 504 */ 505 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] getResourceRefArray() 506 { 507 synchronized (monitor()) 508 { 509 check_orphaned(); 510 java.util.List targetList = new java.util.ArrayList(); 511 get_store().find_all_element_users(RESOURCEREF$10, targetList); 512 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[targetList.size()]; 513 targetList.toArray(result); 514 return result; 515 } 516 } 517 518 /** 519 * Gets ith "resource-ref" element 520 */ 521 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType getResourceRefArray(int i) 522 { 523 synchronized (monitor()) 524 { 525 check_orphaned(); 526 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 527 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$10, i); 528 if (target == null) 529 { 530 throw new IndexOutOfBoundsException(); 531 } 532 return target; 533 } 534 } 535 536 /** 537 * Returns number of "resource-ref" element 538 */ 539 public int sizeOfResourceRefArray() 540 { 541 synchronized (monitor()) 542 { 543 check_orphaned(); 544 return get_store().count_elements(RESOURCEREF$10); 545 } 546 } 547 548 /** 549 * Sets array of all "resource-ref" element 550 */ 551 public void setResourceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] resourceRefArray) 552 { 553 synchronized (monitor()) 554 { 555 check_orphaned(); 556 arraySetterHelper(resourceRefArray, RESOURCEREF$10); 557 } 558 } 559 560 /** 561 * Sets ith "resource-ref" element 562 */ 563 public void setResourceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType resourceRef) 564 { 565 synchronized (monitor()) 566 { 567 check_orphaned(); 568 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 569 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$10, i); 570 if (target == null) 571 { 572 throw new IndexOutOfBoundsException(); 573 } 574 target.set(resourceRef); 575 } 576 } 577 578 /** 579 * Inserts and returns a new empty value (as xml) as the ith "resource-ref" element 580 */ 581 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType insertNewResourceRef(int i) 582 { 583 synchronized (monitor()) 584 { 585 check_orphaned(); 586 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 587 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().insert_element_user(RESOURCEREF$10, i); 588 return target; 589 } 590 } 591 592 /** 593 * Appends and returns a new empty value (as xml) as the last "resource-ref" element 594 */ 595 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType addNewResourceRef() 596 { 597 synchronized (monitor()) 598 { 599 check_orphaned(); 600 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 601 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().add_element_user(RESOURCEREF$10); 602 return target; 603 } 604 } 605 606 /** 607 * Removes the ith "resource-ref" element 608 */ 609 public void removeResourceRef(int i) 610 { 611 synchronized (monitor()) 612 { 613 check_orphaned(); 614 get_store().remove_element(RESOURCEREF$10, i); 615 } 616 } 617 618 /** 619 * Gets array of all "resource-env-ref" elements 620 */ 621 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] getResourceEnvRefArray() 622 { 623 synchronized (monitor()) 624 { 625 check_orphaned(); 626 java.util.List targetList = new java.util.ArrayList(); 627 get_store().find_all_element_users(RESOURCEENVREF$12, targetList); 628 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[targetList.size()]; 629 targetList.toArray(result); 630 return result; 631 } 632 } 633 634 /** 635 * Gets ith "resource-env-ref" element 636 */ 637 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType getResourceEnvRefArray(int i) 638 { 639 synchronized (monitor()) 640 { 641 check_orphaned(); 642 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 643 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$12, i); 644 if (target == null) 645 { 646 throw new IndexOutOfBoundsException(); 647 } 648 return target; 649 } 650 } 651 652 /** 653 * Returns number of "resource-env-ref" element 654 */ 655 public int sizeOfResourceEnvRefArray() 656 { 657 synchronized (monitor()) 658 { 659 check_orphaned(); 660 return get_store().count_elements(RESOURCEENVREF$12); 661 } 662 } 663 664 /** 665 * Sets array of all "resource-env-ref" element 666 */ 667 public void setResourceEnvRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] resourceEnvRefArray) 668 { 669 synchronized (monitor()) 670 { 671 check_orphaned(); 672 arraySetterHelper(resourceEnvRefArray, RESOURCEENVREF$12); 673 } 674 } 675 676 /** 677 * Sets ith "resource-env-ref" element 678 */ 679 public void setResourceEnvRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType resourceEnvRef) 680 { 681 synchronized (monitor()) 682 { 683 check_orphaned(); 684 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 685 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$12, i); 686 if (target == null) 687 { 688 throw new IndexOutOfBoundsException(); 689 } 690 target.set(resourceEnvRef); 691 } 692 } 693 694 /** 695 * Inserts and returns a new empty value (as xml) as the ith "resource-env-ref" element 696 */ 697 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType insertNewResourceEnvRef(int i) 698 { 699 synchronized (monitor()) 700 { 701 check_orphaned(); 702 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 703 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().insert_element_user(RESOURCEENVREF$12, i); 704 return target; 705 } 706 } 707 708 /** 709 * Appends and returns a new empty value (as xml) as the last "resource-env-ref" element 710 */ 711 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType addNewResourceEnvRef() 712 { 713 synchronized (monitor()) 714 { 715 check_orphaned(); 716 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 717 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().add_element_user(RESOURCEENVREF$12); 718 return target; 719 } 720 } 721 722 /** 723 * Removes the ith "resource-env-ref" element 724 */ 725 public void removeResourceEnvRef(int i) 726 { 727 synchronized (monitor()) 728 { 729 check_orphaned(); 730 get_store().remove_element(RESOURCEENVREF$12, i); 731 } 732 } 733 734 /** 735 * Gets array of all "message-destination" elements 736 */ 737 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] getMessageDestinationArray() 738 { 739 synchronized (monitor()) 740 { 741 check_orphaned(); 742 java.util.List targetList = new java.util.ArrayList(); 743 get_store().find_all_element_users(MESSAGEDESTINATION$14, targetList); 744 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[targetList.size()]; 745 targetList.toArray(result); 746 return result; 747 } 748 } 749 750 /** 751 * Gets ith "message-destination" element 752 */ 753 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType getMessageDestinationArray(int i) 754 { 755 synchronized (monitor()) 756 { 757 check_orphaned(); 758 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 759 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$14, i); 760 if (target == null) 761 { 762 throw new IndexOutOfBoundsException(); 763 } 764 return target; 765 } 766 } 767 768 /** 769 * Returns number of "message-destination" element 770 */ 771 public int sizeOfMessageDestinationArray() 772 { 773 synchronized (monitor()) 774 { 775 check_orphaned(); 776 return get_store().count_elements(MESSAGEDESTINATION$14); 777 } 778 } 779 780 /** 781 * Sets array of all "message-destination" element 782 */ 783 public void setMessageDestinationArray(org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] messageDestinationArray) 784 { 785 synchronized (monitor()) 786 { 787 check_orphaned(); 788 arraySetterHelper(messageDestinationArray, MESSAGEDESTINATION$14); 789 } 790 } 791 792 /** 793 * Sets ith "message-destination" element 794 */ 795 public void setMessageDestinationArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType messageDestination) 796 { 797 synchronized (monitor()) 798 { 799 check_orphaned(); 800 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 801 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$14, i); 802 if (target == null) 803 { 804 throw new IndexOutOfBoundsException(); 805 } 806 target.set(messageDestination); 807 } 808 } 809 810 /** 811 * Inserts and returns a new empty value (as xml) as the ith "message-destination" element 812 */ 813 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType insertNewMessageDestination(int i) 814 { 815 synchronized (monitor()) 816 { 817 check_orphaned(); 818 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 819 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().insert_element_user(MESSAGEDESTINATION$14, i); 820 return target; 821 } 822 } 823 824 /** 825 * Appends and returns a new empty value (as xml) as the last "message-destination" element 826 */ 827 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType addNewMessageDestination() 828 { 829 synchronized (monitor()) 830 { 831 check_orphaned(); 832 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 833 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().add_element_user(MESSAGEDESTINATION$14); 834 return target; 835 } 836 } 837 838 /** 839 * Removes the ith "message-destination" element 840 */ 841 public void removeMessageDestination(int i) 842 { 843 synchronized (monitor()) 844 { 845 check_orphaned(); 846 get_store().remove_element(MESSAGEDESTINATION$14, i); 847 } 848 } 849 850 /** 851 * Gets the "default-subject" element 852 */ 853 public org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType getDefaultSubject() 854 { 855 synchronized (monitor()) 856 { 857 check_orphaned(); 858 org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType target = null; 859 target = (org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType)get_store().find_element_user(DEFAULTSUBJECT$16, 0); 860 if (target == null) 861 { 862 return null; 863 } 864 return target; 865 } 866 } 867 868 /** 869 * True if has "default-subject" element 870 */ 871 public boolean isSetDefaultSubject() 872 { 873 synchronized (monitor()) 874 { 875 check_orphaned(); 876 return get_store().count_elements(DEFAULTSUBJECT$16) != 0; 877 } 878 } 879 880 /** 881 * Sets the "default-subject" element 882 */ 883 public void setDefaultSubject(org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType defaultSubject) 884 { 885 synchronized (monitor()) 886 { 887 check_orphaned(); 888 org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType target = null; 889 target = (org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType)get_store().find_element_user(DEFAULTSUBJECT$16, 0); 890 if (target == null) 891 { 892 target = (org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType)get_store().add_element_user(DEFAULTSUBJECT$16); 893 } 894 target.set(defaultSubject); 895 } 896 } 897 898 /** 899 * Appends and returns a new empty "default-subject" element 900 */ 901 public org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType addNewDefaultSubject() 902 { 903 synchronized (monitor()) 904 { 905 check_orphaned(); 906 org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType target = null; 907 target = (org.apache.geronimo.xbeans.geronimo.security.GerSubjectInfoType)get_store().add_element_user(DEFAULTSUBJECT$16); 908 return target; 909 } 910 } 911 912 /** 913 * Unsets the "default-subject" element 914 */ 915 public void unsetDefaultSubject() 916 { 917 synchronized (monitor()) 918 { 919 check_orphaned(); 920 get_store().remove_element(DEFAULTSUBJECT$16, 0); 921 } 922 } 923 924 /** 925 * Gets the "realm-name" element 926 */ 927 public java.lang.String getRealmName() 928 { 929 synchronized (monitor()) 930 { 931 check_orphaned(); 932 org.apache.xmlbeans.SimpleValue target = null; 933 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REALMNAME$18, 0); 934 if (target == null) 935 { 936 return null; 937 } 938 return target.getStringValue(); 939 } 940 } 941 942 /** 943 * Gets (as xml) the "realm-name" element 944 */ 945 public org.apache.xmlbeans.XmlString xgetRealmName() 946 { 947 synchronized (monitor()) 948 { 949 check_orphaned(); 950 org.apache.xmlbeans.XmlString target = null; 951 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REALMNAME$18, 0); 952 return target; 953 } 954 } 955 956 /** 957 * True if has "realm-name" element 958 */ 959 public boolean isSetRealmName() 960 { 961 synchronized (monitor()) 962 { 963 check_orphaned(); 964 return get_store().count_elements(REALMNAME$18) != 0; 965 } 966 } 967 968 /** 969 * Sets the "realm-name" element 970 */ 971 public void setRealmName(java.lang.String realmName) 972 { 973 synchronized (monitor()) 974 { 975 check_orphaned(); 976 org.apache.xmlbeans.SimpleValue target = null; 977 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REALMNAME$18, 0); 978 if (target == null) 979 { 980 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REALMNAME$18); 981 } 982 target.setStringValue(realmName); 983 } 984 } 985 986 /** 987 * Sets (as xml) the "realm-name" element 988 */ 989 public void xsetRealmName(org.apache.xmlbeans.XmlString realmName) 990 { 991 synchronized (monitor()) 992 { 993 check_orphaned(); 994 org.apache.xmlbeans.XmlString target = null; 995 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REALMNAME$18, 0); 996 if (target == null) 997 { 998 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REALMNAME$18); 999 } 1000 target.set(realmName); 1001 } 1002 } 1003 1004 /** 1005 * Unsets the "realm-name" element 1006 */ 1007 public void unsetRealmName() 1008 { 1009 synchronized (monitor()) 1010 { 1011 check_orphaned(); 1012 get_store().remove_element(REALMNAME$18, 0); 1013 } 1014 } 1015 1016 /** 1017 * Gets the "callback-handler" element 1018 */ 1019 public java.lang.String getCallbackHandler() 1020 { 1021 synchronized (monitor()) 1022 { 1023 check_orphaned(); 1024 org.apache.xmlbeans.SimpleValue target = null; 1025 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CALLBACKHANDLER$20, 0); 1026 if (target == null) 1027 { 1028 return null; 1029 } 1030 return target.getStringValue(); 1031 } 1032 } 1033 1034 /** 1035 * Gets (as xml) the "callback-handler" element 1036 */ 1037 public org.apache.xmlbeans.XmlString xgetCallbackHandler() 1038 { 1039 synchronized (monitor()) 1040 { 1041 check_orphaned(); 1042 org.apache.xmlbeans.XmlString target = null; 1043 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CALLBACKHANDLER$20, 0); 1044 return target; 1045 } 1046 } 1047 1048 /** 1049 * True if has "callback-handler" element 1050 */ 1051 public boolean isSetCallbackHandler() 1052 { 1053 synchronized (monitor()) 1054 { 1055 check_orphaned(); 1056 return get_store().count_elements(CALLBACKHANDLER$20) != 0; 1057 } 1058 } 1059 1060 /** 1061 * Sets the "callback-handler" element 1062 */ 1063 public void setCallbackHandler(java.lang.String callbackHandler) 1064 { 1065 synchronized (monitor()) 1066 { 1067 check_orphaned(); 1068 org.apache.xmlbeans.SimpleValue target = null; 1069 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CALLBACKHANDLER$20, 0); 1070 if (target == null) 1071 { 1072 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CALLBACKHANDLER$20); 1073 } 1074 target.setStringValue(callbackHandler); 1075 } 1076 } 1077 1078 /** 1079 * Sets (as xml) the "callback-handler" element 1080 */ 1081 public void xsetCallbackHandler(org.apache.xmlbeans.XmlString callbackHandler) 1082 { 1083 synchronized (monitor()) 1084 { 1085 check_orphaned(); 1086 org.apache.xmlbeans.XmlString target = null; 1087 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CALLBACKHANDLER$20, 0); 1088 if (target == null) 1089 { 1090 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CALLBACKHANDLER$20); 1091 } 1092 target.set(callbackHandler); 1093 } 1094 } 1095 1096 /** 1097 * Unsets the "callback-handler" element 1098 */ 1099 public void unsetCallbackHandler() 1100 { 1101 synchronized (monitor()) 1102 { 1103 check_orphaned(); 1104 get_store().remove_element(CALLBACKHANDLER$20, 0); 1105 } 1106 } 1107 1108 /** 1109 * Gets array of all "resource" elements 1110 */ 1111 public org.apache.geronimo.xbeans.geronimo.client.GerResourceType[] getResourceArray() 1112 { 1113 synchronized (monitor()) 1114 { 1115 check_orphaned(); 1116 java.util.List targetList = new java.util.ArrayList(); 1117 get_store().find_all_element_users(RESOURCE$22, targetList); 1118 org.apache.geronimo.xbeans.geronimo.client.GerResourceType[] result = new org.apache.geronimo.xbeans.geronimo.client.GerResourceType[targetList.size()]; 1119 targetList.toArray(result); 1120 return result; 1121 } 1122 } 1123 1124 /** 1125 * Gets ith "resource" element 1126 */ 1127 public org.apache.geronimo.xbeans.geronimo.client.GerResourceType getResourceArray(int i) 1128 { 1129 synchronized (monitor()) 1130 { 1131 check_orphaned(); 1132 org.apache.geronimo.xbeans.geronimo.client.GerResourceType target = null; 1133 target = (org.apache.geronimo.xbeans.geronimo.client.GerResourceType)get_store().find_element_user(RESOURCE$22, i); 1134 if (target == null) 1135 { 1136 throw new IndexOutOfBoundsException(); 1137 } 1138 return target; 1139 } 1140 } 1141 1142 /** 1143 * Returns number of "resource" element 1144 */ 1145 public int sizeOfResourceArray() 1146 { 1147 synchronized (monitor()) 1148 { 1149 check_orphaned(); 1150 return get_store().count_elements(RESOURCE$22); 1151 } 1152 } 1153 1154 /** 1155 * Sets array of all "resource" element 1156 */ 1157 public void setResourceArray(org.apache.geronimo.xbeans.geronimo.client.GerResourceType[] resourceArray) 1158 { 1159 synchronized (monitor()) 1160 { 1161 check_orphaned(); 1162 arraySetterHelper(resourceArray, RESOURCE$22); 1163 } 1164 } 1165 1166 /** 1167 * Sets ith "resource" element 1168 */ 1169 public void setResourceArray(int i, org.apache.geronimo.xbeans.geronimo.client.GerResourceType resource) 1170 { 1171 synchronized (monitor()) 1172 { 1173 check_orphaned(); 1174 org.apache.geronimo.xbeans.geronimo.client.GerResourceType target = null; 1175 target = (org.apache.geronimo.xbeans.geronimo.client.GerResourceType)get_store().find_element_user(RESOURCE$22, i); 1176 if (target == null) 1177 { 1178 throw new IndexOutOfBoundsException(); 1179 } 1180 target.set(resource); 1181 } 1182 } 1183 1184 /** 1185 * Inserts and returns a new empty value (as xml) as the ith "resource" element 1186 */ 1187 public org.apache.geronimo.xbeans.geronimo.client.GerResourceType insertNewResource(int i) 1188 { 1189 synchronized (monitor()) 1190 { 1191 check_orphaned(); 1192 org.apache.geronimo.xbeans.geronimo.client.GerResourceType target = null; 1193 target = (org.apache.geronimo.xbeans.geronimo.client.GerResourceType)get_store().insert_element_user(RESOURCE$22, i); 1194 return target; 1195 } 1196 } 1197 1198 /** 1199 * Appends and returns a new empty value (as xml) as the last "resource" element 1200 */ 1201 public org.apache.geronimo.xbeans.geronimo.client.GerResourceType addNewResource() 1202 { 1203 synchronized (monitor()) 1204 { 1205 check_orphaned(); 1206 org.apache.geronimo.xbeans.geronimo.client.GerResourceType target = null; 1207 target = (org.apache.geronimo.xbeans.geronimo.client.GerResourceType)get_store().add_element_user(RESOURCE$22); 1208 return target; 1209 } 1210 } 1211 1212 /** 1213 * Removes the ith "resource" element 1214 */ 1215 public void removeResource(int i) 1216 { 1217 synchronized (monitor()) 1218 { 1219 check_orphaned(); 1220 get_store().remove_element(RESOURCE$22, i); 1221 } 1222 } 1223 1224 /** 1225 * Gets array of all "service" elements 1226 */ 1227 public org.apache.geronimo.deployment.xbeans.AbstractServiceType[] getServiceArray() 1228 { 1229 synchronized (monitor()) 1230 { 1231 check_orphaned(); 1232 java.util.List targetList = new java.util.ArrayList(); 1233 get_store().find_all_element_users(SERVICE$25, targetList); 1234 org.apache.geronimo.deployment.xbeans.AbstractServiceType[] result = new org.apache.geronimo.deployment.xbeans.AbstractServiceType[targetList.size()]; 1235 targetList.toArray(result); 1236 return result; 1237 } 1238 } 1239 1240 /** 1241 * Gets ith "service" element 1242 */ 1243 public org.apache.geronimo.deployment.xbeans.AbstractServiceType getServiceArray(int i) 1244 { 1245 synchronized (monitor()) 1246 { 1247 check_orphaned(); 1248 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 1249 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$25, i); 1250 if (target == null) 1251 { 1252 throw new IndexOutOfBoundsException(); 1253 } 1254 return target; 1255 } 1256 } 1257 1258 /** 1259 * Returns number of "service" element 1260 */ 1261 public int sizeOfServiceArray() 1262 { 1263 synchronized (monitor()) 1264 { 1265 check_orphaned(); 1266 return get_store().count_elements(SERVICE$25); 1267 } 1268 } 1269 1270 /** 1271 * Sets array of all "service" element 1272 */ 1273 public void setServiceArray(org.apache.geronimo.deployment.xbeans.AbstractServiceType[] serviceArray) 1274 { 1275 synchronized (monitor()) 1276 { 1277 check_orphaned(); 1278 arraySetterHelper(serviceArray, SERVICE$24, SERVICE$25); 1279 } 1280 } 1281 1282 /** 1283 * Sets ith "service" element 1284 */ 1285 public void setServiceArray(int i, org.apache.geronimo.deployment.xbeans.AbstractServiceType service) 1286 { 1287 synchronized (monitor()) 1288 { 1289 check_orphaned(); 1290 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 1291 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$25, i); 1292 if (target == null) 1293 { 1294 throw new IndexOutOfBoundsException(); 1295 } 1296 target.set(service); 1297 } 1298 } 1299 1300 /** 1301 * Inserts and returns a new empty value (as xml) as the ith "service" element 1302 */ 1303 public org.apache.geronimo.deployment.xbeans.AbstractServiceType insertNewService(int i) 1304 { 1305 synchronized (monitor()) 1306 { 1307 check_orphaned(); 1308 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 1309 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().insert_element_user(SERVICE$25, SERVICE$24, i); 1310 return target; 1311 } 1312 } 1313 1314 /** 1315 * Appends and returns a new empty value (as xml) as the last "service" element 1316 */ 1317 public org.apache.geronimo.deployment.xbeans.AbstractServiceType addNewService() 1318 { 1319 synchronized (monitor()) 1320 { 1321 check_orphaned(); 1322 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 1323 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().add_element_user(SERVICE$24); 1324 return target; 1325 } 1326 } 1327 1328 /** 1329 * Removes the ith "service" element 1330 */ 1331 public void removeService(int i) 1332 { 1333 synchronized (monitor()) 1334 { 1335 check_orphaned(); 1336 get_store().remove_element(SERVICE$25, i); 1337 } 1338 } 1339 }