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