001 /* 002 * XML Type: web-appType 003 * Namespace: http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1 004 * Java type: org.apache.geronimo.xbeans.geronimo.web.GerWebAppType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.web.impl; 009 /** 010 * An XML web-appType(@http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1). 011 * 012 * This is a complex type. 013 */ 014 public class GerWebAppTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.web.GerWebAppType 015 { 016 017 public GerWebAppTypeImpl(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-2.0.1", "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-2.0.1", "work-dir"); 028 private static final javax.xml.namespace.QName WEBCONTAINER$6 = 029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "web-container"); 030 private static final javax.xml.namespace.QName CONTAINERCONFIG$8 = 031 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1", "container-config"); 032 private static final javax.xml.namespace.QName ABSTRACTNAMINGENTRY$10 = 033 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry"); 034 private static final org.apache.xmlbeans.QNameSet ABSTRACTNAMINGENTRY$11 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 035 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "gbean-ref"), 036 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-context-ref"), 037 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-unit-ref"), 038 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry"), 039 }); 040 private static final javax.xml.namespace.QName EJBREF$12 = 041 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ejb-ref"); 042 private static final javax.xml.namespace.QName EJBLOCALREF$14 = 043 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ejb-local-ref"); 044 private static final javax.xml.namespace.QName SERVICEREF$16 = 045 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "service-ref"); 046 private static final javax.xml.namespace.QName RESOURCEREF$18 = 047 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-ref"); 048 private static final javax.xml.namespace.QName RESOURCEENVREF$20 = 049 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-env-ref"); 050 private static final javax.xml.namespace.QName MESSAGEDESTINATION$22 = 051 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "message-destination"); 052 private static final javax.xml.namespace.QName SECURITYREALMNAME$24 = 053 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1", "security-realm-name"); 054 private static final javax.xml.namespace.QName SECURITY$26 = 055 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "security"); 056 private static final javax.xml.namespace.QName SERVICE$28 = 057 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service"); 058 private static final org.apache.xmlbeans.QNameSet SERVICE$29 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 059 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service"), 060 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "gbean"), 061 }); 062 private static final javax.xml.namespace.QName PERSISTENCE$30 = 063 new javax.xml.namespace.QName("http://java.sun.com/xml/ns/persistence", "persistence"); 064 065 066 /** 067 * Gets the "environment" element 068 */ 069 public org.apache.geronimo.deployment.xbeans.EnvironmentType getEnvironment() 070 { 071 synchronized (monitor()) 072 { 073 check_orphaned(); 074 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 075 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(ENVIRONMENT$0, 0); 076 if (target == null) 077 { 078 return null; 079 } 080 return target; 081 } 082 } 083 084 /** 085 * True if has "environment" element 086 */ 087 public boolean isSetEnvironment() 088 { 089 synchronized (monitor()) 090 { 091 check_orphaned(); 092 return get_store().count_elements(ENVIRONMENT$0) != 0; 093 } 094 } 095 096 /** 097 * Sets the "environment" element 098 */ 099 public void setEnvironment(org.apache.geronimo.deployment.xbeans.EnvironmentType environment) 100 { 101 synchronized (monitor()) 102 { 103 check_orphaned(); 104 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 105 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(ENVIRONMENT$0, 0); 106 if (target == null) 107 { 108 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(ENVIRONMENT$0); 109 } 110 target.set(environment); 111 } 112 } 113 114 /** 115 * Appends and returns a new empty "environment" element 116 */ 117 public org.apache.geronimo.deployment.xbeans.EnvironmentType addNewEnvironment() 118 { 119 synchronized (monitor()) 120 { 121 check_orphaned(); 122 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null; 123 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(ENVIRONMENT$0); 124 return target; 125 } 126 } 127 128 /** 129 * Unsets the "environment" element 130 */ 131 public void unsetEnvironment() 132 { 133 synchronized (monitor()) 134 { 135 check_orphaned(); 136 get_store().remove_element(ENVIRONMENT$0, 0); 137 } 138 } 139 140 /** 141 * Gets the "context-root" element 142 */ 143 public java.lang.String getContextRoot() 144 { 145 synchronized (monitor()) 146 { 147 check_orphaned(); 148 org.apache.xmlbeans.SimpleValue target = null; 149 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTEXTROOT$2, 0); 150 if (target == null) 151 { 152 return null; 153 } 154 return target.getStringValue(); 155 } 156 } 157 158 /** 159 * Gets (as xml) the "context-root" element 160 */ 161 public org.apache.xmlbeans.XmlString xgetContextRoot() 162 { 163 synchronized (monitor()) 164 { 165 check_orphaned(); 166 org.apache.xmlbeans.XmlString target = null; 167 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONTEXTROOT$2, 0); 168 return target; 169 } 170 } 171 172 /** 173 * True if has "context-root" element 174 */ 175 public boolean isSetContextRoot() 176 { 177 synchronized (monitor()) 178 { 179 check_orphaned(); 180 return get_store().count_elements(CONTEXTROOT$2) != 0; 181 } 182 } 183 184 /** 185 * Sets the "context-root" element 186 */ 187 public void setContextRoot(java.lang.String contextRoot) 188 { 189 synchronized (monitor()) 190 { 191 check_orphaned(); 192 org.apache.xmlbeans.SimpleValue target = null; 193 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTEXTROOT$2, 0); 194 if (target == null) 195 { 196 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTEXTROOT$2); 197 } 198 target.setStringValue(contextRoot); 199 } 200 } 201 202 /** 203 * Sets (as xml) the "context-root" element 204 */ 205 public void xsetContextRoot(org.apache.xmlbeans.XmlString contextRoot) 206 { 207 synchronized (monitor()) 208 { 209 check_orphaned(); 210 org.apache.xmlbeans.XmlString target = null; 211 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CONTEXTROOT$2, 0); 212 if (target == null) 213 { 214 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CONTEXTROOT$2); 215 } 216 target.set(contextRoot); 217 } 218 } 219 220 /** 221 * Unsets the "context-root" element 222 */ 223 public void unsetContextRoot() 224 { 225 synchronized (monitor()) 226 { 227 check_orphaned(); 228 get_store().remove_element(CONTEXTROOT$2, 0); 229 } 230 } 231 232 /** 233 * Gets the "work-dir" element 234 */ 235 public java.lang.String getWorkDir() 236 { 237 synchronized (monitor()) 238 { 239 check_orphaned(); 240 org.apache.xmlbeans.SimpleValue target = null; 241 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WORKDIR$4, 0); 242 if (target == null) 243 { 244 return null; 245 } 246 return target.getStringValue(); 247 } 248 } 249 250 /** 251 * Gets (as xml) the "work-dir" element 252 */ 253 public org.apache.xmlbeans.XmlString xgetWorkDir() 254 { 255 synchronized (monitor()) 256 { 257 check_orphaned(); 258 org.apache.xmlbeans.XmlString target = null; 259 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(WORKDIR$4, 0); 260 return target; 261 } 262 } 263 264 /** 265 * True if has "work-dir" element 266 */ 267 public boolean isSetWorkDir() 268 { 269 synchronized (monitor()) 270 { 271 check_orphaned(); 272 return get_store().count_elements(WORKDIR$4) != 0; 273 } 274 } 275 276 /** 277 * Sets the "work-dir" element 278 */ 279 public void setWorkDir(java.lang.String workDir) 280 { 281 synchronized (monitor()) 282 { 283 check_orphaned(); 284 org.apache.xmlbeans.SimpleValue target = null; 285 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WORKDIR$4, 0); 286 if (target == null) 287 { 288 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(WORKDIR$4); 289 } 290 target.setStringValue(workDir); 291 } 292 } 293 294 /** 295 * Sets (as xml) the "work-dir" element 296 */ 297 public void xsetWorkDir(org.apache.xmlbeans.XmlString workDir) 298 { 299 synchronized (monitor()) 300 { 301 check_orphaned(); 302 org.apache.xmlbeans.XmlString target = null; 303 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(WORKDIR$4, 0); 304 if (target == null) 305 { 306 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(WORKDIR$4); 307 } 308 target.set(workDir); 309 } 310 } 311 312 /** 313 * Unsets the "work-dir" element 314 */ 315 public void unsetWorkDir() 316 { 317 synchronized (monitor()) 318 { 319 check_orphaned(); 320 get_store().remove_element(WORKDIR$4, 0); 321 } 322 } 323 324 /** 325 * Gets the "web-container" element 326 */ 327 public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType getWebContainer() 328 { 329 synchronized (monitor()) 330 { 331 check_orphaned(); 332 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType target = null; 333 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().find_element_user(WEBCONTAINER$6, 0); 334 if (target == null) 335 { 336 return null; 337 } 338 return target; 339 } 340 } 341 342 /** 343 * True if has "web-container" element 344 */ 345 public boolean isSetWebContainer() 346 { 347 synchronized (monitor()) 348 { 349 check_orphaned(); 350 return get_store().count_elements(WEBCONTAINER$6) != 0; 351 } 352 } 353 354 /** 355 * Sets the "web-container" element 356 */ 357 public void setWebContainer(org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType webContainer) 358 { 359 synchronized (monitor()) 360 { 361 check_orphaned(); 362 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType target = null; 363 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().find_element_user(WEBCONTAINER$6, 0); 364 if (target == null) 365 { 366 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().add_element_user(WEBCONTAINER$6); 367 } 368 target.set(webContainer); 369 } 370 } 371 372 /** 373 * Appends and returns a new empty "web-container" element 374 */ 375 public org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType addNewWebContainer() 376 { 377 synchronized (monitor()) 378 { 379 check_orphaned(); 380 org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType target = null; 381 target = (org.apache.geronimo.xbeans.geronimo.naming.GerGbeanLocatorType)get_store().add_element_user(WEBCONTAINER$6); 382 return target; 383 } 384 } 385 386 /** 387 * Unsets the "web-container" element 388 */ 389 public void unsetWebContainer() 390 { 391 synchronized (monitor()) 392 { 393 check_orphaned(); 394 get_store().remove_element(WEBCONTAINER$6, 0); 395 } 396 } 397 398 /** 399 * Gets the "container-config" element 400 */ 401 public org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType getContainerConfig() 402 { 403 synchronized (monitor()) 404 { 405 check_orphaned(); 406 org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType target = null; 407 target = (org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType)get_store().find_element_user(CONTAINERCONFIG$8, 0); 408 if (target == null) 409 { 410 return null; 411 } 412 return target; 413 } 414 } 415 416 /** 417 * True if has "container-config" element 418 */ 419 public boolean isSetContainerConfig() 420 { 421 synchronized (monitor()) 422 { 423 check_orphaned(); 424 return get_store().count_elements(CONTAINERCONFIG$8) != 0; 425 } 426 } 427 428 /** 429 * Sets the "container-config" element 430 */ 431 public void setContainerConfig(org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType containerConfig) 432 { 433 synchronized (monitor()) 434 { 435 check_orphaned(); 436 org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType target = null; 437 target = (org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType)get_store().find_element_user(CONTAINERCONFIG$8, 0); 438 if (target == null) 439 { 440 target = (org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType)get_store().add_element_user(CONTAINERCONFIG$8); 441 } 442 target.set(containerConfig); 443 } 444 } 445 446 /** 447 * Appends and returns a new empty "container-config" element 448 */ 449 public org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType addNewContainerConfig() 450 { 451 synchronized (monitor()) 452 { 453 check_orphaned(); 454 org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType target = null; 455 target = (org.apache.geronimo.xbeans.geronimo.web.GerContainerConfigType)get_store().add_element_user(CONTAINERCONFIG$8); 456 return target; 457 } 458 } 459 460 /** 461 * Unsets the "container-config" element 462 */ 463 public void unsetContainerConfig() 464 { 465 synchronized (monitor()) 466 { 467 check_orphaned(); 468 get_store().remove_element(CONTAINERCONFIG$8, 0); 469 } 470 } 471 472 /** 473 * Gets array of all "abstract-naming-entry" elements 474 */ 475 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] getAbstractNamingEntryArray() 476 { 477 synchronized (monitor()) 478 { 479 check_orphaned(); 480 java.util.List targetList = new java.util.ArrayList(); 481 get_store().find_all_element_users(ABSTRACTNAMINGENTRY$11, targetList); 482 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[targetList.size()]; 483 targetList.toArray(result); 484 return result; 485 } 486 } 487 488 /** 489 * Gets ith "abstract-naming-entry" element 490 */ 491 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType getAbstractNamingEntryArray(int i) 492 { 493 synchronized (monitor()) 494 { 495 check_orphaned(); 496 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null; 497 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$11, i); 498 if (target == null) 499 { 500 throw new IndexOutOfBoundsException(); 501 } 502 return target; 503 } 504 } 505 506 /** 507 * Returns number of "abstract-naming-entry" element 508 */ 509 public int sizeOfAbstractNamingEntryArray() 510 { 511 synchronized (monitor()) 512 { 513 check_orphaned(); 514 return get_store().count_elements(ABSTRACTNAMINGENTRY$11); 515 } 516 } 517 518 /** 519 * Sets array of all "abstract-naming-entry" element 520 */ 521 public void setAbstractNamingEntryArray(org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] abstractNamingEntryArray) 522 { 523 synchronized (monitor()) 524 { 525 check_orphaned(); 526 arraySetterHelper(abstractNamingEntryArray, ABSTRACTNAMINGENTRY$10, ABSTRACTNAMINGENTRY$11); 527 } 528 } 529 530 /** 531 * Sets ith "abstract-naming-entry" element 532 */ 533 public void setAbstractNamingEntryArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType abstractNamingEntry) 534 { 535 synchronized (monitor()) 536 { 537 check_orphaned(); 538 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null; 539 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$11, i); 540 if (target == null) 541 { 542 throw new IndexOutOfBoundsException(); 543 } 544 target.set(abstractNamingEntry); 545 } 546 } 547 548 /** 549 * Inserts and returns a new empty value (as xml) as the ith "abstract-naming-entry" element 550 */ 551 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType insertNewAbstractNamingEntry(int i) 552 { 553 synchronized (monitor()) 554 { 555 check_orphaned(); 556 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null; 557 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().insert_element_user(ABSTRACTNAMINGENTRY$11, ABSTRACTNAMINGENTRY$10, i); 558 return target; 559 } 560 } 561 562 /** 563 * Appends and returns a new empty value (as xml) as the last "abstract-naming-entry" element 564 */ 565 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType addNewAbstractNamingEntry() 566 { 567 synchronized (monitor()) 568 { 569 check_orphaned(); 570 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null; 571 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().add_element_user(ABSTRACTNAMINGENTRY$10); 572 return target; 573 } 574 } 575 576 /** 577 * Removes the ith "abstract-naming-entry" element 578 */ 579 public void removeAbstractNamingEntry(int i) 580 { 581 synchronized (monitor()) 582 { 583 check_orphaned(); 584 get_store().remove_element(ABSTRACTNAMINGENTRY$11, i); 585 } 586 } 587 588 /** 589 * Gets array of all "ejb-ref" elements 590 */ 591 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] getEjbRefArray() 592 { 593 synchronized (monitor()) 594 { 595 check_orphaned(); 596 java.util.List targetList = new java.util.ArrayList(); 597 get_store().find_all_element_users(EJBREF$12, targetList); 598 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[targetList.size()]; 599 targetList.toArray(result); 600 return result; 601 } 602 } 603 604 /** 605 * Gets ith "ejb-ref" element 606 */ 607 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType getEjbRefArray(int i) 608 { 609 synchronized (monitor()) 610 { 611 check_orphaned(); 612 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 613 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$12, i); 614 if (target == null) 615 { 616 throw new IndexOutOfBoundsException(); 617 } 618 return target; 619 } 620 } 621 622 /** 623 * Returns number of "ejb-ref" element 624 */ 625 public int sizeOfEjbRefArray() 626 { 627 synchronized (monitor()) 628 { 629 check_orphaned(); 630 return get_store().count_elements(EJBREF$12); 631 } 632 } 633 634 /** 635 * Sets array of all "ejb-ref" element 636 */ 637 public void setEjbRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] ejbRefArray) 638 { 639 synchronized (monitor()) 640 { 641 check_orphaned(); 642 arraySetterHelper(ejbRefArray, EJBREF$12); 643 } 644 } 645 646 /** 647 * Sets ith "ejb-ref" element 648 */ 649 public void setEjbRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType ejbRef) 650 { 651 synchronized (monitor()) 652 { 653 check_orphaned(); 654 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 655 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$12, i); 656 if (target == null) 657 { 658 throw new IndexOutOfBoundsException(); 659 } 660 target.set(ejbRef); 661 } 662 } 663 664 /** 665 * Inserts and returns a new empty value (as xml) as the ith "ejb-ref" element 666 */ 667 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType insertNewEjbRef(int i) 668 { 669 synchronized (monitor()) 670 { 671 check_orphaned(); 672 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 673 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().insert_element_user(EJBREF$12, i); 674 return target; 675 } 676 } 677 678 /** 679 * Appends and returns a new empty value (as xml) as the last "ejb-ref" element 680 */ 681 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType addNewEjbRef() 682 { 683 synchronized (monitor()) 684 { 685 check_orphaned(); 686 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null; 687 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().add_element_user(EJBREF$12); 688 return target; 689 } 690 } 691 692 /** 693 * Removes the ith "ejb-ref" element 694 */ 695 public void removeEjbRef(int i) 696 { 697 synchronized (monitor()) 698 { 699 check_orphaned(); 700 get_store().remove_element(EJBREF$12, i); 701 } 702 } 703 704 /** 705 * Gets array of all "ejb-local-ref" elements 706 */ 707 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] getEjbLocalRefArray() 708 { 709 synchronized (monitor()) 710 { 711 check_orphaned(); 712 java.util.List targetList = new java.util.ArrayList(); 713 get_store().find_all_element_users(EJBLOCALREF$14, targetList); 714 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[targetList.size()]; 715 targetList.toArray(result); 716 return result; 717 } 718 } 719 720 /** 721 * Gets ith "ejb-local-ref" element 722 */ 723 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType getEjbLocalRefArray(int i) 724 { 725 synchronized (monitor()) 726 { 727 check_orphaned(); 728 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; 729 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().find_element_user(EJBLOCALREF$14, i); 730 if (target == null) 731 { 732 throw new IndexOutOfBoundsException(); 733 } 734 return target; 735 } 736 } 737 738 /** 739 * Returns number of "ejb-local-ref" element 740 */ 741 public int sizeOfEjbLocalRefArray() 742 { 743 synchronized (monitor()) 744 { 745 check_orphaned(); 746 return get_store().count_elements(EJBLOCALREF$14); 747 } 748 } 749 750 /** 751 * Sets array of all "ejb-local-ref" element 752 */ 753 public void setEjbLocalRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] ejbLocalRefArray) 754 { 755 synchronized (monitor()) 756 { 757 check_orphaned(); 758 arraySetterHelper(ejbLocalRefArray, EJBLOCALREF$14); 759 } 760 } 761 762 /** 763 * Sets ith "ejb-local-ref" element 764 */ 765 public void setEjbLocalRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType ejbLocalRef) 766 { 767 synchronized (monitor()) 768 { 769 check_orphaned(); 770 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; 771 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().find_element_user(EJBLOCALREF$14, i); 772 if (target == null) 773 { 774 throw new IndexOutOfBoundsException(); 775 } 776 target.set(ejbLocalRef); 777 } 778 } 779 780 /** 781 * Inserts and returns a new empty value (as xml) as the ith "ejb-local-ref" element 782 */ 783 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType insertNewEjbLocalRef(int i) 784 { 785 synchronized (monitor()) 786 { 787 check_orphaned(); 788 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; 789 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().insert_element_user(EJBLOCALREF$14, i); 790 return target; 791 } 792 } 793 794 /** 795 * Appends and returns a new empty value (as xml) as the last "ejb-local-ref" element 796 */ 797 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType addNewEjbLocalRef() 798 { 799 synchronized (monitor()) 800 { 801 check_orphaned(); 802 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; 803 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().add_element_user(EJBLOCALREF$14); 804 return target; 805 } 806 } 807 808 /** 809 * Removes the ith "ejb-local-ref" element 810 */ 811 public void removeEjbLocalRef(int i) 812 { 813 synchronized (monitor()) 814 { 815 check_orphaned(); 816 get_store().remove_element(EJBLOCALREF$14, i); 817 } 818 } 819 820 /** 821 * Gets array of all "service-ref" elements 822 */ 823 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] getServiceRefArray() 824 { 825 synchronized (monitor()) 826 { 827 check_orphaned(); 828 java.util.List targetList = new java.util.ArrayList(); 829 get_store().find_all_element_users(SERVICEREF$16, targetList); 830 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[targetList.size()]; 831 targetList.toArray(result); 832 return result; 833 } 834 } 835 836 /** 837 * Gets ith "service-ref" element 838 */ 839 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType getServiceRefArray(int i) 840 { 841 synchronized (monitor()) 842 { 843 check_orphaned(); 844 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 845 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$16, i); 846 if (target == null) 847 { 848 throw new IndexOutOfBoundsException(); 849 } 850 return target; 851 } 852 } 853 854 /** 855 * Returns number of "service-ref" element 856 */ 857 public int sizeOfServiceRefArray() 858 { 859 synchronized (monitor()) 860 { 861 check_orphaned(); 862 return get_store().count_elements(SERVICEREF$16); 863 } 864 } 865 866 /** 867 * Sets array of all "service-ref" element 868 */ 869 public void setServiceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] serviceRefArray) 870 { 871 synchronized (monitor()) 872 { 873 check_orphaned(); 874 arraySetterHelper(serviceRefArray, SERVICEREF$16); 875 } 876 } 877 878 /** 879 * Sets ith "service-ref" element 880 */ 881 public void setServiceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType serviceRef) 882 { 883 synchronized (monitor()) 884 { 885 check_orphaned(); 886 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 887 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$16, i); 888 if (target == null) 889 { 890 throw new IndexOutOfBoundsException(); 891 } 892 target.set(serviceRef); 893 } 894 } 895 896 /** 897 * Inserts and returns a new empty value (as xml) as the ith "service-ref" element 898 */ 899 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType insertNewServiceRef(int i) 900 { 901 synchronized (monitor()) 902 { 903 check_orphaned(); 904 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 905 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().insert_element_user(SERVICEREF$16, i); 906 return target; 907 } 908 } 909 910 /** 911 * Appends and returns a new empty value (as xml) as the last "service-ref" element 912 */ 913 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType addNewServiceRef() 914 { 915 synchronized (monitor()) 916 { 917 check_orphaned(); 918 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null; 919 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().add_element_user(SERVICEREF$16); 920 return target; 921 } 922 } 923 924 /** 925 * Removes the ith "service-ref" element 926 */ 927 public void removeServiceRef(int i) 928 { 929 synchronized (monitor()) 930 { 931 check_orphaned(); 932 get_store().remove_element(SERVICEREF$16, i); 933 } 934 } 935 936 /** 937 * Gets array of all "resource-ref" elements 938 */ 939 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] getResourceRefArray() 940 { 941 synchronized (monitor()) 942 { 943 check_orphaned(); 944 java.util.List targetList = new java.util.ArrayList(); 945 get_store().find_all_element_users(RESOURCEREF$18, targetList); 946 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[targetList.size()]; 947 targetList.toArray(result); 948 return result; 949 } 950 } 951 952 /** 953 * Gets ith "resource-ref" element 954 */ 955 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType getResourceRefArray(int i) 956 { 957 synchronized (monitor()) 958 { 959 check_orphaned(); 960 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 961 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$18, i); 962 if (target == null) 963 { 964 throw new IndexOutOfBoundsException(); 965 } 966 return target; 967 } 968 } 969 970 /** 971 * Returns number of "resource-ref" element 972 */ 973 public int sizeOfResourceRefArray() 974 { 975 synchronized (monitor()) 976 { 977 check_orphaned(); 978 return get_store().count_elements(RESOURCEREF$18); 979 } 980 } 981 982 /** 983 * Sets array of all "resource-ref" element 984 */ 985 public void setResourceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] resourceRefArray) 986 { 987 synchronized (monitor()) 988 { 989 check_orphaned(); 990 arraySetterHelper(resourceRefArray, RESOURCEREF$18); 991 } 992 } 993 994 /** 995 * Sets ith "resource-ref" element 996 */ 997 public void setResourceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType resourceRef) 998 { 999 synchronized (monitor()) 1000 { 1001 check_orphaned(); 1002 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 1003 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$18, i); 1004 if (target == null) 1005 { 1006 throw new IndexOutOfBoundsException(); 1007 } 1008 target.set(resourceRef); 1009 } 1010 } 1011 1012 /** 1013 * Inserts and returns a new empty value (as xml) as the ith "resource-ref" element 1014 */ 1015 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType insertNewResourceRef(int i) 1016 { 1017 synchronized (monitor()) 1018 { 1019 check_orphaned(); 1020 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 1021 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().insert_element_user(RESOURCEREF$18, i); 1022 return target; 1023 } 1024 } 1025 1026 /** 1027 * Appends and returns a new empty value (as xml) as the last "resource-ref" element 1028 */ 1029 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType addNewResourceRef() 1030 { 1031 synchronized (monitor()) 1032 { 1033 check_orphaned(); 1034 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null; 1035 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().add_element_user(RESOURCEREF$18); 1036 return target; 1037 } 1038 } 1039 1040 /** 1041 * Removes the ith "resource-ref" element 1042 */ 1043 public void removeResourceRef(int i) 1044 { 1045 synchronized (monitor()) 1046 { 1047 check_orphaned(); 1048 get_store().remove_element(RESOURCEREF$18, i); 1049 } 1050 } 1051 1052 /** 1053 * Gets array of all "resource-env-ref" elements 1054 */ 1055 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] getResourceEnvRefArray() 1056 { 1057 synchronized (monitor()) 1058 { 1059 check_orphaned(); 1060 java.util.List targetList = new java.util.ArrayList(); 1061 get_store().find_all_element_users(RESOURCEENVREF$20, targetList); 1062 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[targetList.size()]; 1063 targetList.toArray(result); 1064 return result; 1065 } 1066 } 1067 1068 /** 1069 * Gets ith "resource-env-ref" element 1070 */ 1071 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType getResourceEnvRefArray(int i) 1072 { 1073 synchronized (monitor()) 1074 { 1075 check_orphaned(); 1076 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 1077 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$20, i); 1078 if (target == null) 1079 { 1080 throw new IndexOutOfBoundsException(); 1081 } 1082 return target; 1083 } 1084 } 1085 1086 /** 1087 * Returns number of "resource-env-ref" element 1088 */ 1089 public int sizeOfResourceEnvRefArray() 1090 { 1091 synchronized (monitor()) 1092 { 1093 check_orphaned(); 1094 return get_store().count_elements(RESOURCEENVREF$20); 1095 } 1096 } 1097 1098 /** 1099 * Sets array of all "resource-env-ref" element 1100 */ 1101 public void setResourceEnvRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] resourceEnvRefArray) 1102 { 1103 synchronized (monitor()) 1104 { 1105 check_orphaned(); 1106 arraySetterHelper(resourceEnvRefArray, RESOURCEENVREF$20); 1107 } 1108 } 1109 1110 /** 1111 * Sets ith "resource-env-ref" element 1112 */ 1113 public void setResourceEnvRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType resourceEnvRef) 1114 { 1115 synchronized (monitor()) 1116 { 1117 check_orphaned(); 1118 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 1119 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$20, i); 1120 if (target == null) 1121 { 1122 throw new IndexOutOfBoundsException(); 1123 } 1124 target.set(resourceEnvRef); 1125 } 1126 } 1127 1128 /** 1129 * Inserts and returns a new empty value (as xml) as the ith "resource-env-ref" element 1130 */ 1131 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType insertNewResourceEnvRef(int i) 1132 { 1133 synchronized (monitor()) 1134 { 1135 check_orphaned(); 1136 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 1137 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().insert_element_user(RESOURCEENVREF$20, i); 1138 return target; 1139 } 1140 } 1141 1142 /** 1143 * Appends and returns a new empty value (as xml) as the last "resource-env-ref" element 1144 */ 1145 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType addNewResourceEnvRef() 1146 { 1147 synchronized (monitor()) 1148 { 1149 check_orphaned(); 1150 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null; 1151 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().add_element_user(RESOURCEENVREF$20); 1152 return target; 1153 } 1154 } 1155 1156 /** 1157 * Removes the ith "resource-env-ref" element 1158 */ 1159 public void removeResourceEnvRef(int i) 1160 { 1161 synchronized (monitor()) 1162 { 1163 check_orphaned(); 1164 get_store().remove_element(RESOURCEENVREF$20, i); 1165 } 1166 } 1167 1168 /** 1169 * Gets array of all "message-destination" elements 1170 */ 1171 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] getMessageDestinationArray() 1172 { 1173 synchronized (monitor()) 1174 { 1175 check_orphaned(); 1176 java.util.List targetList = new java.util.ArrayList(); 1177 get_store().find_all_element_users(MESSAGEDESTINATION$22, targetList); 1178 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[targetList.size()]; 1179 targetList.toArray(result); 1180 return result; 1181 } 1182 } 1183 1184 /** 1185 * Gets ith "message-destination" element 1186 */ 1187 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType getMessageDestinationArray(int i) 1188 { 1189 synchronized (monitor()) 1190 { 1191 check_orphaned(); 1192 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 1193 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$22, i); 1194 if (target == null) 1195 { 1196 throw new IndexOutOfBoundsException(); 1197 } 1198 return target; 1199 } 1200 } 1201 1202 /** 1203 * Returns number of "message-destination" element 1204 */ 1205 public int sizeOfMessageDestinationArray() 1206 { 1207 synchronized (monitor()) 1208 { 1209 check_orphaned(); 1210 return get_store().count_elements(MESSAGEDESTINATION$22); 1211 } 1212 } 1213 1214 /** 1215 * Sets array of all "message-destination" element 1216 */ 1217 public void setMessageDestinationArray(org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] messageDestinationArray) 1218 { 1219 synchronized (monitor()) 1220 { 1221 check_orphaned(); 1222 arraySetterHelper(messageDestinationArray, MESSAGEDESTINATION$22); 1223 } 1224 } 1225 1226 /** 1227 * Sets ith "message-destination" element 1228 */ 1229 public void setMessageDestinationArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType messageDestination) 1230 { 1231 synchronized (monitor()) 1232 { 1233 check_orphaned(); 1234 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 1235 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$22, i); 1236 if (target == null) 1237 { 1238 throw new IndexOutOfBoundsException(); 1239 } 1240 target.set(messageDestination); 1241 } 1242 } 1243 1244 /** 1245 * Inserts and returns a new empty value (as xml) as the ith "message-destination" element 1246 */ 1247 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType insertNewMessageDestination(int i) 1248 { 1249 synchronized (monitor()) 1250 { 1251 check_orphaned(); 1252 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 1253 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().insert_element_user(MESSAGEDESTINATION$22, i); 1254 return target; 1255 } 1256 } 1257 1258 /** 1259 * Appends and returns a new empty value (as xml) as the last "message-destination" element 1260 */ 1261 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType addNewMessageDestination() 1262 { 1263 synchronized (monitor()) 1264 { 1265 check_orphaned(); 1266 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null; 1267 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().add_element_user(MESSAGEDESTINATION$22); 1268 return target; 1269 } 1270 } 1271 1272 /** 1273 * Removes the ith "message-destination" element 1274 */ 1275 public void removeMessageDestination(int i) 1276 { 1277 synchronized (monitor()) 1278 { 1279 check_orphaned(); 1280 get_store().remove_element(MESSAGEDESTINATION$22, i); 1281 } 1282 } 1283 1284 /** 1285 * Gets the "security-realm-name" element 1286 */ 1287 public java.lang.String getSecurityRealmName() 1288 { 1289 synchronized (monitor()) 1290 { 1291 check_orphaned(); 1292 org.apache.xmlbeans.SimpleValue target = null; 1293 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECURITYREALMNAME$24, 0); 1294 if (target == null) 1295 { 1296 return null; 1297 } 1298 return target.getStringValue(); 1299 } 1300 } 1301 1302 /** 1303 * Gets (as xml) the "security-realm-name" element 1304 */ 1305 public org.apache.xmlbeans.XmlString xgetSecurityRealmName() 1306 { 1307 synchronized (monitor()) 1308 { 1309 check_orphaned(); 1310 org.apache.xmlbeans.XmlString target = null; 1311 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECURITYREALMNAME$24, 0); 1312 return target; 1313 } 1314 } 1315 1316 /** 1317 * True if has "security-realm-name" element 1318 */ 1319 public boolean isSetSecurityRealmName() 1320 { 1321 synchronized (monitor()) 1322 { 1323 check_orphaned(); 1324 return get_store().count_elements(SECURITYREALMNAME$24) != 0; 1325 } 1326 } 1327 1328 /** 1329 * Sets the "security-realm-name" element 1330 */ 1331 public void setSecurityRealmName(java.lang.String securityRealmName) 1332 { 1333 synchronized (monitor()) 1334 { 1335 check_orphaned(); 1336 org.apache.xmlbeans.SimpleValue target = null; 1337 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECURITYREALMNAME$24, 0); 1338 if (target == null) 1339 { 1340 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SECURITYREALMNAME$24); 1341 } 1342 target.setStringValue(securityRealmName); 1343 } 1344 } 1345 1346 /** 1347 * Sets (as xml) the "security-realm-name" element 1348 */ 1349 public void xsetSecurityRealmName(org.apache.xmlbeans.XmlString securityRealmName) 1350 { 1351 synchronized (monitor()) 1352 { 1353 check_orphaned(); 1354 org.apache.xmlbeans.XmlString target = null; 1355 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECURITYREALMNAME$24, 0); 1356 if (target == null) 1357 { 1358 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SECURITYREALMNAME$24); 1359 } 1360 target.set(securityRealmName); 1361 } 1362 } 1363 1364 /** 1365 * Unsets the "security-realm-name" element 1366 */ 1367 public void unsetSecurityRealmName() 1368 { 1369 synchronized (monitor()) 1370 { 1371 check_orphaned(); 1372 get_store().remove_element(SECURITYREALMNAME$24, 0); 1373 } 1374 } 1375 1376 /** 1377 * Gets the "security" element 1378 */ 1379 public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType getSecurity() 1380 { 1381 synchronized (monitor()) 1382 { 1383 check_orphaned(); 1384 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null; 1385 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().find_element_user(SECURITY$26, 0); 1386 if (target == null) 1387 { 1388 return null; 1389 } 1390 return target; 1391 } 1392 } 1393 1394 /** 1395 * True if has "security" element 1396 */ 1397 public boolean isSetSecurity() 1398 { 1399 synchronized (monitor()) 1400 { 1401 check_orphaned(); 1402 return get_store().count_elements(SECURITY$26) != 0; 1403 } 1404 } 1405 1406 /** 1407 * Sets the "security" element 1408 */ 1409 public void setSecurity(org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType security) 1410 { 1411 synchronized (monitor()) 1412 { 1413 check_orphaned(); 1414 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null; 1415 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().find_element_user(SECURITY$26, 0); 1416 if (target == null) 1417 { 1418 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().add_element_user(SECURITY$26); 1419 } 1420 target.set(security); 1421 } 1422 } 1423 1424 /** 1425 * Appends and returns a new empty "security" element 1426 */ 1427 public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType addNewSecurity() 1428 { 1429 synchronized (monitor()) 1430 { 1431 check_orphaned(); 1432 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null; 1433 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().add_element_user(SECURITY$26); 1434 return target; 1435 } 1436 } 1437 1438 /** 1439 * Unsets the "security" element 1440 */ 1441 public void unsetSecurity() 1442 { 1443 synchronized (monitor()) 1444 { 1445 check_orphaned(); 1446 get_store().remove_element(SECURITY$26, 0); 1447 } 1448 } 1449 1450 /** 1451 * Gets array of all "service" elements 1452 */ 1453 public org.apache.geronimo.deployment.xbeans.AbstractServiceType[] getServiceArray() 1454 { 1455 synchronized (monitor()) 1456 { 1457 check_orphaned(); 1458 java.util.List targetList = new java.util.ArrayList(); 1459 get_store().find_all_element_users(SERVICE$29, targetList); 1460 org.apache.geronimo.deployment.xbeans.AbstractServiceType[] result = new org.apache.geronimo.deployment.xbeans.AbstractServiceType[targetList.size()]; 1461 targetList.toArray(result); 1462 return result; 1463 } 1464 } 1465 1466 /** 1467 * Gets ith "service" element 1468 */ 1469 public org.apache.geronimo.deployment.xbeans.AbstractServiceType getServiceArray(int i) 1470 { 1471 synchronized (monitor()) 1472 { 1473 check_orphaned(); 1474 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 1475 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$29, i); 1476 if (target == null) 1477 { 1478 throw new IndexOutOfBoundsException(); 1479 } 1480 return target; 1481 } 1482 } 1483 1484 /** 1485 * Returns number of "service" element 1486 */ 1487 public int sizeOfServiceArray() 1488 { 1489 synchronized (monitor()) 1490 { 1491 check_orphaned(); 1492 return get_store().count_elements(SERVICE$29); 1493 } 1494 } 1495 1496 /** 1497 * Sets array of all "service" element 1498 */ 1499 public void setServiceArray(org.apache.geronimo.deployment.xbeans.AbstractServiceType[] serviceArray) 1500 { 1501 synchronized (monitor()) 1502 { 1503 check_orphaned(); 1504 arraySetterHelper(serviceArray, SERVICE$28, SERVICE$29); 1505 } 1506 } 1507 1508 /** 1509 * Sets ith "service" element 1510 */ 1511 public void setServiceArray(int i, org.apache.geronimo.deployment.xbeans.AbstractServiceType service) 1512 { 1513 synchronized (monitor()) 1514 { 1515 check_orphaned(); 1516 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 1517 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$29, i); 1518 if (target == null) 1519 { 1520 throw new IndexOutOfBoundsException(); 1521 } 1522 target.set(service); 1523 } 1524 } 1525 1526 /** 1527 * Inserts and returns a new empty value (as xml) as the ith "service" element 1528 */ 1529 public org.apache.geronimo.deployment.xbeans.AbstractServiceType insertNewService(int i) 1530 { 1531 synchronized (monitor()) 1532 { 1533 check_orphaned(); 1534 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 1535 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().insert_element_user(SERVICE$29, SERVICE$28, i); 1536 return target; 1537 } 1538 } 1539 1540 /** 1541 * Appends and returns a new empty value (as xml) as the last "service" element 1542 */ 1543 public org.apache.geronimo.deployment.xbeans.AbstractServiceType addNewService() 1544 { 1545 synchronized (monitor()) 1546 { 1547 check_orphaned(); 1548 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null; 1549 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().add_element_user(SERVICE$28); 1550 return target; 1551 } 1552 } 1553 1554 /** 1555 * Removes the ith "service" element 1556 */ 1557 public void removeService(int i) 1558 { 1559 synchronized (monitor()) 1560 { 1561 check_orphaned(); 1562 get_store().remove_element(SERVICE$29, i); 1563 } 1564 } 1565 1566 /** 1567 * Gets array of all "persistence" elements 1568 */ 1569 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] getPersistenceArray() 1570 { 1571 synchronized (monitor()) 1572 { 1573 check_orphaned(); 1574 java.util.List targetList = new java.util.ArrayList(); 1575 get_store().find_all_element_users(PERSISTENCE$30, targetList); 1576 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] result = new org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[targetList.size()]; 1577 targetList.toArray(result); 1578 return result; 1579 } 1580 } 1581 1582 /** 1583 * Gets ith "persistence" element 1584 */ 1585 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence getPersistenceArray(int i) 1586 { 1587 synchronized (monitor()) 1588 { 1589 check_orphaned(); 1590 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null; 1591 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().find_element_user(PERSISTENCE$30, i); 1592 if (target == null) 1593 { 1594 throw new IndexOutOfBoundsException(); 1595 } 1596 return target; 1597 } 1598 } 1599 1600 /** 1601 * Returns number of "persistence" element 1602 */ 1603 public int sizeOfPersistenceArray() 1604 { 1605 synchronized (monitor()) 1606 { 1607 check_orphaned(); 1608 return get_store().count_elements(PERSISTENCE$30); 1609 } 1610 } 1611 1612 /** 1613 * Sets array of all "persistence" element 1614 */ 1615 public void setPersistenceArray(org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] persistenceArray) 1616 { 1617 synchronized (monitor()) 1618 { 1619 check_orphaned(); 1620 arraySetterHelper(persistenceArray, PERSISTENCE$30); 1621 } 1622 } 1623 1624 /** 1625 * Sets ith "persistence" element 1626 */ 1627 public void setPersistenceArray(int i, org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence persistence) 1628 { 1629 synchronized (monitor()) 1630 { 1631 check_orphaned(); 1632 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null; 1633 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().find_element_user(PERSISTENCE$30, i); 1634 if (target == null) 1635 { 1636 throw new IndexOutOfBoundsException(); 1637 } 1638 target.set(persistence); 1639 } 1640 } 1641 1642 /** 1643 * Inserts and returns a new empty value (as xml) as the ith "persistence" element 1644 */ 1645 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence insertNewPersistence(int i) 1646 { 1647 synchronized (monitor()) 1648 { 1649 check_orphaned(); 1650 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null; 1651 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().insert_element_user(PERSISTENCE$30, i); 1652 return target; 1653 } 1654 } 1655 1656 /** 1657 * Appends and returns a new empty value (as xml) as the last "persistence" element 1658 */ 1659 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence addNewPersistence() 1660 { 1661 synchronized (monitor()) 1662 { 1663 check_orphaned(); 1664 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null; 1665 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().add_element_user(PERSISTENCE$30); 1666 return target; 1667 } 1668 } 1669 1670 /** 1671 * Removes the ith "persistence" element 1672 */ 1673 public void removePersistence(int i) 1674 { 1675 synchronized (monitor()) 1676 { 1677 check_orphaned(); 1678 get_store().remove_element(PERSISTENCE$30, i); 1679 } 1680 } 1681 }