001 /* 002 * XML Type: resource-env-refType 003 * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2 004 * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.xbeans.geronimo.naming.impl; 009 /** 010 * An XML resource-env-refType(@http://geronimo.apache.org/xml/ns/naming-1.2). 011 * 012 * This is a complex type. 013 */ 014 public class GerResourceEnvRefTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType 015 { 016 017 public GerResourceEnvRefTypeImpl(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 MESSAGEDESTINATIONLINK$4 = 027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "message-destination-link"); 028 private static final javax.xml.namespace.QName ADMINOBJECTMODULE$6 = 029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "admin-object-module"); 030 private static final javax.xml.namespace.QName ADMINOBJECTLINK$8 = 031 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "admin-object-link"); 032 033 034 /** 035 * Gets the "ref-name" element 036 */ 037 public java.lang.String getRefName() 038 { 039 synchronized (monitor()) 040 { 041 check_orphaned(); 042 org.apache.xmlbeans.SimpleValue target = null; 043 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFNAME$0, 0); 044 if (target == null) 045 { 046 return null; 047 } 048 return target.getStringValue(); 049 } 050 } 051 052 /** 053 * Gets (as xml) the "ref-name" element 054 */ 055 public org.apache.xmlbeans.XmlString xgetRefName() 056 { 057 synchronized (monitor()) 058 { 059 check_orphaned(); 060 org.apache.xmlbeans.XmlString target = null; 061 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFNAME$0, 0); 062 return target; 063 } 064 } 065 066 /** 067 * Sets the "ref-name" element 068 */ 069 public void setRefName(java.lang.String refName) 070 { 071 synchronized (monitor()) 072 { 073 check_orphaned(); 074 org.apache.xmlbeans.SimpleValue target = null; 075 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFNAME$0, 0); 076 if (target == null) 077 { 078 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFNAME$0); 079 } 080 target.setStringValue(refName); 081 } 082 } 083 084 /** 085 * Sets (as xml) the "ref-name" element 086 */ 087 public void xsetRefName(org.apache.xmlbeans.XmlString refName) 088 { 089 synchronized (monitor()) 090 { 091 check_orphaned(); 092 org.apache.xmlbeans.XmlString target = null; 093 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFNAME$0, 0); 094 if (target == null) 095 { 096 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REFNAME$0); 097 } 098 target.set(refName); 099 } 100 } 101 102 /** 103 * Gets the "pattern" element 104 */ 105 public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType getPattern() 106 { 107 synchronized (monitor()) 108 { 109 check_orphaned(); 110 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null; 111 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$2, 0); 112 if (target == null) 113 { 114 return null; 115 } 116 return target; 117 } 118 } 119 120 /** 121 * True if has "pattern" element 122 */ 123 public boolean isSetPattern() 124 { 125 synchronized (monitor()) 126 { 127 check_orphaned(); 128 return get_store().count_elements(PATTERN$2) != 0; 129 } 130 } 131 132 /** 133 * Sets the "pattern" element 134 */ 135 public void setPattern(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType pattern) 136 { 137 synchronized (monitor()) 138 { 139 check_orphaned(); 140 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null; 141 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$2, 0); 142 if (target == null) 143 { 144 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$2); 145 } 146 target.set(pattern); 147 } 148 } 149 150 /** 151 * Appends and returns a new empty "pattern" element 152 */ 153 public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType addNewPattern() 154 { 155 synchronized (monitor()) 156 { 157 check_orphaned(); 158 org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null; 159 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$2); 160 return target; 161 } 162 } 163 164 /** 165 * Unsets the "pattern" element 166 */ 167 public void unsetPattern() 168 { 169 synchronized (monitor()) 170 { 171 check_orphaned(); 172 get_store().remove_element(PATTERN$2, 0); 173 } 174 } 175 176 /** 177 * Gets the "message-destination-link" element 178 */ 179 public java.lang.String getMessageDestinationLink() 180 { 181 synchronized (monitor()) 182 { 183 check_orphaned(); 184 org.apache.xmlbeans.SimpleValue target = null; 185 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MESSAGEDESTINATIONLINK$4, 0); 186 if (target == null) 187 { 188 return null; 189 } 190 return target.getStringValue(); 191 } 192 } 193 194 /** 195 * Gets (as xml) the "message-destination-link" element 196 */ 197 public org.apache.xmlbeans.XmlString xgetMessageDestinationLink() 198 { 199 synchronized (monitor()) 200 { 201 check_orphaned(); 202 org.apache.xmlbeans.XmlString target = null; 203 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MESSAGEDESTINATIONLINK$4, 0); 204 return target; 205 } 206 } 207 208 /** 209 * True if has "message-destination-link" element 210 */ 211 public boolean isSetMessageDestinationLink() 212 { 213 synchronized (monitor()) 214 { 215 check_orphaned(); 216 return get_store().count_elements(MESSAGEDESTINATIONLINK$4) != 0; 217 } 218 } 219 220 /** 221 * Sets the "message-destination-link" element 222 */ 223 public void setMessageDestinationLink(java.lang.String messageDestinationLink) 224 { 225 synchronized (monitor()) 226 { 227 check_orphaned(); 228 org.apache.xmlbeans.SimpleValue target = null; 229 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MESSAGEDESTINATIONLINK$4, 0); 230 if (target == null) 231 { 232 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MESSAGEDESTINATIONLINK$4); 233 } 234 target.setStringValue(messageDestinationLink); 235 } 236 } 237 238 /** 239 * Sets (as xml) the "message-destination-link" element 240 */ 241 public void xsetMessageDestinationLink(org.apache.xmlbeans.XmlString messageDestinationLink) 242 { 243 synchronized (monitor()) 244 { 245 check_orphaned(); 246 org.apache.xmlbeans.XmlString target = null; 247 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MESSAGEDESTINATIONLINK$4, 0); 248 if (target == null) 249 { 250 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MESSAGEDESTINATIONLINK$4); 251 } 252 target.set(messageDestinationLink); 253 } 254 } 255 256 /** 257 * Unsets the "message-destination-link" element 258 */ 259 public void unsetMessageDestinationLink() 260 { 261 synchronized (monitor()) 262 { 263 check_orphaned(); 264 get_store().remove_element(MESSAGEDESTINATIONLINK$4, 0); 265 } 266 } 267 268 /** 269 * Gets the "admin-object-module" element 270 */ 271 public java.lang.String getAdminObjectModule() 272 { 273 synchronized (monitor()) 274 { 275 check_orphaned(); 276 org.apache.xmlbeans.SimpleValue target = null; 277 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADMINOBJECTMODULE$6, 0); 278 if (target == null) 279 { 280 return null; 281 } 282 return target.getStringValue(); 283 } 284 } 285 286 /** 287 * Gets (as xml) the "admin-object-module" element 288 */ 289 public org.apache.xmlbeans.XmlString xgetAdminObjectModule() 290 { 291 synchronized (monitor()) 292 { 293 check_orphaned(); 294 org.apache.xmlbeans.XmlString target = null; 295 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADMINOBJECTMODULE$6, 0); 296 return target; 297 } 298 } 299 300 /** 301 * True if has "admin-object-module" element 302 */ 303 public boolean isSetAdminObjectModule() 304 { 305 synchronized (monitor()) 306 { 307 check_orphaned(); 308 return get_store().count_elements(ADMINOBJECTMODULE$6) != 0; 309 } 310 } 311 312 /** 313 * Sets the "admin-object-module" element 314 */ 315 public void setAdminObjectModule(java.lang.String adminObjectModule) 316 { 317 synchronized (monitor()) 318 { 319 check_orphaned(); 320 org.apache.xmlbeans.SimpleValue target = null; 321 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADMINOBJECTMODULE$6, 0); 322 if (target == null) 323 { 324 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADMINOBJECTMODULE$6); 325 } 326 target.setStringValue(adminObjectModule); 327 } 328 } 329 330 /** 331 * Sets (as xml) the "admin-object-module" element 332 */ 333 public void xsetAdminObjectModule(org.apache.xmlbeans.XmlString adminObjectModule) 334 { 335 synchronized (monitor()) 336 { 337 check_orphaned(); 338 org.apache.xmlbeans.XmlString target = null; 339 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADMINOBJECTMODULE$6, 0); 340 if (target == null) 341 { 342 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ADMINOBJECTMODULE$6); 343 } 344 target.set(adminObjectModule); 345 } 346 } 347 348 /** 349 * Unsets the "admin-object-module" element 350 */ 351 public void unsetAdminObjectModule() 352 { 353 synchronized (monitor()) 354 { 355 check_orphaned(); 356 get_store().remove_element(ADMINOBJECTMODULE$6, 0); 357 } 358 } 359 360 /** 361 * Gets the "admin-object-link" element 362 */ 363 public java.lang.String getAdminObjectLink() 364 { 365 synchronized (monitor()) 366 { 367 check_orphaned(); 368 org.apache.xmlbeans.SimpleValue target = null; 369 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADMINOBJECTLINK$8, 0); 370 if (target == null) 371 { 372 return null; 373 } 374 return target.getStringValue(); 375 } 376 } 377 378 /** 379 * Gets (as xml) the "admin-object-link" element 380 */ 381 public org.apache.xmlbeans.XmlString xgetAdminObjectLink() 382 { 383 synchronized (monitor()) 384 { 385 check_orphaned(); 386 org.apache.xmlbeans.XmlString target = null; 387 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADMINOBJECTLINK$8, 0); 388 return target; 389 } 390 } 391 392 /** 393 * True if has "admin-object-link" element 394 */ 395 public boolean isSetAdminObjectLink() 396 { 397 synchronized (monitor()) 398 { 399 check_orphaned(); 400 return get_store().count_elements(ADMINOBJECTLINK$8) != 0; 401 } 402 } 403 404 /** 405 * Sets the "admin-object-link" element 406 */ 407 public void setAdminObjectLink(java.lang.String adminObjectLink) 408 { 409 synchronized (monitor()) 410 { 411 check_orphaned(); 412 org.apache.xmlbeans.SimpleValue target = null; 413 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ADMINOBJECTLINK$8, 0); 414 if (target == null) 415 { 416 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ADMINOBJECTLINK$8); 417 } 418 target.setStringValue(adminObjectLink); 419 } 420 } 421 422 /** 423 * Sets (as xml) the "admin-object-link" element 424 */ 425 public void xsetAdminObjectLink(org.apache.xmlbeans.XmlString adminObjectLink) 426 { 427 synchronized (monitor()) 428 { 429 check_orphaned(); 430 org.apache.xmlbeans.XmlString target = null; 431 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ADMINOBJECTLINK$8, 0); 432 if (target == null) 433 { 434 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ADMINOBJECTLINK$8); 435 } 436 target.set(adminObjectLink); 437 } 438 } 439 440 /** 441 * Unsets the "admin-object-link" element 442 */ 443 public void unsetAdminObjectLink() 444 { 445 synchronized (monitor()) 446 { 447 check_orphaned(); 448 get_store().remove_element(ADMINOBJECTLINK$8, 0); 449 } 450 } 451 }