001 /* 002 * XML Type: SSLType 003 * Namespace: http://openejb.apache.org/xml/ns/corba-tss-config-2.1 004 * Java type: org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.corba.xbeans.csiv2.tss.impl; 009 /** 010 * An XML SSLType(@http://openejb.apache.org/xml/ns/corba-tss-config-2.1). 011 * 012 * This is a complex type. 013 */ 014 public class TSSSSLTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType 015 { 016 017 public TSSSSLTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName DESCRIPTION$0 = 023 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "description"); 024 private static final javax.xml.namespace.QName SUPPORTS$2 = 025 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "supports"); 026 private static final javax.xml.namespace.QName REQUIRES$4 = 027 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "requires"); 028 private static final javax.xml.namespace.QName TRUSTEVERYONE$6 = 029 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "trustEveryone"); 030 private static final javax.xml.namespace.QName TRUSTNOONE$8 = 031 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "trustNoone"); 032 private static final javax.xml.namespace.QName TRUSTLIST$10 = 033 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "trustList"); 034 private static final javax.xml.namespace.QName PORT$12 = 035 new javax.xml.namespace.QName("", "port"); 036 private static final javax.xml.namespace.QName HOSTNAME$14 = 037 new javax.xml.namespace.QName("", "hostname"); 038 private static final javax.xml.namespace.QName HANDSHAKETIMEOUT$16 = 039 new javax.xml.namespace.QName("", "handshakeTimeout"); 040 041 042 /** 043 * Gets array of all "description" elements 044 */ 045 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType[] getDescriptionArray() 046 { 047 synchronized (monitor()) 048 { 049 check_orphaned(); 050 java.util.List targetList = new java.util.ArrayList(); 051 get_store().find_all_element_users(DESCRIPTION$0, targetList); 052 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType[] result = new org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType[targetList.size()]; 053 targetList.toArray(result); 054 return result; 055 } 056 } 057 058 /** 059 * Gets ith "description" element 060 */ 061 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType getDescriptionArray(int i) 062 { 063 synchronized (monitor()) 064 { 065 check_orphaned(); 066 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType target = null; 067 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType)get_store().find_element_user(DESCRIPTION$0, i); 068 if (target == null) 069 { 070 throw new IndexOutOfBoundsException(); 071 } 072 return target; 073 } 074 } 075 076 /** 077 * Returns number of "description" element 078 */ 079 public int sizeOfDescriptionArray() 080 { 081 synchronized (monitor()) 082 { 083 check_orphaned(); 084 return get_store().count_elements(DESCRIPTION$0); 085 } 086 } 087 088 /** 089 * Sets array of all "description" element 090 */ 091 public void setDescriptionArray(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType[] descriptionArray) 092 { 093 synchronized (monitor()) 094 { 095 check_orphaned(); 096 arraySetterHelper(descriptionArray, DESCRIPTION$0); 097 } 098 } 099 100 /** 101 * Sets ith "description" element 102 */ 103 public void setDescriptionArray(int i, org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType description) 104 { 105 synchronized (monitor()) 106 { 107 check_orphaned(); 108 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType target = null; 109 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType)get_store().find_element_user(DESCRIPTION$0, i); 110 if (target == null) 111 { 112 throw new IndexOutOfBoundsException(); 113 } 114 target.set(description); 115 } 116 } 117 118 /** 119 * Inserts and returns a new empty value (as xml) as the ith "description" element 120 */ 121 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType insertNewDescription(int i) 122 { 123 synchronized (monitor()) 124 { 125 check_orphaned(); 126 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType target = null; 127 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType)get_store().insert_element_user(DESCRIPTION$0, i); 128 return target; 129 } 130 } 131 132 /** 133 * Appends and returns a new empty value (as xml) as the last "description" element 134 */ 135 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType addNewDescription() 136 { 137 synchronized (monitor()) 138 { 139 check_orphaned(); 140 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType target = null; 141 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType)get_store().add_element_user(DESCRIPTION$0); 142 return target; 143 } 144 } 145 146 /** 147 * Removes the ith "description" element 148 */ 149 public void removeDescription(int i) 150 { 151 synchronized (monitor()) 152 { 153 check_orphaned(); 154 get_store().remove_element(DESCRIPTION$0, i); 155 } 156 } 157 158 /** 159 * Gets the "supports" element 160 */ 161 public java.util.List getSupports() 162 { 163 synchronized (monitor()) 164 { 165 check_orphaned(); 166 org.apache.xmlbeans.SimpleValue target = null; 167 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUPPORTS$2, 0); 168 if (target == null) 169 { 170 return null; 171 } 172 return target.getListValue(); 173 } 174 } 175 176 /** 177 * Gets (as xml) the "supports" element 178 */ 179 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList xgetSupports() 180 { 181 synchronized (monitor()) 182 { 183 check_orphaned(); 184 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList target = null; 185 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList)get_store().find_element_user(SUPPORTS$2, 0); 186 return target; 187 } 188 } 189 190 /** 191 * Sets the "supports" element 192 */ 193 public void setSupports(java.util.List supports) 194 { 195 synchronized (monitor()) 196 { 197 check_orphaned(); 198 org.apache.xmlbeans.SimpleValue target = null; 199 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUPPORTS$2, 0); 200 if (target == null) 201 { 202 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUPPORTS$2); 203 } 204 target.setListValue(supports); 205 } 206 } 207 208 /** 209 * Sets (as xml) the "supports" element 210 */ 211 public void xsetSupports(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList supports) 212 { 213 synchronized (monitor()) 214 { 215 check_orphaned(); 216 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList target = null; 217 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList)get_store().find_element_user(SUPPORTS$2, 0); 218 if (target == null) 219 { 220 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList)get_store().add_element_user(SUPPORTS$2); 221 } 222 target.set(supports); 223 } 224 } 225 226 /** 227 * Gets the "requires" element 228 */ 229 public java.util.List getRequires() 230 { 231 synchronized (monitor()) 232 { 233 check_orphaned(); 234 org.apache.xmlbeans.SimpleValue target = null; 235 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUIRES$4, 0); 236 if (target == null) 237 { 238 return null; 239 } 240 return target.getListValue(); 241 } 242 } 243 244 /** 245 * Gets (as xml) the "requires" element 246 */ 247 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList xgetRequires() 248 { 249 synchronized (monitor()) 250 { 251 check_orphaned(); 252 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList target = null; 253 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList)get_store().find_element_user(REQUIRES$4, 0); 254 return target; 255 } 256 } 257 258 /** 259 * Sets the "requires" element 260 */ 261 public void setRequires(java.util.List requires) 262 { 263 synchronized (monitor()) 264 { 265 check_orphaned(); 266 org.apache.xmlbeans.SimpleValue target = null; 267 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUIRES$4, 0); 268 if (target == null) 269 { 270 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REQUIRES$4); 271 } 272 target.setListValue(requires); 273 } 274 } 275 276 /** 277 * Sets (as xml) the "requires" element 278 */ 279 public void xsetRequires(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList requires) 280 { 281 synchronized (monitor()) 282 { 283 check_orphaned(); 284 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList target = null; 285 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList)get_store().find_element_user(REQUIRES$4, 0); 286 if (target == null) 287 { 288 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSAssociationOptionList)get_store().add_element_user(REQUIRES$4); 289 } 290 target.set(requires); 291 } 292 } 293 294 /** 295 * Gets the "trustEveryone" element 296 */ 297 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType getTrustEveryone() 298 { 299 synchronized (monitor()) 300 { 301 check_orphaned(); 302 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType target = null; 303 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType)get_store().find_element_user(TRUSTEVERYONE$6, 0); 304 if (target == null) 305 { 306 return null; 307 } 308 return target; 309 } 310 } 311 312 /** 313 * True if has "trustEveryone" element 314 */ 315 public boolean isSetTrustEveryone() 316 { 317 synchronized (monitor()) 318 { 319 check_orphaned(); 320 return get_store().count_elements(TRUSTEVERYONE$6) != 0; 321 } 322 } 323 324 /** 325 * Sets the "trustEveryone" element 326 */ 327 public void setTrustEveryone(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType trustEveryone) 328 { 329 synchronized (monitor()) 330 { 331 check_orphaned(); 332 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType target = null; 333 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType)get_store().find_element_user(TRUSTEVERYONE$6, 0); 334 if (target == null) 335 { 336 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType)get_store().add_element_user(TRUSTEVERYONE$6); 337 } 338 target.set(trustEveryone); 339 } 340 } 341 342 /** 343 * Appends and returns a new empty "trustEveryone" element 344 */ 345 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType addNewTrustEveryone() 346 { 347 synchronized (monitor()) 348 { 349 check_orphaned(); 350 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType target = null; 351 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustEveryoneType)get_store().add_element_user(TRUSTEVERYONE$6); 352 return target; 353 } 354 } 355 356 /** 357 * Unsets the "trustEveryone" element 358 */ 359 public void unsetTrustEveryone() 360 { 361 synchronized (monitor()) 362 { 363 check_orphaned(); 364 get_store().remove_element(TRUSTEVERYONE$6, 0); 365 } 366 } 367 368 /** 369 * Gets the "trustNoone" element 370 */ 371 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType getTrustNoone() 372 { 373 synchronized (monitor()) 374 { 375 check_orphaned(); 376 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType target = null; 377 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType)get_store().find_element_user(TRUSTNOONE$8, 0); 378 if (target == null) 379 { 380 return null; 381 } 382 return target; 383 } 384 } 385 386 /** 387 * True if has "trustNoone" element 388 */ 389 public boolean isSetTrustNoone() 390 { 391 synchronized (monitor()) 392 { 393 check_orphaned(); 394 return get_store().count_elements(TRUSTNOONE$8) != 0; 395 } 396 } 397 398 /** 399 * Sets the "trustNoone" element 400 */ 401 public void setTrustNoone(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType trustNoone) 402 { 403 synchronized (monitor()) 404 { 405 check_orphaned(); 406 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType target = null; 407 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType)get_store().find_element_user(TRUSTNOONE$8, 0); 408 if (target == null) 409 { 410 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType)get_store().add_element_user(TRUSTNOONE$8); 411 } 412 target.set(trustNoone); 413 } 414 } 415 416 /** 417 * Appends and returns a new empty "trustNoone" element 418 */ 419 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType addNewTrustNoone() 420 { 421 synchronized (monitor()) 422 { 423 check_orphaned(); 424 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType target = null; 425 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSTrustNooneType)get_store().add_element_user(TRUSTNOONE$8); 426 return target; 427 } 428 } 429 430 /** 431 * Unsets the "trustNoone" element 432 */ 433 public void unsetTrustNoone() 434 { 435 synchronized (monitor()) 436 { 437 check_orphaned(); 438 get_store().remove_element(TRUSTNOONE$8, 0); 439 } 440 } 441 442 /** 443 * Gets the "trustList" element 444 */ 445 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList getTrustList() 446 { 447 synchronized (monitor()) 448 { 449 check_orphaned(); 450 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList target = null; 451 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList)get_store().find_element_user(TRUSTLIST$10, 0); 452 if (target == null) 453 { 454 return null; 455 } 456 return target; 457 } 458 } 459 460 /** 461 * True if has "trustList" element 462 */ 463 public boolean isSetTrustList() 464 { 465 synchronized (monitor()) 466 { 467 check_orphaned(); 468 return get_store().count_elements(TRUSTLIST$10) != 0; 469 } 470 } 471 472 /** 473 * Sets the "trustList" element 474 */ 475 public void setTrustList(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList trustList) 476 { 477 synchronized (monitor()) 478 { 479 check_orphaned(); 480 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList target = null; 481 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList)get_store().find_element_user(TRUSTLIST$10, 0); 482 if (target == null) 483 { 484 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList)get_store().add_element_user(TRUSTLIST$10); 485 } 486 target.set(trustList); 487 } 488 } 489 490 /** 491 * Appends and returns a new empty "trustList" element 492 */ 493 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList addNewTrustList() 494 { 495 synchronized (monitor()) 496 { 497 check_orphaned(); 498 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList target = null; 499 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList)get_store().add_element_user(TRUSTLIST$10); 500 return target; 501 } 502 } 503 504 /** 505 * Unsets the "trustList" element 506 */ 507 public void unsetTrustList() 508 { 509 synchronized (monitor()) 510 { 511 check_orphaned(); 512 get_store().remove_element(TRUSTLIST$10, 0); 513 } 514 } 515 516 /** 517 * Gets the "port" attribute 518 */ 519 public short getPort() 520 { 521 synchronized (monitor()) 522 { 523 check_orphaned(); 524 org.apache.xmlbeans.SimpleValue target = null; 525 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PORT$12); 526 if (target == null) 527 { 528 return 0; 529 } 530 return target.getShortValue(); 531 } 532 } 533 534 /** 535 * Gets (as xml) the "port" attribute 536 */ 537 public org.apache.xmlbeans.XmlShort xgetPort() 538 { 539 synchronized (monitor()) 540 { 541 check_orphaned(); 542 org.apache.xmlbeans.XmlShort target = null; 543 target = (org.apache.xmlbeans.XmlShort)get_store().find_attribute_user(PORT$12); 544 return target; 545 } 546 } 547 548 /** 549 * Sets the "port" attribute 550 */ 551 public void setPort(short port) 552 { 553 synchronized (monitor()) 554 { 555 check_orphaned(); 556 org.apache.xmlbeans.SimpleValue target = null; 557 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PORT$12); 558 if (target == null) 559 { 560 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PORT$12); 561 } 562 target.setShortValue(port); 563 } 564 } 565 566 /** 567 * Sets (as xml) the "port" attribute 568 */ 569 public void xsetPort(org.apache.xmlbeans.XmlShort port) 570 { 571 synchronized (monitor()) 572 { 573 check_orphaned(); 574 org.apache.xmlbeans.XmlShort target = null; 575 target = (org.apache.xmlbeans.XmlShort)get_store().find_attribute_user(PORT$12); 576 if (target == null) 577 { 578 target = (org.apache.xmlbeans.XmlShort)get_store().add_attribute_user(PORT$12); 579 } 580 target.set(port); 581 } 582 } 583 584 /** 585 * Gets the "hostname" attribute 586 */ 587 public java.lang.String getHostname() 588 { 589 synchronized (monitor()) 590 { 591 check_orphaned(); 592 org.apache.xmlbeans.SimpleValue target = null; 593 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HOSTNAME$14); 594 if (target == null) 595 { 596 return null; 597 } 598 return target.getStringValue(); 599 } 600 } 601 602 /** 603 * Gets (as xml) the "hostname" attribute 604 */ 605 public org.apache.xmlbeans.XmlString xgetHostname() 606 { 607 synchronized (monitor()) 608 { 609 check_orphaned(); 610 org.apache.xmlbeans.XmlString target = null; 611 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(HOSTNAME$14); 612 return target; 613 } 614 } 615 616 /** 617 * Sets the "hostname" attribute 618 */ 619 public void setHostname(java.lang.String hostname) 620 { 621 synchronized (monitor()) 622 { 623 check_orphaned(); 624 org.apache.xmlbeans.SimpleValue target = null; 625 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HOSTNAME$14); 626 if (target == null) 627 { 628 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(HOSTNAME$14); 629 } 630 target.setStringValue(hostname); 631 } 632 } 633 634 /** 635 * Sets (as xml) the "hostname" attribute 636 */ 637 public void xsetHostname(org.apache.xmlbeans.XmlString hostname) 638 { 639 synchronized (monitor()) 640 { 641 check_orphaned(); 642 org.apache.xmlbeans.XmlString target = null; 643 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(HOSTNAME$14); 644 if (target == null) 645 { 646 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(HOSTNAME$14); 647 } 648 target.set(hostname); 649 } 650 } 651 652 /** 653 * Gets the "handshakeTimeout" attribute 654 */ 655 public short getHandshakeTimeout() 656 { 657 synchronized (monitor()) 658 { 659 check_orphaned(); 660 org.apache.xmlbeans.SimpleValue target = null; 661 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HANDSHAKETIMEOUT$16); 662 if (target == null) 663 { 664 return 0; 665 } 666 return target.getShortValue(); 667 } 668 } 669 670 /** 671 * Gets (as xml) the "handshakeTimeout" attribute 672 */ 673 public org.apache.xmlbeans.XmlShort xgetHandshakeTimeout() 674 { 675 synchronized (monitor()) 676 { 677 check_orphaned(); 678 org.apache.xmlbeans.XmlShort target = null; 679 target = (org.apache.xmlbeans.XmlShort)get_store().find_attribute_user(HANDSHAKETIMEOUT$16); 680 return target; 681 } 682 } 683 684 /** 685 * True if has "handshakeTimeout" attribute 686 */ 687 public boolean isSetHandshakeTimeout() 688 { 689 synchronized (monitor()) 690 { 691 check_orphaned(); 692 return get_store().find_attribute_user(HANDSHAKETIMEOUT$16) != null; 693 } 694 } 695 696 /** 697 * Sets the "handshakeTimeout" attribute 698 */ 699 public void setHandshakeTimeout(short handshakeTimeout) 700 { 701 synchronized (monitor()) 702 { 703 check_orphaned(); 704 org.apache.xmlbeans.SimpleValue target = null; 705 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HANDSHAKETIMEOUT$16); 706 if (target == null) 707 { 708 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(HANDSHAKETIMEOUT$16); 709 } 710 target.setShortValue(handshakeTimeout); 711 } 712 } 713 714 /** 715 * Sets (as xml) the "handshakeTimeout" attribute 716 */ 717 public void xsetHandshakeTimeout(org.apache.xmlbeans.XmlShort handshakeTimeout) 718 { 719 synchronized (monitor()) 720 { 721 check_orphaned(); 722 org.apache.xmlbeans.XmlShort target = null; 723 target = (org.apache.xmlbeans.XmlShort)get_store().find_attribute_user(HANDSHAKETIMEOUT$16); 724 if (target == null) 725 { 726 target = (org.apache.xmlbeans.XmlShort)get_store().add_attribute_user(HANDSHAKETIMEOUT$16); 727 } 728 target.set(handshakeTimeout); 729 } 730 } 731 732 /** 733 * Unsets the "handshakeTimeout" attribute 734 */ 735 public void unsetHandshakeTimeout() 736 { 737 synchronized (monitor()) 738 { 739 check_orphaned(); 740 get_store().remove_attribute(HANDSHAKETIMEOUT$16); 741 } 742 } 743 /** 744 * An XML trustList(@http://openejb.apache.org/xml/ns/corba-tss-config-2.1). 745 * 746 * This is a complex type. 747 */ 748 public static class TrustListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSSLType.TrustList 749 { 750 751 public TrustListImpl(org.apache.xmlbeans.SchemaType sType) 752 { 753 super(sType); 754 } 755 756 private static final javax.xml.namespace.QName ENTITY$0 = 757 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-tss-config-2.1", "entity"); 758 759 760 /** 761 * Gets array of all "entity" elements 762 */ 763 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType[] getEntityArray() 764 { 765 synchronized (monitor()) 766 { 767 check_orphaned(); 768 java.util.List targetList = new java.util.ArrayList(); 769 get_store().find_all_element_users(ENTITY$0, targetList); 770 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType[] result = new org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType[targetList.size()]; 771 targetList.toArray(result); 772 return result; 773 } 774 } 775 776 /** 777 * Gets ith "entity" element 778 */ 779 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType getEntityArray(int i) 780 { 781 synchronized (monitor()) 782 { 783 check_orphaned(); 784 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType target = null; 785 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType)get_store().find_element_user(ENTITY$0, i); 786 if (target == null) 787 { 788 throw new IndexOutOfBoundsException(); 789 } 790 return target; 791 } 792 } 793 794 /** 795 * Returns number of "entity" element 796 */ 797 public int sizeOfEntityArray() 798 { 799 synchronized (monitor()) 800 { 801 check_orphaned(); 802 return get_store().count_elements(ENTITY$0); 803 } 804 } 805 806 /** 807 * Sets array of all "entity" element 808 */ 809 public void setEntityArray(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType[] entityArray) 810 { 811 synchronized (monitor()) 812 { 813 check_orphaned(); 814 arraySetterHelper(entityArray, ENTITY$0); 815 } 816 } 817 818 /** 819 * Sets ith "entity" element 820 */ 821 public void setEntityArray(int i, org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType entity) 822 { 823 synchronized (monitor()) 824 { 825 check_orphaned(); 826 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType target = null; 827 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType)get_store().find_element_user(ENTITY$0, i); 828 if (target == null) 829 { 830 throw new IndexOutOfBoundsException(); 831 } 832 target.set(entity); 833 } 834 } 835 836 /** 837 * Inserts and returns a new empty value (as xml) as the ith "entity" element 838 */ 839 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType insertNewEntity(int i) 840 { 841 synchronized (monitor()) 842 { 843 check_orphaned(); 844 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType target = null; 845 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType)get_store().insert_element_user(ENTITY$0, i); 846 return target; 847 } 848 } 849 850 /** 851 * Appends and returns a new empty value (as xml) as the last "entity" element 852 */ 853 public org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType addNewEntity() 854 { 855 synchronized (monitor()) 856 { 857 check_orphaned(); 858 org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType target = null; 859 target = (org.apache.geronimo.corba.xbeans.csiv2.tss.TSSEntityType)get_store().add_element_user(ENTITY$0); 860 return target; 861 } 862 } 863 864 /** 865 * Removes the ith "entity" element 866 */ 867 public void removeEntity(int i) 868 { 869 synchronized (monitor()) 870 { 871 check_orphaned(); 872 get_store().remove_element(ENTITY$0, i); 873 } 874 } 875 } 876 }