001 /* 002 * XML Type: artifactType 003 * Namespace: http://geronimo.apache.org/xml/ns/deployment-1.2 004 * Java type: org.apache.geronimo.deployment.xbeans.ArtifactType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.deployment.xbeans.impl; 009 /** 010 * An XML artifactType(@http://geronimo.apache.org/xml/ns/deployment-1.2). 011 * 012 * This is a complex type. 013 */ 014 public class ArtifactTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.deployment.xbeans.ArtifactType 015 { 016 017 public ArtifactTypeImpl(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/deployment-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/deployment-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/deployment-1.2", "version"); 028 private static final javax.xml.namespace.QName TYPE$6 = 029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "type"); 030 031 032 /** 033 * Gets the "groupId" element 034 */ 035 public java.lang.String getGroupId() 036 { 037 synchronized (monitor()) 038 { 039 check_orphaned(); 040 org.apache.xmlbeans.SimpleValue target = null; 041 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GROUPID$0, 0); 042 if (target == null) 043 { 044 return null; 045 } 046 return target.getStringValue(); 047 } 048 } 049 050 /** 051 * Gets (as xml) the "groupId" element 052 */ 053 public org.apache.xmlbeans.XmlString xgetGroupId() 054 { 055 synchronized (monitor()) 056 { 057 check_orphaned(); 058 org.apache.xmlbeans.XmlString target = null; 059 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(GROUPID$0, 0); 060 return target; 061 } 062 } 063 064 /** 065 * True if has "groupId" element 066 */ 067 public boolean isSetGroupId() 068 { 069 synchronized (monitor()) 070 { 071 check_orphaned(); 072 return get_store().count_elements(GROUPID$0) != 0; 073 } 074 } 075 076 /** 077 * Sets the "groupId" element 078 */ 079 public void setGroupId(java.lang.String groupId) 080 { 081 synchronized (monitor()) 082 { 083 check_orphaned(); 084 org.apache.xmlbeans.SimpleValue target = null; 085 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GROUPID$0, 0); 086 if (target == null) 087 { 088 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GROUPID$0); 089 } 090 target.setStringValue(groupId); 091 } 092 } 093 094 /** 095 * Sets (as xml) the "groupId" element 096 */ 097 public void xsetGroupId(org.apache.xmlbeans.XmlString groupId) 098 { 099 synchronized (monitor()) 100 { 101 check_orphaned(); 102 org.apache.xmlbeans.XmlString target = null; 103 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(GROUPID$0, 0); 104 if (target == null) 105 { 106 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(GROUPID$0); 107 } 108 target.set(groupId); 109 } 110 } 111 112 /** 113 * Unsets the "groupId" element 114 */ 115 public void unsetGroupId() 116 { 117 synchronized (monitor()) 118 { 119 check_orphaned(); 120 get_store().remove_element(GROUPID$0, 0); 121 } 122 } 123 124 /** 125 * Gets the "artifactId" element 126 */ 127 public java.lang.String getArtifactId() 128 { 129 synchronized (monitor()) 130 { 131 check_orphaned(); 132 org.apache.xmlbeans.SimpleValue target = null; 133 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ARTIFACTID$2, 0); 134 if (target == null) 135 { 136 return null; 137 } 138 return target.getStringValue(); 139 } 140 } 141 142 /** 143 * Gets (as xml) the "artifactId" element 144 */ 145 public org.apache.xmlbeans.XmlString xgetArtifactId() 146 { 147 synchronized (monitor()) 148 { 149 check_orphaned(); 150 org.apache.xmlbeans.XmlString target = null; 151 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ARTIFACTID$2, 0); 152 return target; 153 } 154 } 155 156 /** 157 * Sets the "artifactId" element 158 */ 159 public void setArtifactId(java.lang.String artifactId) 160 { 161 synchronized (monitor()) 162 { 163 check_orphaned(); 164 org.apache.xmlbeans.SimpleValue target = null; 165 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ARTIFACTID$2, 0); 166 if (target == null) 167 { 168 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ARTIFACTID$2); 169 } 170 target.setStringValue(artifactId); 171 } 172 } 173 174 /** 175 * Sets (as xml) the "artifactId" element 176 */ 177 public void xsetArtifactId(org.apache.xmlbeans.XmlString artifactId) 178 { 179 synchronized (monitor()) 180 { 181 check_orphaned(); 182 org.apache.xmlbeans.XmlString target = null; 183 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ARTIFACTID$2, 0); 184 if (target == null) 185 { 186 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ARTIFACTID$2); 187 } 188 target.set(artifactId); 189 } 190 } 191 192 /** 193 * Gets the "version" element 194 */ 195 public java.lang.String getVersion() 196 { 197 synchronized (monitor()) 198 { 199 check_orphaned(); 200 org.apache.xmlbeans.SimpleValue target = null; 201 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VERSION$4, 0); 202 if (target == null) 203 { 204 return null; 205 } 206 return target.getStringValue(); 207 } 208 } 209 210 /** 211 * Gets (as xml) the "version" element 212 */ 213 public org.apache.xmlbeans.XmlString xgetVersion() 214 { 215 synchronized (monitor()) 216 { 217 check_orphaned(); 218 org.apache.xmlbeans.XmlString target = null; 219 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VERSION$4, 0); 220 return target; 221 } 222 } 223 224 /** 225 * True if has "version" element 226 */ 227 public boolean isSetVersion() 228 { 229 synchronized (monitor()) 230 { 231 check_orphaned(); 232 return get_store().count_elements(VERSION$4) != 0; 233 } 234 } 235 236 /** 237 * Sets the "version" element 238 */ 239 public void setVersion(java.lang.String version) 240 { 241 synchronized (monitor()) 242 { 243 check_orphaned(); 244 org.apache.xmlbeans.SimpleValue target = null; 245 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VERSION$4, 0); 246 if (target == null) 247 { 248 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VERSION$4); 249 } 250 target.setStringValue(version); 251 } 252 } 253 254 /** 255 * Sets (as xml) the "version" element 256 */ 257 public void xsetVersion(org.apache.xmlbeans.XmlString version) 258 { 259 synchronized (monitor()) 260 { 261 check_orphaned(); 262 org.apache.xmlbeans.XmlString target = null; 263 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VERSION$4, 0); 264 if (target == null) 265 { 266 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VERSION$4); 267 } 268 target.set(version); 269 } 270 } 271 272 /** 273 * Unsets the "version" element 274 */ 275 public void unsetVersion() 276 { 277 synchronized (monitor()) 278 { 279 check_orphaned(); 280 get_store().remove_element(VERSION$4, 0); 281 } 282 } 283 284 /** 285 * Gets the "type" element 286 */ 287 public java.lang.String getType() 288 { 289 synchronized (monitor()) 290 { 291 check_orphaned(); 292 org.apache.xmlbeans.SimpleValue target = null; 293 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$6, 0); 294 if (target == null) 295 { 296 return null; 297 } 298 return target.getStringValue(); 299 } 300 } 301 302 /** 303 * Gets (as xml) the "type" element 304 */ 305 public org.apache.xmlbeans.XmlString xgetType() 306 { 307 synchronized (monitor()) 308 { 309 check_orphaned(); 310 org.apache.xmlbeans.XmlString target = null; 311 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TYPE$6, 0); 312 return target; 313 } 314 } 315 316 /** 317 * True if has "type" element 318 */ 319 public boolean isSetType() 320 { 321 synchronized (monitor()) 322 { 323 check_orphaned(); 324 return get_store().count_elements(TYPE$6) != 0; 325 } 326 } 327 328 /** 329 * Sets the "type" element 330 */ 331 public void setType(java.lang.String type) 332 { 333 synchronized (monitor()) 334 { 335 check_orphaned(); 336 org.apache.xmlbeans.SimpleValue target = null; 337 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$6, 0); 338 if (target == null) 339 { 340 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TYPE$6); 341 } 342 target.setStringValue(type); 343 } 344 } 345 346 /** 347 * Sets (as xml) the "type" element 348 */ 349 public void xsetType(org.apache.xmlbeans.XmlString type) 350 { 351 synchronized (monitor()) 352 { 353 check_orphaned(); 354 org.apache.xmlbeans.XmlString target = null; 355 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TYPE$6, 0); 356 if (target == null) 357 { 358 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TYPE$6); 359 } 360 target.set(type); 361 } 362 } 363 364 /** 365 * Unsets the "type" element 366 */ 367 public void unsetType() 368 { 369 synchronized (monitor()) 370 { 371 check_orphaned(); 372 get_store().remove_element(TYPE$6, 0); 373 } 374 } 375 }