001 /* 002 * XML Type: singlepoolType 003 * Namespace: http://geronimo.apache.org/xml/ns/j2ee/connector-1.2 004 * Java type: org.apache.geronimo.xbeans.geronimo.GerSinglepoolType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.impl; 009 /** 010 * An XML singlepoolType(@http://geronimo.apache.org/xml/ns/j2ee/connector-1.2). 011 * 012 * This is a complex type. 013 */ 014 public class GerSinglepoolTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.GerSinglepoolType 015 { 016 017 public GerSinglepoolTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName MAXSIZE$0 = 023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/connector-1.2", "max-size"); 024 private static final javax.xml.namespace.QName MINSIZE$2 = 025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/connector-1.2", "min-size"); 026 private static final javax.xml.namespace.QName BLOCKINGTIMEOUTMILLISECONDS$4 = 027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/connector-1.2", "blocking-timeout-milliseconds"); 028 private static final javax.xml.namespace.QName IDLETIMEOUTMINUTES$6 = 029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/connector-1.2", "idle-timeout-minutes"); 030 private static final javax.xml.namespace.QName MATCHONE$8 = 031 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/connector-1.2", "match-one"); 032 private static final javax.xml.namespace.QName MATCHALL$10 = 033 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/connector-1.2", "match-all"); 034 private static final javax.xml.namespace.QName SELECTONEASSUMEMATCH$12 = 035 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/connector-1.2", "select-one-assume-match"); 036 037 038 /** 039 * Gets the "max-size" element 040 */ 041 public int getMaxSize() 042 { 043 synchronized (monitor()) 044 { 045 check_orphaned(); 046 org.apache.xmlbeans.SimpleValue target = null; 047 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXSIZE$0, 0); 048 if (target == null) 049 { 050 return 0; 051 } 052 return target.getIntValue(); 053 } 054 } 055 056 /** 057 * Gets (as xml) the "max-size" element 058 */ 059 public org.apache.xmlbeans.XmlInt xgetMaxSize() 060 { 061 synchronized (monitor()) 062 { 063 check_orphaned(); 064 org.apache.xmlbeans.XmlInt target = null; 065 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MAXSIZE$0, 0); 066 return target; 067 } 068 } 069 070 /** 071 * True if has "max-size" element 072 */ 073 public boolean isSetMaxSize() 074 { 075 synchronized (monitor()) 076 { 077 check_orphaned(); 078 return get_store().count_elements(MAXSIZE$0) != 0; 079 } 080 } 081 082 /** 083 * Sets the "max-size" element 084 */ 085 public void setMaxSize(int maxSize) 086 { 087 synchronized (monitor()) 088 { 089 check_orphaned(); 090 org.apache.xmlbeans.SimpleValue target = null; 091 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXSIZE$0, 0); 092 if (target == null) 093 { 094 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXSIZE$0); 095 } 096 target.setIntValue(maxSize); 097 } 098 } 099 100 /** 101 * Sets (as xml) the "max-size" element 102 */ 103 public void xsetMaxSize(org.apache.xmlbeans.XmlInt maxSize) 104 { 105 synchronized (monitor()) 106 { 107 check_orphaned(); 108 org.apache.xmlbeans.XmlInt target = null; 109 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MAXSIZE$0, 0); 110 if (target == null) 111 { 112 target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(MAXSIZE$0); 113 } 114 target.set(maxSize); 115 } 116 } 117 118 /** 119 * Unsets the "max-size" element 120 */ 121 public void unsetMaxSize() 122 { 123 synchronized (monitor()) 124 { 125 check_orphaned(); 126 get_store().remove_element(MAXSIZE$0, 0); 127 } 128 } 129 130 /** 131 * Gets the "min-size" element 132 */ 133 public int getMinSize() 134 { 135 synchronized (monitor()) 136 { 137 check_orphaned(); 138 org.apache.xmlbeans.SimpleValue target = null; 139 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINSIZE$2, 0); 140 if (target == null) 141 { 142 return 0; 143 } 144 return target.getIntValue(); 145 } 146 } 147 148 /** 149 * Gets (as xml) the "min-size" element 150 */ 151 public org.apache.xmlbeans.XmlInt xgetMinSize() 152 { 153 synchronized (monitor()) 154 { 155 check_orphaned(); 156 org.apache.xmlbeans.XmlInt target = null; 157 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MINSIZE$2, 0); 158 return target; 159 } 160 } 161 162 /** 163 * True if has "min-size" element 164 */ 165 public boolean isSetMinSize() 166 { 167 synchronized (monitor()) 168 { 169 check_orphaned(); 170 return get_store().count_elements(MINSIZE$2) != 0; 171 } 172 } 173 174 /** 175 * Sets the "min-size" element 176 */ 177 public void setMinSize(int minSize) 178 { 179 synchronized (monitor()) 180 { 181 check_orphaned(); 182 org.apache.xmlbeans.SimpleValue target = null; 183 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINSIZE$2, 0); 184 if (target == null) 185 { 186 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MINSIZE$2); 187 } 188 target.setIntValue(minSize); 189 } 190 } 191 192 /** 193 * Sets (as xml) the "min-size" element 194 */ 195 public void xsetMinSize(org.apache.xmlbeans.XmlInt minSize) 196 { 197 synchronized (monitor()) 198 { 199 check_orphaned(); 200 org.apache.xmlbeans.XmlInt target = null; 201 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MINSIZE$2, 0); 202 if (target == null) 203 { 204 target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(MINSIZE$2); 205 } 206 target.set(minSize); 207 } 208 } 209 210 /** 211 * Unsets the "min-size" element 212 */ 213 public void unsetMinSize() 214 { 215 synchronized (monitor()) 216 { 217 check_orphaned(); 218 get_store().remove_element(MINSIZE$2, 0); 219 } 220 } 221 222 /** 223 * Gets the "blocking-timeout-milliseconds" element 224 */ 225 public int getBlockingTimeoutMilliseconds() 226 { 227 synchronized (monitor()) 228 { 229 check_orphaned(); 230 org.apache.xmlbeans.SimpleValue target = null; 231 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BLOCKINGTIMEOUTMILLISECONDS$4, 0); 232 if (target == null) 233 { 234 return 0; 235 } 236 return target.getIntValue(); 237 } 238 } 239 240 /** 241 * Gets (as xml) the "blocking-timeout-milliseconds" element 242 */ 243 public org.apache.xmlbeans.XmlInt xgetBlockingTimeoutMilliseconds() 244 { 245 synchronized (monitor()) 246 { 247 check_orphaned(); 248 org.apache.xmlbeans.XmlInt target = null; 249 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(BLOCKINGTIMEOUTMILLISECONDS$4, 0); 250 return target; 251 } 252 } 253 254 /** 255 * True if has "blocking-timeout-milliseconds" element 256 */ 257 public boolean isSetBlockingTimeoutMilliseconds() 258 { 259 synchronized (monitor()) 260 { 261 check_orphaned(); 262 return get_store().count_elements(BLOCKINGTIMEOUTMILLISECONDS$4) != 0; 263 } 264 } 265 266 /** 267 * Sets the "blocking-timeout-milliseconds" element 268 */ 269 public void setBlockingTimeoutMilliseconds(int blockingTimeoutMilliseconds) 270 { 271 synchronized (monitor()) 272 { 273 check_orphaned(); 274 org.apache.xmlbeans.SimpleValue target = null; 275 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BLOCKINGTIMEOUTMILLISECONDS$4, 0); 276 if (target == null) 277 { 278 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BLOCKINGTIMEOUTMILLISECONDS$4); 279 } 280 target.setIntValue(blockingTimeoutMilliseconds); 281 } 282 } 283 284 /** 285 * Sets (as xml) the "blocking-timeout-milliseconds" element 286 */ 287 public void xsetBlockingTimeoutMilliseconds(org.apache.xmlbeans.XmlInt blockingTimeoutMilliseconds) 288 { 289 synchronized (monitor()) 290 { 291 check_orphaned(); 292 org.apache.xmlbeans.XmlInt target = null; 293 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(BLOCKINGTIMEOUTMILLISECONDS$4, 0); 294 if (target == null) 295 { 296 target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(BLOCKINGTIMEOUTMILLISECONDS$4); 297 } 298 target.set(blockingTimeoutMilliseconds); 299 } 300 } 301 302 /** 303 * Unsets the "blocking-timeout-milliseconds" element 304 */ 305 public void unsetBlockingTimeoutMilliseconds() 306 { 307 synchronized (monitor()) 308 { 309 check_orphaned(); 310 get_store().remove_element(BLOCKINGTIMEOUTMILLISECONDS$4, 0); 311 } 312 } 313 314 /** 315 * Gets the "idle-timeout-minutes" element 316 */ 317 public int getIdleTimeoutMinutes() 318 { 319 synchronized (monitor()) 320 { 321 check_orphaned(); 322 org.apache.xmlbeans.SimpleValue target = null; 323 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDLETIMEOUTMINUTES$6, 0); 324 if (target == null) 325 { 326 return 0; 327 } 328 return target.getIntValue(); 329 } 330 } 331 332 /** 333 * Gets (as xml) the "idle-timeout-minutes" element 334 */ 335 public org.apache.xmlbeans.XmlInt xgetIdleTimeoutMinutes() 336 { 337 synchronized (monitor()) 338 { 339 check_orphaned(); 340 org.apache.xmlbeans.XmlInt target = null; 341 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(IDLETIMEOUTMINUTES$6, 0); 342 return target; 343 } 344 } 345 346 /** 347 * True if has "idle-timeout-minutes" element 348 */ 349 public boolean isSetIdleTimeoutMinutes() 350 { 351 synchronized (monitor()) 352 { 353 check_orphaned(); 354 return get_store().count_elements(IDLETIMEOUTMINUTES$6) != 0; 355 } 356 } 357 358 /** 359 * Sets the "idle-timeout-minutes" element 360 */ 361 public void setIdleTimeoutMinutes(int idleTimeoutMinutes) 362 { 363 synchronized (monitor()) 364 { 365 check_orphaned(); 366 org.apache.xmlbeans.SimpleValue target = null; 367 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDLETIMEOUTMINUTES$6, 0); 368 if (target == null) 369 { 370 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDLETIMEOUTMINUTES$6); 371 } 372 target.setIntValue(idleTimeoutMinutes); 373 } 374 } 375 376 /** 377 * Sets (as xml) the "idle-timeout-minutes" element 378 */ 379 public void xsetIdleTimeoutMinutes(org.apache.xmlbeans.XmlInt idleTimeoutMinutes) 380 { 381 synchronized (monitor()) 382 { 383 check_orphaned(); 384 org.apache.xmlbeans.XmlInt target = null; 385 target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(IDLETIMEOUTMINUTES$6, 0); 386 if (target == null) 387 { 388 target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(IDLETIMEOUTMINUTES$6); 389 } 390 target.set(idleTimeoutMinutes); 391 } 392 } 393 394 /** 395 * Unsets the "idle-timeout-minutes" element 396 */ 397 public void unsetIdleTimeoutMinutes() 398 { 399 synchronized (monitor()) 400 { 401 check_orphaned(); 402 get_store().remove_element(IDLETIMEOUTMINUTES$6, 0); 403 } 404 } 405 406 /** 407 * Gets the "match-one" element 408 */ 409 public org.apache.geronimo.xbeans.geronimo.GerEmptyType getMatchOne() 410 { 411 synchronized (monitor()) 412 { 413 check_orphaned(); 414 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null; 415 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(MATCHONE$8, 0); 416 if (target == null) 417 { 418 return null; 419 } 420 return target; 421 } 422 } 423 424 /** 425 * True if has "match-one" element 426 */ 427 public boolean isSetMatchOne() 428 { 429 synchronized (monitor()) 430 { 431 check_orphaned(); 432 return get_store().count_elements(MATCHONE$8) != 0; 433 } 434 } 435 436 /** 437 * Sets the "match-one" element 438 */ 439 public void setMatchOne(org.apache.geronimo.xbeans.geronimo.GerEmptyType matchOne) 440 { 441 synchronized (monitor()) 442 { 443 check_orphaned(); 444 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null; 445 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(MATCHONE$8, 0); 446 if (target == null) 447 { 448 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(MATCHONE$8); 449 } 450 target.set(matchOne); 451 } 452 } 453 454 /** 455 * Appends and returns a new empty "match-one" element 456 */ 457 public org.apache.geronimo.xbeans.geronimo.GerEmptyType addNewMatchOne() 458 { 459 synchronized (monitor()) 460 { 461 check_orphaned(); 462 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null; 463 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(MATCHONE$8); 464 return target; 465 } 466 } 467 468 /** 469 * Unsets the "match-one" element 470 */ 471 public void unsetMatchOne() 472 { 473 synchronized (monitor()) 474 { 475 check_orphaned(); 476 get_store().remove_element(MATCHONE$8, 0); 477 } 478 } 479 480 /** 481 * Gets the "match-all" element 482 */ 483 public org.apache.geronimo.xbeans.geronimo.GerEmptyType getMatchAll() 484 { 485 synchronized (monitor()) 486 { 487 check_orphaned(); 488 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null; 489 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(MATCHALL$10, 0); 490 if (target == null) 491 { 492 return null; 493 } 494 return target; 495 } 496 } 497 498 /** 499 * True if has "match-all" element 500 */ 501 public boolean isSetMatchAll() 502 { 503 synchronized (monitor()) 504 { 505 check_orphaned(); 506 return get_store().count_elements(MATCHALL$10) != 0; 507 } 508 } 509 510 /** 511 * Sets the "match-all" element 512 */ 513 public void setMatchAll(org.apache.geronimo.xbeans.geronimo.GerEmptyType matchAll) 514 { 515 synchronized (monitor()) 516 { 517 check_orphaned(); 518 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null; 519 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(MATCHALL$10, 0); 520 if (target == null) 521 { 522 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(MATCHALL$10); 523 } 524 target.set(matchAll); 525 } 526 } 527 528 /** 529 * Appends and returns a new empty "match-all" element 530 */ 531 public org.apache.geronimo.xbeans.geronimo.GerEmptyType addNewMatchAll() 532 { 533 synchronized (monitor()) 534 { 535 check_orphaned(); 536 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null; 537 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(MATCHALL$10); 538 return target; 539 } 540 } 541 542 /** 543 * Unsets the "match-all" element 544 */ 545 public void unsetMatchAll() 546 { 547 synchronized (monitor()) 548 { 549 check_orphaned(); 550 get_store().remove_element(MATCHALL$10, 0); 551 } 552 } 553 554 /** 555 * Gets the "select-one-assume-match" element 556 */ 557 public org.apache.geronimo.xbeans.geronimo.GerEmptyType getSelectOneAssumeMatch() 558 { 559 synchronized (monitor()) 560 { 561 check_orphaned(); 562 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null; 563 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(SELECTONEASSUMEMATCH$12, 0); 564 if (target == null) 565 { 566 return null; 567 } 568 return target; 569 } 570 } 571 572 /** 573 * True if has "select-one-assume-match" element 574 */ 575 public boolean isSetSelectOneAssumeMatch() 576 { 577 synchronized (monitor()) 578 { 579 check_orphaned(); 580 return get_store().count_elements(SELECTONEASSUMEMATCH$12) != 0; 581 } 582 } 583 584 /** 585 * Sets the "select-one-assume-match" element 586 */ 587 public void setSelectOneAssumeMatch(org.apache.geronimo.xbeans.geronimo.GerEmptyType selectOneAssumeMatch) 588 { 589 synchronized (monitor()) 590 { 591 check_orphaned(); 592 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null; 593 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().find_element_user(SELECTONEASSUMEMATCH$12, 0); 594 if (target == null) 595 { 596 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(SELECTONEASSUMEMATCH$12); 597 } 598 target.set(selectOneAssumeMatch); 599 } 600 } 601 602 /** 603 * Appends and returns a new empty "select-one-assume-match" element 604 */ 605 public org.apache.geronimo.xbeans.geronimo.GerEmptyType addNewSelectOneAssumeMatch() 606 { 607 synchronized (monitor()) 608 { 609 check_orphaned(); 610 org.apache.geronimo.xbeans.geronimo.GerEmptyType target = null; 611 target = (org.apache.geronimo.xbeans.geronimo.GerEmptyType)get_store().add_element_user(SELECTONEASSUMEMATCH$12); 612 return target; 613 } 614 } 615 616 /** 617 * Unsets the "select-one-assume-match" element 618 */ 619 public void unsetSelectOneAssumeMatch() 620 { 621 synchronized (monitor()) 622 { 623 check_orphaned(); 624 get_store().remove_element(SELECTONEASSUMEMATCH$12, 0); 625 } 626 } 627 }