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