001 /* 002 * XML Type: web-appType 003 * Namespace: http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2 004 * Java type: org.apache.geronimo.xbeans.geronimo.web.jetty.JettyWebAppType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.web.jetty.impl; 009 /** 010 * An XML web-appType(@http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2). 011 * 012 * This is a complex type. 013 */ 014 public class JettyWebAppTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.web.jetty.JettyWebAppType 015 { 016 017 public JettyWebAppTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName ENVIRONMENT$0 = 023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "environment"); 024 private static final javax.xml.namespace.QName CONTEXTROOT$2 = 025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2", "context-root"); 026 private static final javax.xml.namespace.QName WORKDIR$4 = 027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2", "work-dir"); 028 private static final javax.xml.namespace.QName CLUSTERING$6 = 029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "clustering"); 030 private static final javax.xml.namespace.QName WEBCONTAINER$8 = 031 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "web-container"); 032 private static final javax.xml.namespace.QName HOST$10 = 033 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2", "host"); 034 private static final javax.xml.namespace.QName VIRTUALHOST$12 = 035 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2", "virtual-host"); 036 private static final javax.xml.namespace.QName SESSIONMANAGER$14 = 037 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2", "session-manager"); 038 private static final javax.xml.namespace.QName COMPACTPATH$16 = 039 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2", "compact-path"); 040 private static final javax.xml.namespace.QName ABSTRACTNAMINGENTRY$18 = 041 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry"); 042 private static final org.apache.xmlbeans.QNameSet ABSTRACTNAMINGENTRY$19 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 043 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "gbean-ref"), 044 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-context-ref"), 045 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-unit-ref"), 046 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry"), 047 }); 048 private static final javax.xml.namespace.QName EJBREF$20 = 049 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ejb-ref"); 050 private static final javax.xml.namespace.QName EJBLOCALREF$22 = 051 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ejb-local-ref"); 052 private static final javax.xml.namespace.QName SERVICEREF$24 = 053 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "service-ref"); 054 private static final javax.xml.namespace.QName RESOURCEREF$26 = 055 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-ref"); 056 private static final javax.xml.namespace.QName RESOURCEENVREF$28 = 057 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-env-ref"); 058 private static final javax.xml.namespace.QName MESSAGEDESTINATION$30 = 059 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "message-destination"); 060 private static final javax.xml.namespace.QName SECURITYREALMNAME$32 = 061 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2", "security-realm-name"); 062 private static final javax.xml.namespace.QName SECURITY$34 = 063 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "security"); 064 private static final javax.xml.namespace.QName SERVICE$36 = 065 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service"); 066 private static final org.apache.xmlbeans.QNameSet SERVICE$37 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 067 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service"), 068 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "gbean"), 069 }); 070 private static final javax.xml.namespace.QName PERSISTENCE$38 = 071 new javax.xml.namespace.QName("http://java.sun.com/xml/ns/persistence", "persistence"); 072 073 074 /** 075 * Gets the "environment" element 076 */ 077 public org.apache.geronimo.deployment.xbeans.EnvironmentType getEnvironment() 078 { 079 synchronized (monitor()) 080 { 081 check_orphaned(); 082 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 083 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(ENVIRONMENT$0, 0); 084 if (target == null) 085 { 086 return null; 087 } 088 return target; 089 } 090 } 091 092 /** 093 * True if has "environment" element 094 */ 095 public boolean isSetEnvironment() 096 { 097 synchronized (monitor()) 098 { 099 check_orphaned(); 100 return get_store().count_elements(ENVIRONMENT$0) != 0; 101 } 102 } 103 104 /** 105 * Sets the "environment" element 106 */ 107 public void setEnvironment(org.apache.geronimo.deployment.xbeans.EnvironmentType environment) 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(ENVIRONMENT$0, 0); 114 if (target == null) 115 { 116 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(ENVIRONMENT$0); 117 } 118 target.set(environment); 119 } 120 } 121 122 /** 123 * Appends and returns a new empty "environment" element 124 */ 125 public org.apache.geronimo.deployment.xbeans.EnvironmentType addNewEnvironment() 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().add_element_user(ENVIRONMENT$0); 132 return target; 133 } 134 } 135 136 /** 137 * Unsets the "environment" element 138 */ 139 public void unsetEnvironment() 140 { 141 synchronized (monitor()) 142 { 143 check_orphaned(); 144 get_store().remove_element(ENVIRONMENT$0, 0); 145 } 146 } 147 148 /** 149 * Gets the "context-root" element 150 */ 151 public java.lang.String getContextRoot() 152 { 153 synchronized (monitor()) 154 { 155 check_orphaned(); 156 org.apache.xmlbeans.SimpleValue target = null; 157 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTEXTROOT$2, 0); 158 if (target == null) 159 { 160 return null; 161 } 162 return target.getStringValue(); 163 } 164 } 165 166 /** 167 * Gets (as xml) the "context-root" element 168 */ 169 public org.apache.xmlbeans.XmlString xgetContextRoot() 170 { 171 synchronized (monitor()) 172 { 173 check_orphaned(); 174 org.apache.xmlbeans.XmlString target = null; 175 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONTEXTROOT$2, 0); 176 return target; 177 } 178 } 179 180 /** 181 * True if has "context-root" element 182 */ 183 public boolean isSetContextRoot() 184 { 185 synchronized (monitor()) 186 { 187 check_orphaned(); 188 return get_store().count_elements(CONTEXTROOT$2) != 0; 189 } 190 } 191 192 /** 193 * Sets the "context-root" element 194 */ 195 public void setContextRoot(java.lang.String contextRoot) 196 { 197 synchronized (monitor()) 198 { 199 check_orphaned(); 200 org.apache.xmlbeans.SimpleValue target = null; 201 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTEXTROOT$2, 0); 202 if (target == null) 203 { 204 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTEXTROOT$2); 205 } 206 target.setStringValue(contextRoot); 207 } 208 } 209 210 /** 211 * Sets (as xml) the "context-root" element 212 */ 213 public void xsetContextRoot(org.apache.xmlbeans.XmlString contextRoot) 214 { 215 synchronized (monitor()) 216 { 217 check_orphaned(); 218 org.apache.xmlbeans.XmlString target = null; 219 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONTEXTROOT$2, 0); 220 if (target == null) 221 { 222 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CONTEXTROOT$2); 223 } 224 target.set(contextRoot); 225 } 226 } 227 228 /** 229 * Unsets the "context-root" element 230 */ 231 public void unsetContextRoot() 232 { 233 synchronized (monitor()) 234 { 235 check_orphaned(); 236 get_store().remove_element(CONTEXTROOT$2, 0); 237 } 238 } 239 240 /** 241 * Gets the "work-dir" element 242 */ 243 public java.lang.String getWorkDir() 244 { 245 synchronized (monitor()) 246 { 247 check_orphaned(); 248 org.apache.xmlbeans.SimpleValue target = null; 249 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WORKDIR$4, 0); 250 if (target == null) 251 { 252 return null; 253 } 254 return target.getStringValue(); 255 } 256 } 257 258 /** 259 * Gets (as xml) the "work-dir" element 260 */ 261 public org.apache.xmlbeans.XmlString xgetWorkDir() 262 { 263 synchronized (monitor()) 264 { 265 check_orphaned(); 266 org.apache.xmlbeans.XmlString target = null; 267 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(WORKDIR$4, 0); 268 return target; 269 } 270 } 271 272 /** 273 * True if has "work-dir" element 274 */ 275 public boolean isSetWorkDir() 276 { 277 synchronized (monitor()) 278 { 279 check_orphaned(); 280 return get_store().count_elements(WORKDIR$4) != 0; 281 } 282 } 283 284 /** 285 * Sets the "work-dir" element 286 */ 287 public void setWorkDir(java.lang.String workDir) 288 { 289 synchronized (monitor()) 290 { 291 check_orphaned(); 292 org.apache.xmlbeans.SimpleValue target = null; 293 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WORKDIR$4, 0); 294 if (target == null) 295 { 296 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(WORKDIR$4); 297 } 298 target.setStringValue(workDir); 299 } 300 } 301 302 /** 303 * Sets (as xml) the "work-dir" element 304 */ 305 public void xsetWorkDir(org.apache.xmlbeans.XmlString workDir) 306 { 307 synchronized (monitor()) 308 { 309 check_orphaned(); 310 org.apache.xmlbeans.XmlString target = null; 311 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(WORKDIR$4, 0); 312 if (target == null) 313 { 314 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(WORKDIR$4); 315 } 316 target.set(workDir); 317 } 318 } 319 320 /** 321 * Unsets the "work-dir" element 322 */ 323 public void unsetWorkDir() 324 { 325 synchronized (monitor()) 326 { 327 check_orphaned(); 328 get_store().remove_element(WORKDIR$4, 0); 329 } 330 } 331 332 /** 333 * Gets the "clustering" element 334 */ 335 public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType getClustering() 336 { 337 synchronized (monitor()) 338 { 339 check_orphaned(); 340 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType target = null; 341 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType)get_store().find_element_user(CLUSTERING$6, 0); 342 if (target == null) 343 { 344 return null; 345 } 346 return target; 347 } 348 } 349 350 /** 351 * True if has "clustering" element 352 */ 353 public boolean isSetClustering() 354 { 355 synchronized (monitor()) 356 { 357 check_orphaned(); 358 return get_store().count_elements(CLUSTERING$6) != 0; 359 } 360 } 361 362 /** 363 * Sets the "clustering" element 364 */ 365 public void setClustering(org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType clustering) 366 { 367 synchronized (monitor()) 368 { 369 check_orphaned(); 370 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType target = null; 371 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType)get_store().find_element_user(CLUSTERING$6, 0); 372 if (target == null) 373 { 374 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType)get_store().add_element_user(CLUSTERING$6); 375 } 376 target.set(clustering); 377 } 378 } 379 380 /** 381 * Appends and returns a new empty "clustering" element 382 */ 383 public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType addNewClustering() 384 { 385 synchronized (monitor()) 386 { 387 check_orphaned(); 388 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType target = null; 389 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType)get_store().add_element_user(CLUSTERING$6); 390 return target; 391 } 392 } 393 394 /** 395 * Unsets the "clustering" element 396 */ 397 public void unsetClustering() 398 { 399 synchronized (monitor()) 400 { 401 check_orphaned(); 402 get_store().remove_element(CLUSTERING$6, 0); 403 } 404 } 405 406 /** 407 * Gets the "web-container" element 408 */ 409 public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType getWebContainer() 410 { 411 synchronized (monitor()) 412 { 413 check_orphaned(); 414 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType target = null; 415 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().find_element_user(WEBCONTAINER$8, 0); 416 if (target == null) 417 { 418 return null; 419 } 420 return target; 421 } 422 } 423 424 /** 425 * True if has "web-container" element 426 */ 427 public boolean isSetWebContainer() 428 { 429 synchronized (monitor()) 430 { 431 check_orphaned(); 432 return get_store().count_elements(WEBCONTAINER$8) != 0; 433 } 434 } 435 436 /** 437 * Sets the "web-container" element 438 */ 439 public void setWebContainer(org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType webContainer) 440 { 441 synchronized (monitor()) 442 { 443 check_orphaned(); 444 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType target = null; 445 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().find_element_user(WEBCONTAINER$8, 0); 446 if (target == null) 447 { 448 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().add_element_user(WEBCONTAINER$8); 449 } 450 target.set(webContainer); 451 } 452 } 453 454 /** 455 * Appends and returns a new empty "web-container" element 456 */ 457 public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType addNewWebContainer() 458 { 459 synchronized (monitor()) 460 { 461 check_orphaned(); 462 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType target = null; 463 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().add_element_user(WEBCONTAINER$8); 464 return target; 465 } 466 } 467 468 /** 469 * Unsets the "web-container" element 470 */ 471 public void unsetWebContainer() 472 { 473 synchronized (monitor()) 474 { 475 check_orphaned(); 476 get_store().remove_element(WEBCONTAINER$8, 0); 477 } 478 } 479 480 /** 481 * Gets array of all "host" elements 482 */ 483 public java.lang.String[] getHostArray() 484 { 485 synchronized (monitor()) 486 { 487 check_orphaned(); 488 java.util.List targetList = new java.util.ArrayList(); 489 get_store().find_all_element_users(HOST$10, targetList); 490 java.lang.String[] result = new java.lang.String[targetList.size()]; 491 for (int i = 0, len = targetList.size() ; i < len ; i++) 492 result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue(); 493 return result; 494 } 495 } 496 497 /** 498 * Gets ith "host" element 499 */ 500 public java.lang.String getHostArray(int i) 501 { 502 synchronized (monitor()) 503 { 504 check_orphaned(); 505 org.apache.xmlbeans.SimpleValue target = null; 506 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$10, i); 507 if (target == null) 508 { 509 throw new IndexOutOfBoundsException(); 510 } 511 return target.getStringValue(); 512 } 513 } 514 515 /** 516 * Gets (as xml) array of all "host" elements 517 */ 518 public org.apache.xmlbeans.XmlString[] xgetHostArray() 519 { 520 synchronized (monitor()) 521 { 522 check_orphaned(); 523 java.util.List targetList = new java.util.ArrayList(); 524 get_store().find_all_element_users(HOST$10, targetList); 525 org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()]; 526 targetList.toArray(result); 527 return result; 528 } 529 } 530 531 /** 532 * Gets (as xml) ith "host" element 533 */ 534 public org.apache.xmlbeans.XmlString xgetHostArray(int i) 535 { 536 synchronized (monitor()) 537 { 538 check_orphaned(); 539 org.apache.xmlbeans.XmlString target = null; 540 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$10, i); 541 if (target == null) 542 { 543 throw new IndexOutOfBoundsException(); 544 } 545 return (org.apache.xmlbeans.XmlString)target; 546 } 547 } 548 549 /** 550 * Returns number of "host" element 551 */ 552 public int sizeOfHostArray() 553 { 554 synchronized (monitor()) 555 { 556 check_orphaned(); 557 return get_store().count_elements(HOST$10); 558 } 559 } 560 561 /** 562 * Sets array of all "host" element 563 */ 564 public void setHostArray(java.lang.String[] hostArray) 565 { 566 synchronized (monitor()) 567 { 568 check_orphaned(); 569 arraySetterHelper(hostArray, HOST$10); 570 } 571 } 572 573 /** 574 * Sets ith "host" element 575 */ 576 public void setHostArray(int i, java.lang.String host) 577 { 578 synchronized (monitor()) 579 { 580 check_orphaned(); 581 org.apache.xmlbeans.SimpleValue target = null; 582 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$10, i); 583 if (target == null) 584 { 585 throw new IndexOutOfBoundsException(); 586 } 587 target.setStringValue(host); 588 } 589 } 590 591 /** 592 * Sets (as xml) array of all "host" element 593 */ 594 public void xsetHostArray(org.apache.xmlbeans.XmlString[]hostArray) 595 { 596 synchronized (monitor()) 597 { 598 check_orphaned(); 599 arraySetterHelper(hostArray, HOST$10); 600 } 601 } 602 603 /** 604 * Sets (as xml) ith "host" element 605 */ 606 public void xsetHostArray(int i, org.apache.xmlbeans.XmlString host) 607 { 608 synchronized (monitor()) 609 { 610 check_orphaned(); 611 org.apache.xmlbeans.XmlString target = null; 612 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$10, i); 613 if (target == null) 614 { 615 throw new IndexOutOfBoundsException(); 616 } 617 target.set(host); 618 } 619 } 620 621 /** 622 * Inserts the value as the ith "host" element 623 */ 624 public void insertHost(int i, java.lang.String host) 625 { 626 synchronized (monitor()) 627 { 628 check_orphaned(); 629 org.apache.xmlbeans.SimpleValue target = 630 (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(HOST$10, i); 631 target.setStringValue(host); 632 } 633 } 634 635 /** 636 * Appends the value as the last "host" element 637 */ 638 public void addHost(java.lang.String host) 639 { 640 synchronized (monitor()) 641 { 642 check_orphaned(); 643 org.apache.xmlbeans.SimpleValue target = null; 644 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HOST$10); 645 target.setStringValue(host); 646 } 647 } 648 649 /** 650 * Inserts and returns a new empty value (as xml) as the ith "host" element 651 */ 652 public org.apache.xmlbeans.XmlString insertNewHost(int i) 653 { 654 synchronized (monitor()) 655 { 656 check_orphaned(); 657 org.apache.xmlbeans.XmlString target = null; 658 target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(HOST$10, i); 659 return target; 660 } 661 } 662 663 /** 664 * Appends and returns a new empty value (as xml) as the last "host" element 665 */ 666 public org.apache.xmlbeans.XmlString addNewHost() 667 { 668 synchronized (monitor()) 669 { 670 check_orphaned(); 671 org.apache.xmlbeans.XmlString target = null; 672 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(HOST$10); 673 return target; 674 } 675 } 676 677 /** 678 * Removes the ith "host" element 679 */ 680 public void removeHost(int i) 681 { 682 synchronized (monitor()) 683 { 684 check_orphaned(); 685 get_store().remove_element(HOST$10, i); 686 } 687 } 688 689 /** 690 * Gets array of all "virtual-host" elements 691 */ 692 public java.lang.String[] getVirtualHostArray() 693 { 694 synchronized (monitor()) 695 { 696 check_orphaned(); 697 java.util.List targetList = new java.util.ArrayList(); 698 get_store().find_all_element_users(VIRTUALHOST$12, targetList); 699 java.lang.String[] result = new java.lang.String[targetList.size()]; 700 for (int i = 0, len = targetList.size() ; i < len ; i++) 701 result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue(); 702 return result; 703 } 704 } 705 706 /** 707 * Gets ith "virtual-host" element 708 */ 709 public java.lang.String getVirtualHostArray(int i) 710 { 711 synchronized (monitor()) 712 { 713 check_orphaned(); 714 org.apache.xmlbeans.SimpleValue target = null; 715 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VIRTUALHOST$12, i); 716 if (target == null) 717 { 718 throw new IndexOutOfBoundsException(); 719 } 720 return target.getStringValue(); 721 } 722 } 723 724 /** 725 * Gets (as xml) array of all "virtual-host" elements 726 */ 727 public org.apache.xmlbeans.XmlString[] xgetVirtualHostArray() 728 { 729 synchronized (monitor()) 730 { 731 check_orphaned(); 732 java.util.List targetList = new java.util.ArrayList(); 733 get_store().find_all_element_users(VIRTUALHOST$12, targetList); 734 org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()]; 735 targetList.toArray(result); 736 return result; 737 } 738 } 739 740 /** 741 * Gets (as xml) ith "virtual-host" element 742 */ 743 public org.apache.xmlbeans.XmlString xgetVirtualHostArray(int i) 744 { 745 synchronized (monitor()) 746 { 747 check_orphaned(); 748 org.apache.xmlbeans.XmlString target = null; 749 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VIRTUALHOST$12, i); 750 if (target == null) 751 { 752 throw new IndexOutOfBoundsException(); 753 } 754 return (org.apache.xmlbeans.XmlString)target; 755 } 756 } 757 758 /** 759 * Returns number of "virtual-host" element 760 */ 761 public int sizeOfVirtualHostArray() 762 { 763 synchronized (monitor()) 764 { 765 check_orphaned(); 766 return get_store().count_elements(VIRTUALHOST$12); 767 } 768 } 769 770 /** 771 * Sets array of all "virtual-host" element 772 */ 773 public void setVirtualHostArray(java.lang.String[] virtualHostArray) 774 { 775 synchronized (monitor()) 776 { 777 check_orphaned(); 778 arraySetterHelper(virtualHostArray, VIRTUALHOST$12); 779 } 780 } 781 782 /** 783 * Sets ith "virtual-host" element 784 */ 785 public void setVirtualHostArray(int i, java.lang.String virtualHost) 786 { 787 synchronized (monitor()) 788 { 789 check_orphaned(); 790 org.apache.xmlbeans.SimpleValue target = null; 791 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VIRTUALHOST$12, i); 792 if (target == null) 793 { 794 throw new IndexOutOfBoundsException(); 795 } 796 target.setStringValue(virtualHost); 797 } 798 } 799 800 /** 801 * Sets (as xml) array of all "virtual-host" element 802 */ 803 public void xsetVirtualHostArray(org.apache.xmlbeans.XmlString[]virtualHostArray) 804 { 805 synchronized (monitor()) 806 { 807 check_orphaned(); 808 arraySetterHelper(virtualHostArray, VIRTUALHOST$12); 809 } 810 } 811 812 /** 813 * Sets (as xml) ith "virtual-host" element 814 */ 815 public void xsetVirtualHostArray(int i, org.apache.xmlbeans.XmlString virtualHost) 816 { 817 synchronized (monitor()) 818 { 819 check_orphaned(); 820 org.apache.xmlbeans.XmlString target = null; 821 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VIRTUALHOST$12, i); 822 if (target == null) 823 { 824 throw new IndexOutOfBoundsException(); 825 } 826 target.set(virtualHost); 827 } 828 } 829 830 /** 831 * Inserts the value as the ith "virtual-host" element 832 */ 833 public void insertVirtualHost(int i, java.lang.String virtualHost) 834 { 835 synchronized (monitor()) 836 { 837 check_orphaned(); 838 org.apache.xmlbeans.SimpleValue target = 839 (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(VIRTUALHOST$12, i); 840 target.setStringValue(virtualHost); 841 } 842 } 843 844 /** 845 * Appends the value as the last "virtual-host" element 846 */ 847 public void addVirtualHost(java.lang.String virtualHost) 848 { 849 synchronized (monitor()) 850 { 851 check_orphaned(); 852 org.apache.xmlbeans.SimpleValue target = null; 853 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VIRTUALHOST$12); 854 target.setStringValue(virtualHost); 855 } 856 } 857 858 /** 859 * Inserts and returns a new empty value (as xml) as the ith "virtual-host" element 860 */ 861 public org.apache.xmlbeans.XmlString insertNewVirtualHost(int i) 862 { 863 synchronized (monitor()) 864 { 865 check_orphaned(); 866 org.apache.xmlbeans.XmlString target = null; 867 target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(VIRTUALHOST$12, i); 868 return target; 869 } 870 } 871 872 /** 873 * Appends and returns a new empty value (as xml) as the last "virtual-host" element 874 */ 875 public org.apache.xmlbeans.XmlString addNewVirtualHost() 876 { 877 synchronized (monitor()) 878 { 879 check_orphaned(); 880 org.apache.xmlbeans.XmlString target = null; 881 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VIRTUALHOST$12); 882 return target; 883 } 884 } 885 886 /** 887 * Removes the ith "virtual-host" element 888 */ 889 public void removeVirtualHost(int i) 890 { 891 synchronized (monitor()) 892 { 893 check_orphaned(); 894 get_store().remove_element(VIRTUALHOST$12, i); 895 } 896 } 897 898 /** 899 * Gets the "session-manager" element 900 */ 901 public java.lang.String getSessionManager() 902 { 903 synchronized (monitor()) 904 { 905 check_orphaned(); 906 org.apache.xmlbeans.SimpleValue target = null; 907 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SESSIONMANAGER$14, 0); 908 if (target == null) 909 { 910 return null; 911 } 912 return target.getStringValue(); 913 } 914 } 915 916 /** 917 * Gets (as xml) the "session-manager" element 918 */ 919 public org.apache.xmlbeans.XmlString xgetSessionManager() 920 { 921 synchronized (monitor()) 922 { 923 check_orphaned(); 924 org.apache.xmlbeans.XmlString target = null; 925 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SESSIONMANAGER$14, 0); 926 return target; 927 } 928 } 929 930 /** 931 * True if has "session-manager" element 932 */ 933 public boolean isSetSessionManager() 934 { 935 synchronized (monitor()) 936 { 937 check_orphaned(); 938 return get_store().count_elements(SESSIONMANAGER$14) != 0; 939 } 940 } 941 942 /** 943 * Sets the "session-manager" element 944 */ 945 public void setSessionManager(java.lang.String sessionManager) 946 { 947 synchronized (monitor()) 948 { 949 check_orphaned(); 950 org.apache.xmlbeans.SimpleValue target = null; 951 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SESSIONMANAGER$14, 0); 952 if (target == null) 953 { 954 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SESSIONMANAGER$14); 955 } 956 target.setStringValue(sessionManager); 957 } 958 } 959 960 /** 961 * Sets (as xml) the "session-manager" element 962 */ 963 public void xsetSessionManager(org.apache.xmlbeans.XmlString sessionManager) 964 { 965 synchronized (monitor()) 966 { 967 check_orphaned(); 968 org.apache.xmlbeans.XmlString target = null; 969 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SESSIONMANAGER$14, 0); 970 if (target == null) 971 { 972 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SESSIONMANAGER$14); 973 } 974 target.set(sessionManager); 975 } 976 } 977 978 /** 979 * Unsets the "session-manager" element 980 */ 981 public void unsetSessionManager() 982 { 983 synchronized (monitor()) 984 { 985 check_orphaned(); 986 get_store().remove_element(SESSIONMANAGER$14, 0); 987 } 988 } 989 990 /** 991 * Gets the "compact-path" element 992 */ 993 public boolean getCompactPath() 994 { 995 synchronized (monitor()) 996 { 997 check_orphaned(); 998 org.apache.xmlbeans.SimpleValue target = null; 999 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMPACTPATH$16, 0); 1000 if (target == null) 1001 { 1002 return false; 1003 } 1004 return target.getBooleanValue(); 1005 } 1006 } 1007 1008 /** 1009 * Gets (as xml) the "compact-path" element 1010 */ 1011 public org.apache.xmlbeans.XmlBoolean xgetCompactPath() 1012 { 1013 synchronized (monitor()) 1014 { 1015 check_orphaned(); 1016 org.apache.xmlbeans.XmlBoolean target = null; 1017 target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(COMPACTPATH$16, 0); 1018 return target; 1019 } 1020 } 1021 1022 /** 1023 * True if has "compact-path" element 1024 */ 1025 public boolean isSetCompactPath() 1026 { 1027 synchronized (monitor()) 1028 { 1029 check_orphaned(); 1030 return get_store().count_elements(COMPACTPATH$16) != 0; 1031 } 1032 } 1033 1034 /** 1035 * Sets the "compact-path" element 1036 */ 1037 public void setCompactPath(boolean compactPath) 1038 { 1039 synchronized (monitor()) 1040 { 1041 check_orphaned(); 1042 org.apache.xmlbeans.SimpleValue target = null; 1043 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMPACTPATH$16, 0); 1044 if (target == null) 1045 { 1046 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COMPACTPATH$16); 1047 } 1048 target.setBooleanValue(compactPath); 1049 } 1050 } 1051 1052 /** 1053 * Sets (as xml) the "compact-path" element 1054 */ 1055 public void xsetCompactPath(org.apache.xmlbeans.XmlBoolean compactPath) 1056 { 1057 synchronized (monitor()) 1058 { 1059 check_orphaned(); 1060 org.apache.xmlbeans.XmlBoolean target = null; 1061 target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(COMPACTPATH$16, 0); 1062 if (target == null) 1063 { 1064 target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(COMPACTPATH$16); 1065 } 1066 target.set(compactPath); 1067 } 1068 } 1069 1070 /** 1071 * Unsets the "compact-path" element 1072 */ 1073 public void unsetCompactPath() 1074 { 1075 synchronized (monitor()) 1076 { 1077 check_orphaned(); 1078 get_store().remove_element(COMPACTPATH$16, 0); 1079 } 1080 } 1081 1082 /** 1083 * Gets array of all "abstract-naming-entry" elements 1084 */ 1085 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] getAbstractNamingEntryArray() 1086 { 1087 synchronized (monitor()) 1088 { 1089 check_orphaned(); 1090 java.util.List targetList = new java.util.ArrayList(); 1091 get_store().find_all_element_users(ABSTRACTNAMINGENTRY$19, targetList); 1092 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[targetList.size()]; 1093 targetList.toArray(result); 1094 return result; 1095 } 1096 } 1097 1098 /** 1099 * Gets ith "abstract-naming-entry" element 1100 */ 1101 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType getAbstractNamingEntryArray(int i) 1102 { 1103 synchronized (monitor()) 1104 { 1105 check_orphaned(); 1106 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null; 1107 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$19, i); 1108 if (target == null) 1109 { 1110 throw new IndexOutOfBoundsException(); 1111 } 1112 return target; 1113 } 1114 } 1115 1116 /** 1117 * Returns number of "abstract-naming-entry" element 1118 */ 1119 public int sizeOfAbstractNamingEntryArray() 1120 { 1121 synchronized (monitor()) 1122 { 1123 check_orphaned(); 1124 return get_store().count_elements(ABSTRACTNAMINGENTRY$19); 1125 } 1126 } 1127 1128 /** 1129 * Sets array of all "abstract-naming-entry" element 1130 */ 1131 public void setAbstractNamingEntryArray(org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] abstractNamingEntryArray) 1132 { 1133 synchronized (monitor()) 1134 { 1135 check_orphaned(); 1136 arraySetterHelper(abstractNamingEntryArray, ABSTRACTNAMINGENTRY$18, ABSTRACTNAMINGENTRY$19); 1137 } 1138 } 1139 1140 /** 1141 * Sets ith "abstract-naming-entry" element 1142 */ 1143 public void setAbstractNamingEntryArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType abstractNamingEntry) 1144 { 1145 synchronized (monitor()) 1146 { 1147 check_orphaned(); 1148 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null; 1149 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$19, i); 1150 if (target == null) 1151 { 1152 throw new IndexOutOfBoundsException(); 1153 } 1154 target.set(abstractNamingEntry); 1155 } 1156 } 1157 1158 /** 1159 * Inserts and returns a new empty value (as xml) as the ith "abstract-naming-entry" element 1160 */ 1161 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType insertNewAbstractNamingEntry(int i) 1162 { 1163 synchronized (monitor()) 1164 { 1165 check_orphaned(); 1166 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null; 1167 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().insert_element_user(ABSTRACTNAMINGENTRY$19, ABSTRACTNAMINGENTRY$18, i); 1168 return target; 1169 } 1170 } 1171 1172 /** 1173 * Appends and returns a new empty value (as xml) as the last "abstract-naming-entry" element 1174 */ 1175 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType addNewAbstractNamingEntry() 1176 { 1177 synchronized (monitor()) 1178 { 1179 check_orphaned(); 1180 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null; 1181 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().add_element_user(ABSTRACTNAMINGENTRY$18); 1182 return target; 1183 } 1184 } 1185 1186 /** 1187 * Removes the ith "abstract-naming-entry" element 1188 */ 1189 public void removeAbstractNamingEntry(int i) 1190 { 1191 synchronized (monitor()) 1192 { 1193 check_orphaned(); 1194 get_store().remove_element(ABSTRACTNAMINGENTRY$19, i); 1195 } 1196 } 1197 1198 /** 1199 * Gets array of all "ejb-ref" elements 1200 */ 1201 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] getEjbRefArray() 1202 { 1203 synchronized (monitor()) 1204 { 1205 check_orphaned(); 1206 java.util.List targetList = new java.util.ArrayList(); 1207 get_store().find_all_element_users(EJBREF$20, targetList); 1208 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[targetList.size()]; 1209 targetList.toArray(result); 1210 return result; 1211 } 1212 } 1213 1214 /** 1215 * Gets ith "ejb-ref" element 1216 */ 1217 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType getEjbRefArray(int i) 1218 { 1219 synchronized (monitor()) 1220 { 1221 check_orphaned(); 1222 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 1223 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$20, i); 1224 if (target == null) 1225 { 1226 throw new IndexOutOfBoundsException(); 1227 } 1228 return target; 1229 } 1230 } 1231 1232 /** 1233 * Returns number of "ejb-ref" element 1234 */ 1235 public int sizeOfEjbRefArray() 1236 { 1237 synchronized (monitor()) 1238 { 1239 check_orphaned(); 1240 return get_store().count_elements(EJBREF$20); 1241 } 1242 } 1243 1244 /** 1245 * Sets array of all "ejb-ref" element 1246 */ 1247 public void setEjbRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] ejbRefArray) 1248 { 1249 synchronized (monitor()) 1250 { 1251 check_orphaned(); 1252 arraySetterHelper(ejbRefArray, EJBREF$20); 1253 } 1254 } 1255 1256 /** 1257 * Sets ith "ejb-ref" element 1258 */ 1259 public void setEjbRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType ejbRef) 1260 { 1261 synchronized (monitor()) 1262 { 1263 check_orphaned(); 1264 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 1265 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$20, i); 1266 if (target == null) 1267 { 1268 throw new IndexOutOfBoundsException(); 1269 } 1270 target.set(ejbRef); 1271 } 1272 } 1273 1274 /** 1275 * Inserts and returns a new empty value (as xml) as the ith "ejb-ref" element 1276 */ 1277 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType insertNewEjbRef(int i) 1278 { 1279 synchronized (monitor()) 1280 { 1281 check_orphaned(); 1282 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 1283 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().insert_element_user(EJBREF$20, i); 1284 return target; 1285 } 1286 } 1287 1288 /** 1289 * Appends and returns a new empty value (as xml) as the last "ejb-ref" element 1290 */ 1291 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType addNewEjbRef() 1292 { 1293 synchronized (monitor()) 1294 { 1295 check_orphaned(); 1296 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 1297 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().add_element_user(EJBREF$20); 1298 return target; 1299 } 1300 } 1301 1302 /** 1303 * Removes the ith "ejb-ref" element 1304 */ 1305 public void removeEjbRef(int i) 1306 { 1307 synchronized (monitor()) 1308 { 1309 check_orphaned(); 1310 get_store().remove_element(EJBREF$20, i); 1311 } 1312 } 1313 1314 /** 1315 * Gets array of all "ejb-local-ref" elements 1316 */ 1317 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] getEjbLocalRefArray() 1318 { 1319 synchronized (monitor()) 1320 { 1321 check_orphaned(); 1322 java.util.List targetList = new java.util.ArrayList(); 1323 get_store().find_all_element_users(EJBLOCALREF$22, targetList); 1324 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[targetList.size()]; 1325 targetList.toArray(result); 1326 return result; 1327 } 1328 } 1329 1330 /** 1331 * Gets ith "ejb-local-ref" element 1332 */ 1333 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType getEjbLocalRefArray(int i) 1334 { 1335 synchronized (monitor()) 1336 { 1337 check_orphaned(); 1338 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; 1339 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().find_element_user(EJBLOCALREF$22, i); 1340 if (target == null) 1341 { 1342 throw new IndexOutOfBoundsException(); 1343 } 1344 return target; 1345 } 1346 } 1347 1348 /** 1349 * Returns number of "ejb-local-ref" element 1350 */ 1351 public int sizeOfEjbLocalRefArray() 1352 { 1353 synchronized (monitor()) 1354 { 1355 check_orphaned(); 1356 return get_store().count_elements(EJBLOCALREF$22); 1357 } 1358 } 1359 1360 /** 1361 * Sets array of all "ejb-local-ref" element 1362 */ 1363 public void setEjbLocalRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] ejbLocalRefArray) 1364 { 1365 synchronized (monitor()) 1366 { 1367 check_orphaned(); 1368 arraySetterHelper(ejbLocalRefArray, EJBLOCALREF$22); 1369 } 1370 } 1371 1372 /** 1373 * Sets ith "ejb-local-ref" element 1374 */ 1375 public void setEjbLocalRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType ejbLocalRef) 1376 { 1377 synchronized (monitor()) 1378 { 1379 check_orphaned(); 1380 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; 1381 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().find_element_user(EJBLOCALREF$22, i); 1382 if (target == null) 1383 { 1384 throw new IndexOutOfBoundsException(); 1385 } 1386 target.set(ejbLocalRef); 1387 } 1388 } 1389 1390 /** 1391 * Inserts and returns a new empty value (as xml) as the ith "ejb-local-ref" element 1392 */ 1393 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType insertNewEjbLocalRef(int i) 1394 { 1395 synchronized (monitor()) 1396 { 1397 check_orphaned(); 1398 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; 1399 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().insert_element_user(EJBLOCALREF$22, i); 1400 return target; 1401 } 1402 } 1403 1404 /** 1405 * Appends and returns a new empty value (as xml) as the last "ejb-local-ref" element 1406 */ 1407 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType addNewEjbLocalRef() 1408 { 1409 synchronized (monitor()) 1410 { 1411 check_orphaned(); 1412 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; 1413 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().add_element_user(EJBLOCALREF$22); 1414 return target; 1415 } 1416 } 1417 1418 /** 1419 * Removes the ith "ejb-local-ref" element 1420 */ 1421 public void removeEjbLocalRef(int i) 1422 { 1423 synchronized (monitor()) 1424 { 1425 check_orphaned(); 1426 get_store().remove_element(EJBLOCALREF$22, i); 1427 } 1428 } 1429 1430 /** 1431 * Gets array of all "service-ref" elements 1432 */ 1433 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] getServiceRefArray() 1434 { 1435 synchronized (monitor()) 1436 { 1437 check_orphaned(); 1438 java.util.List targetList = new java.util.ArrayList(); 1439 get_store().find_all_element_users(SERVICEREF$24, targetList); 1440 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[targetList.size()]; 1441 targetList.toArray(result); 1442 return result; 1443 } 1444 } 1445 1446 /** 1447 * Gets ith "service-ref" element 1448 */ 1449 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType getServiceRefArray(int i) 1450 { 1451 synchronized (monitor()) 1452 { 1453 check_orphaned(); 1454 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 1455 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$24, i); 1456 if (target == null) 1457 { 1458 throw new IndexOutOfBoundsException(); 1459 } 1460 return target; 1461 } 1462 } 1463 1464 /** 1465 * Returns number of "service-ref" element 1466 */ 1467 public int sizeOfServiceRefArray() 1468 { 1469 synchronized (monitor()) 1470 { 1471 check_orphaned(); 1472 return get_store().count_elements(SERVICEREF$24); 1473 } 1474 } 1475 1476 /** 1477 * Sets array of all "service-ref" element 1478 */ 1479 public void setServiceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] serviceRefArray) 1480 { 1481 synchronized (monitor()) 1482 { 1483 check_orphaned(); 1484 arraySetterHelper(serviceRefArray, SERVICEREF$24); 1485 } 1486 } 1487 1488 /** 1489 * Sets ith "service-ref" element 1490 */ 1491 public void setServiceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType serviceRef) 1492 { 1493 synchronized (monitor()) 1494 { 1495 check_orphaned(); 1496 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 1497 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$24, i); 1498 if (target == null) 1499 { 1500 throw new IndexOutOfBoundsException(); 1501 } 1502 target.set(serviceRef); 1503 } 1504 } 1505 1506 /** 1507 * Inserts and returns a new empty value (as xml) as the ith "service-ref" element 1508 */ 1509 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType insertNewServiceRef(int i) 1510 { 1511 synchronized (monitor()) 1512 { 1513 check_orphaned(); 1514 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 1515 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().insert_element_user(SERVICEREF$24, i); 1516 return target; 1517 } 1518 } 1519 1520 /** 1521 * Appends and returns a new empty value (as xml) as the last "service-ref" element 1522 */ 1523 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType addNewServiceRef() 1524 { 1525 synchronized (monitor()) 1526 { 1527 check_orphaned(); 1528 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 1529 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().add_element_user(SERVICEREF$24); 1530 return target; 1531 } 1532 } 1533 1534 /** 1535 * Removes the ith "service-ref" element 1536 */ 1537 public void removeServiceRef(int i) 1538 { 1539 synchronized (monitor()) 1540 { 1541 check_orphaned(); 1542 get_store().remove_element(SERVICEREF$24, i); 1543 } 1544 } 1545 1546 /** 1547 * Gets array of all "resource-ref" elements 1548 */ 1549 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] getResourceRefArray() 1550 { 1551 synchronized (monitor()) 1552 { 1553 check_orphaned(); 1554 java.util.List targetList = new java.util.ArrayList(); 1555 get_store().find_all_element_users(RESOURCEREF$26, targetList); 1556 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[targetList.size()]; 1557 targetList.toArray(result); 1558 return result; 1559 } 1560 } 1561 1562 /** 1563 * Gets ith "resource-ref" element 1564 */ 1565 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType getResourceRefArray(int i) 1566 { 1567 synchronized (monitor()) 1568 { 1569 check_orphaned(); 1570 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 1571 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$26, i); 1572 if (target == null) 1573 { 1574 throw new IndexOutOfBoundsException(); 1575 } 1576 return target; 1577 } 1578 } 1579 1580 /** 1581 * Returns number of "resource-ref" element 1582 */ 1583 public int sizeOfResourceRefArray() 1584 { 1585 synchronized (monitor()) 1586 { 1587 check_orphaned(); 1588 return get_store().count_elements(RESOURCEREF$26); 1589 } 1590 } 1591 1592 /** 1593 * Sets array of all "resource-ref" element 1594 */ 1595 public void setResourceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] resourceRefArray) 1596 { 1597 synchronized (monitor()) 1598 { 1599 check_orphaned(); 1600 arraySetterHelper(resourceRefArray, RESOURCEREF$26); 1601 } 1602 } 1603 1604 /** 1605 * Sets ith "resource-ref" element 1606 */ 1607 public void setResourceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType resourceRef) 1608 { 1609 synchronized (monitor()) 1610 { 1611 check_orphaned(); 1612 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 1613 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$26, i); 1614 if (target == null) 1615 { 1616 throw new IndexOutOfBoundsException(); 1617 } 1618 target.set(resourceRef); 1619 } 1620 } 1621 1622 /** 1623 * Inserts and returns a new empty value (as xml) as the ith "resource-ref" element 1624 */ 1625 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType insertNewResourceRef(int i) 1626 { 1627 synchronized (monitor()) 1628 { 1629 check_orphaned(); 1630 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 1631 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().insert_element_user(RESOURCEREF$26, i); 1632 return target; 1633 } 1634 } 1635 1636 /** 1637 * Appends and returns a new empty value (as xml) as the last "resource-ref" element 1638 */ 1639 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType addNewResourceRef() 1640 { 1641 synchronized (monitor()) 1642 { 1643 check_orphaned(); 1644 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 1645 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().add_element_user(RESOURCEREF$26); 1646 return target; 1647 } 1648 } 1649 1650 /** 1651 * Removes the ith "resource-ref" element 1652 */ 1653 public void removeResourceRef(int i) 1654 { 1655 synchronized (monitor()) 1656 { 1657 check_orphaned(); 1658 get_store().remove_element(RESOURCEREF$26, i); 1659 } 1660 } 1661 1662 /** 1663 * Gets array of all "resource-env-ref" elements 1664 */ 1665 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] getResourceEnvRefArray() 1666 { 1667 synchronized (monitor()) 1668 { 1669 check_orphaned(); 1670 java.util.List targetList = new java.util.ArrayList(); 1671 get_store().find_all_element_users(RESOURCEENVREF$28, targetList); 1672 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[targetList.size()]; 1673 targetList.toArray(result); 1674 return result; 1675 } 1676 } 1677 1678 /** 1679 * Gets ith "resource-env-ref" element 1680 */ 1681 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType getResourceEnvRefArray(int i) 1682 { 1683 synchronized (monitor()) 1684 { 1685 check_orphaned(); 1686 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 1687 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$28, i); 1688 if (target == null) 1689 { 1690 throw new IndexOutOfBoundsException(); 1691 } 1692 return target; 1693 } 1694 } 1695 1696 /** 1697 * Returns number of "resource-env-ref" element 1698 */ 1699 public int sizeOfResourceEnvRefArray() 1700 { 1701 synchronized (monitor()) 1702 { 1703 check_orphaned(); 1704 return get_store().count_elements(RESOURCEENVREF$28); 1705 } 1706 } 1707 1708 /** 1709 * Sets array of all "resource-env-ref" element 1710 */ 1711 public void setResourceEnvRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] resourceEnvRefArray) 1712 { 1713 synchronized (monitor()) 1714 { 1715 check_orphaned(); 1716 arraySetterHelper(resourceEnvRefArray, RESOURCEENVREF$28); 1717 } 1718 } 1719 1720 /** 1721 * Sets ith "resource-env-ref" element 1722 */ 1723 public void setResourceEnvRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType resourceEnvRef) 1724 { 1725 synchronized (monitor()) 1726 { 1727 check_orphaned(); 1728 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 1729 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$28, i); 1730 if (target == null) 1731 { 1732 throw new IndexOutOfBoundsException(); 1733 } 1734 target.set(resourceEnvRef); 1735 } 1736 } 1737 1738 /** 1739 * Inserts and returns a new empty value (as xml) as the ith "resource-env-ref" element 1740 */ 1741 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType insertNewResourceEnvRef(int i) 1742 { 1743 synchronized (monitor()) 1744 { 1745 check_orphaned(); 1746 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 1747 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().insert_element_user(RESOURCEENVREF$28, i); 1748 return target; 1749 } 1750 } 1751 1752 /** 1753 * Appends and returns a new empty value (as xml) as the last "resource-env-ref" element 1754 */ 1755 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType addNewResourceEnvRef() 1756 { 1757 synchronized (monitor()) 1758 { 1759 check_orphaned(); 1760 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 1761 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().add_element_user(RESOURCEENVREF$28); 1762 return target; 1763 } 1764 } 1765 1766 /** 1767 * Removes the ith "resource-env-ref" element 1768 */ 1769 public void removeResourceEnvRef(int i) 1770 { 1771 synchronized (monitor()) 1772 { 1773 check_orphaned(); 1774 get_store().remove_element(RESOURCEENVREF$28, i); 1775 } 1776 } 1777 1778 /** 1779 * Gets array of all "message-destination" elements 1780 */ 1781 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] getMessageDestinationArray() 1782 { 1783 synchronized (monitor()) 1784 { 1785 check_orphaned(); 1786 java.util.List targetList = new java.util.ArrayList(); 1787 get_store().find_all_element_users(MESSAGEDESTINATION$30, targetList); 1788 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[targetList.size()]; 1789 targetList.toArray(result); 1790 return result; 1791 } 1792 } 1793 1794 /** 1795 * Gets ith "message-destination" element 1796 */ 1797 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType getMessageDestinationArray(int i) 1798 { 1799 synchronized (monitor()) 1800 { 1801 check_orphaned(); 1802 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 1803 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$30, i); 1804 if (target == null) 1805 { 1806 throw new IndexOutOfBoundsException(); 1807 } 1808 return target; 1809 } 1810 } 1811 1812 /** 1813 * Returns number of "message-destination" element 1814 */ 1815 public int sizeOfMessageDestinationArray() 1816 { 1817 synchronized (monitor()) 1818 { 1819 check_orphaned(); 1820 return get_store().count_elements(MESSAGEDESTINATION$30); 1821 } 1822 } 1823 1824 /** 1825 * Sets array of all "message-destination" element 1826 */ 1827 public void setMessageDestinationArray(org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] messageDestinationArray) 1828 { 1829 synchronized (monitor()) 1830 { 1831 check_orphaned(); 1832 arraySetterHelper(messageDestinationArray, MESSAGEDESTINATION$30); 1833 } 1834 } 1835 1836 /** 1837 * Sets ith "message-destination" element 1838 */ 1839 public void setMessageDestinationArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType messageDestination) 1840 { 1841 synchronized (monitor()) 1842 { 1843 check_orphaned(); 1844 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 1845 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$30, i); 1846 if (target == null) 1847 { 1848 throw new IndexOutOfBoundsException(); 1849 } 1850 target.set(messageDestination); 1851 } 1852 } 1853 1854 /** 1855 * Inserts and returns a new empty value (as xml) as the ith "message-destination" element 1856 */ 1857 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType insertNewMessageDestination(int i) 1858 { 1859 synchronized (monitor()) 1860 { 1861 check_orphaned(); 1862 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 1863 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().insert_element_user(MESSAGEDESTINATION$30, i); 1864 return target; 1865 } 1866 } 1867 1868 /** 1869 * Appends and returns a new empty value (as xml) as the last "message-destination" element 1870 */ 1871 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType addNewMessageDestination() 1872 { 1873 synchronized (monitor()) 1874 { 1875 check_orphaned(); 1876 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 1877 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().add_element_user(MESSAGEDESTINATION$30); 1878 return target; 1879 } 1880 } 1881 1882 /** 1883 * Removes the ith "message-destination" element 1884 */ 1885 public void removeMessageDestination(int i) 1886 { 1887 synchronized (monitor()) 1888 { 1889 check_orphaned(); 1890 get_store().remove_element(MESSAGEDESTINATION$30, i); 1891 } 1892 } 1893 1894 /** 1895 * Gets the "security-realm-name" element 1896 */ 1897 public java.lang.String getSecurityRealmName() 1898 { 1899 synchronized (monitor()) 1900 { 1901 check_orphaned(); 1902 org.apache.xmlbeans.SimpleValue target = null; 1903 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECURITYREALMNAME$32, 0); 1904 if (target == null) 1905 { 1906 return null; 1907 } 1908 return target.getStringValue(); 1909 } 1910 } 1911 1912 /** 1913 * Gets (as xml) the "security-realm-name" element 1914 */ 1915 public org.apache.xmlbeans.XmlString xgetSecurityRealmName() 1916 { 1917 synchronized (monitor()) 1918 { 1919 check_orphaned(); 1920 org.apache.xmlbeans.XmlString target = null; 1921 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECURITYREALMNAME$32, 0); 1922 return target; 1923 } 1924 } 1925 1926 /** 1927 * True if has "security-realm-name" element 1928 */ 1929 public boolean isSetSecurityRealmName() 1930 { 1931 synchronized (monitor()) 1932 { 1933 check_orphaned(); 1934 return get_store().count_elements(SECURITYREALMNAME$32) != 0; 1935 } 1936 } 1937 1938 /** 1939 * Sets the "security-realm-name" element 1940 */ 1941 public void setSecurityRealmName(java.lang.String securityRealmName) 1942 { 1943 synchronized (monitor()) 1944 { 1945 check_orphaned(); 1946 org.apache.xmlbeans.SimpleValue target = null; 1947 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECURITYREALMNAME$32, 0); 1948 if (target == null) 1949 { 1950 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SECURITYREALMNAME$32); 1951 } 1952 target.setStringValue(securityRealmName); 1953 } 1954 } 1955 1956 /** 1957 * Sets (as xml) the "security-realm-name" element 1958 */ 1959 public void xsetSecurityRealmName(org.apache.xmlbeans.XmlString securityRealmName) 1960 { 1961 synchronized (monitor()) 1962 { 1963 check_orphaned(); 1964 org.apache.xmlbeans.XmlString target = null; 1965 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECURITYREALMNAME$32, 0); 1966 if (target == null) 1967 { 1968 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SECURITYREALMNAME$32); 1969 } 1970 target.set(securityRealmName); 1971 } 1972 } 1973 1974 /** 1975 * Unsets the "security-realm-name" element 1976 */ 1977 public void unsetSecurityRealmName() 1978 { 1979 synchronized (monitor()) 1980 { 1981 check_orphaned(); 1982 get_store().remove_element(SECURITYREALMNAME$32, 0); 1983 } 1984 } 1985 1986 /** 1987 * Gets the "security" element 1988 */ 1989 public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType getSecurity() 1990 { 1991 synchronized (monitor()) 1992 { 1993 check_orphaned(); 1994 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null; 1995 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().find_element_user(SECURITY$34, 0); 1996 if (target == null) 1997 { 1998 return null; 1999 } 2000 return target; 2001 } 2002 } 2003 2004 /** 2005 * True if has "security" element 2006 */ 2007 public boolean isSetSecurity() 2008 { 2009 synchronized (monitor()) 2010 { 2011 check_orphaned(); 2012 return get_store().count_elements(SECURITY$34) != 0; 2013 } 2014 } 2015 2016 /** 2017 * Sets the "security" element 2018 */ 2019 public void setSecurity(org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType security) 2020 { 2021 synchronized (monitor()) 2022 { 2023 check_orphaned(); 2024 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null; 2025 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().find_element_user(SECURITY$34, 0); 2026 if (target == null) 2027 { 2028 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().add_element_user(SECURITY$34); 2029 } 2030 target.set(security); 2031 } 2032 } 2033 2034 /** 2035 * Appends and returns a new empty "security" element 2036 */ 2037 public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType addNewSecurity() 2038 { 2039 synchronized (monitor()) 2040 { 2041 check_orphaned(); 2042 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null; 2043 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().add_element_user(SECURITY$34); 2044 return target; 2045 } 2046 } 2047 2048 /** 2049 * Unsets the "security" element 2050 */ 2051 public void unsetSecurity() 2052 { 2053 synchronized (monitor()) 2054 { 2055 check_orphaned(); 2056 get_store().remove_element(SECURITY$34, 0); 2057 } 2058 } 2059 2060 /** 2061 * Gets array of all "service" elements 2062 */ 2063 public org.apache.geronimo.deployment.xbeans.AbstractServiceType[] getServiceArray() 2064 { 2065 synchronized (monitor()) 2066 { 2067 check_orphaned(); 2068 java.util.List targetList = new java.util.ArrayList(); 2069 get_store().find_all_element_users(SERVICE$37, targetList); 2070 org.apache.geronimo.deployment.xbeans.AbstractServiceType[] result = new org.apache.geronimo.deployment.xbeans.AbstractServiceType[targetList.size()]; 2071 targetList.toArray(result); 2072 return result; 2073 } 2074 } 2075 2076 /** 2077 * Gets ith "service" element 2078 */ 2079 public org.apache.geronimo.deployment.xbeans.AbstractServiceType getServiceArray(int i) 2080 { 2081 synchronized (monitor()) 2082 { 2083 check_orphaned(); 2084 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 2085 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$37, i); 2086 if (target == null) 2087 { 2088 throw new IndexOutOfBoundsException(); 2089 } 2090 return target; 2091 } 2092 } 2093 2094 /** 2095 * Returns number of "service" element 2096 */ 2097 public int sizeOfServiceArray() 2098 { 2099 synchronized (monitor()) 2100 { 2101 check_orphaned(); 2102 return get_store().count_elements(SERVICE$37); 2103 } 2104 } 2105 2106 /** 2107 * Sets array of all "service" element 2108 */ 2109 public void setServiceArray(org.apache.geronimo.deployment.xbeans.AbstractServiceType[] serviceArray) 2110 { 2111 synchronized (monitor()) 2112 { 2113 check_orphaned(); 2114 arraySetterHelper(serviceArray, SERVICE$36, SERVICE$37); 2115 } 2116 } 2117 2118 /** 2119 * Sets ith "service" element 2120 */ 2121 public void setServiceArray(int i, org.apache.geronimo.deployment.xbeans.AbstractServiceType service) 2122 { 2123 synchronized (monitor()) 2124 { 2125 check_orphaned(); 2126 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 2127 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$37, i); 2128 if (target == null) 2129 { 2130 throw new IndexOutOfBoundsException(); 2131 } 2132 target.set(service); 2133 } 2134 } 2135 2136 /** 2137 * Inserts and returns a new empty value (as xml) as the ith "service" element 2138 */ 2139 public org.apache.geronimo.deployment.xbeans.AbstractServiceType insertNewService(int i) 2140 { 2141 synchronized (monitor()) 2142 { 2143 check_orphaned(); 2144 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 2145 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().insert_element_user(SERVICE$37, SERVICE$36, i); 2146 return target; 2147 } 2148 } 2149 2150 /** 2151 * Appends and returns a new empty value (as xml) as the last "service" element 2152 */ 2153 public org.apache.geronimo.deployment.xbeans.AbstractServiceType addNewService() 2154 { 2155 synchronized (monitor()) 2156 { 2157 check_orphaned(); 2158 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 2159 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().add_element_user(SERVICE$36); 2160 return target; 2161 } 2162 } 2163 2164 /** 2165 * Removes the ith "service" element 2166 */ 2167 public void removeService(int i) 2168 { 2169 synchronized (monitor()) 2170 { 2171 check_orphaned(); 2172 get_store().remove_element(SERVICE$37, i); 2173 } 2174 } 2175 2176 /** 2177 * Gets array of all "persistence" elements 2178 */ 2179 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] getPersistenceArray() 2180 { 2181 synchronized (monitor()) 2182 { 2183 check_orphaned(); 2184 java.util.List targetList = new java.util.ArrayList(); 2185 get_store().find_all_element_users(PERSISTENCE$38, targetList); 2186 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] result = new org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[targetList.size()]; 2187 targetList.toArray(result); 2188 return result; 2189 } 2190 } 2191 2192 /** 2193 * Gets ith "persistence" element 2194 */ 2195 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence getPersistenceArray(int i) 2196 { 2197 synchronized (monitor()) 2198 { 2199 check_orphaned(); 2200 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null; 2201 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().find_element_user(PERSISTENCE$38, i); 2202 if (target == null) 2203 { 2204 throw new IndexOutOfBoundsException(); 2205 } 2206 return target; 2207 } 2208 } 2209 2210 /** 2211 * Returns number of "persistence" element 2212 */ 2213 public int sizeOfPersistenceArray() 2214 { 2215 synchronized (monitor()) 2216 { 2217 check_orphaned(); 2218 return get_store().count_elements(PERSISTENCE$38); 2219 } 2220 } 2221 2222 /** 2223 * Sets array of all "persistence" element 2224 */ 2225 public void setPersistenceArray(org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] persistenceArray) 2226 { 2227 synchronized (monitor()) 2228 { 2229 check_orphaned(); 2230 arraySetterHelper(persistenceArray, PERSISTENCE$38); 2231 } 2232 } 2233 2234 /** 2235 * Sets ith "persistence" element 2236 */ 2237 public void setPersistenceArray(int i, org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence persistence) 2238 { 2239 synchronized (monitor()) 2240 { 2241 check_orphaned(); 2242 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null; 2243 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().find_element_user(PERSISTENCE$38, i); 2244 if (target == null) 2245 { 2246 throw new IndexOutOfBoundsException(); 2247 } 2248 target.set(persistence); 2249 } 2250 } 2251 2252 /** 2253 * Inserts and returns a new empty value (as xml) as the ith "persistence" element 2254 */ 2255 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence insertNewPersistence(int i) 2256 { 2257 synchronized (monitor()) 2258 { 2259 check_orphaned(); 2260 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null; 2261 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().insert_element_user(PERSISTENCE$38, i); 2262 return target; 2263 } 2264 } 2265 2266 /** 2267 * Appends and returns a new empty value (as xml) as the last "persistence" element 2268 */ 2269 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence addNewPersistence() 2270 { 2271 synchronized (monitor()) 2272 { 2273 check_orphaned(); 2274 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null; 2275 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().add_element_user(PERSISTENCE$38); 2276 return target; 2277 } 2278 } 2279 2280 /** 2281 * Removes the ith "persistence" element 2282 */ 2283 public void removePersistence(int i) 2284 { 2285 synchronized (monitor()) 2286 { 2287 check_orphaned(); 2288 get_store().remove_element(PERSISTENCE$38, i); 2289 } 2290 } 2291 }