001/* 002 * An XML document type. 003 * Localname: qualifier 004 * Namespace: http://www.springframework.org/schema/beans 005 * Java type: org.springframework.schema.beans.QualifierDocument 006 * 007 * Automatically generated - do not modify. 008 */ 009package org.springframework.schema.beans.impl; 010/** 011 * A document containing one qualifier(@http://www.springframework.org/schema/beans) element. 012 * 013 * This is a complex type. 014 */ 015public class QualifierDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.QualifierDocument 016{ 017 private static final long serialVersionUID = 1L; 018 019 public QualifierDocumentImpl(org.apache.xmlbeans.SchemaType sType) 020 { 021 super(sType); 022 } 023 024 private static final javax.xml.namespace.QName QUALIFIER$0 = 025 new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "qualifier"); 026 027 028 /** 029 * Gets the "qualifier" element 030 */ 031 public org.springframework.schema.beans.QualifierDocument.Qualifier getQualifier() 032 { 033 synchronized (monitor()) 034 { 035 check_orphaned(); 036 org.springframework.schema.beans.QualifierDocument.Qualifier target = null; 037 target = (org.springframework.schema.beans.QualifierDocument.Qualifier)get_store().find_element_user(QUALIFIER$0, 0); 038 if (target == null) 039 { 040 return null; 041 } 042 return target; 043 } 044 } 045 046 /** 047 * Sets the "qualifier" element 048 */ 049 public void setQualifier(org.springframework.schema.beans.QualifierDocument.Qualifier qualifier) 050 { 051 synchronized (monitor()) 052 { 053 check_orphaned(); 054 org.springframework.schema.beans.QualifierDocument.Qualifier target = null; 055 target = (org.springframework.schema.beans.QualifierDocument.Qualifier)get_store().find_element_user(QUALIFIER$0, 0); 056 if (target == null) 057 { 058 target = (org.springframework.schema.beans.QualifierDocument.Qualifier)get_store().add_element_user(QUALIFIER$0); 059 } 060 target.set(qualifier); 061 } 062 } 063 064 /** 065 * Appends and returns a new empty "qualifier" element 066 */ 067 public org.springframework.schema.beans.QualifierDocument.Qualifier addNewQualifier() 068 { 069 synchronized (monitor()) 070 { 071 check_orphaned(); 072 org.springframework.schema.beans.QualifierDocument.Qualifier target = null; 073 target = (org.springframework.schema.beans.QualifierDocument.Qualifier)get_store().add_element_user(QUALIFIER$0); 074 return target; 075 } 076 } 077 /** 078 * An XML qualifier(@http://www.springframework.org/schema/beans). 079 * 080 * This is a complex type. 081 */ 082 public static class QualifierImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.QualifierDocument.Qualifier 083 { 084 private static final long serialVersionUID = 1L; 085 086 public QualifierImpl(org.apache.xmlbeans.SchemaType sType) 087 { 088 super(sType); 089 } 090 091 private static final javax.xml.namespace.QName ATTRIBUTE$0 = 092 new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "attribute"); 093 private static final javax.xml.namespace.QName TYPE$2 = 094 new javax.xml.namespace.QName("", "type"); 095 private static final javax.xml.namespace.QName VALUE$4 = 096 new javax.xml.namespace.QName("", "value"); 097 098 099 /** 100 * Gets array of all "attribute" elements 101 */ 102 public org.springframework.schema.beans.MetaType[] getAttributeArray() 103 { 104 synchronized (monitor()) 105 { 106 check_orphaned(); 107 java.util.List targetList = new java.util.ArrayList(); 108 get_store().find_all_element_users(ATTRIBUTE$0, targetList); 109 org.springframework.schema.beans.MetaType[] result = new org.springframework.schema.beans.MetaType[targetList.size()]; 110 targetList.toArray(result); 111 return result; 112 } 113 } 114 115 /** 116 * Gets ith "attribute" element 117 */ 118 public org.springframework.schema.beans.MetaType getAttributeArray(int i) 119 { 120 synchronized (monitor()) 121 { 122 check_orphaned(); 123 org.springframework.schema.beans.MetaType target = null; 124 target = (org.springframework.schema.beans.MetaType)get_store().find_element_user(ATTRIBUTE$0, i); 125 if (target == null) 126 { 127 throw new IndexOutOfBoundsException(); 128 } 129 return target; 130 } 131 } 132 133 /** 134 * Returns number of "attribute" element 135 */ 136 public int sizeOfAttributeArray() 137 { 138 synchronized (monitor()) 139 { 140 check_orphaned(); 141 return get_store().count_elements(ATTRIBUTE$0); 142 } 143 } 144 145 /** 146 * Sets array of all "attribute" element 147 */ 148 public void setAttributeArray(org.springframework.schema.beans.MetaType[] attributeArray) 149 { 150 synchronized (monitor()) 151 { 152 check_orphaned(); 153 arraySetterHelper(attributeArray, ATTRIBUTE$0); 154 } 155 } 156 157 /** 158 * Sets ith "attribute" element 159 */ 160 public void setAttributeArray(int i, org.springframework.schema.beans.MetaType attribute) 161 { 162 synchronized (monitor()) 163 { 164 check_orphaned(); 165 org.springframework.schema.beans.MetaType target = null; 166 target = (org.springframework.schema.beans.MetaType)get_store().find_element_user(ATTRIBUTE$0, i); 167 if (target == null) 168 { 169 throw new IndexOutOfBoundsException(); 170 } 171 target.set(attribute); 172 } 173 } 174 175 /** 176 * Inserts and returns a new empty value (as xml) as the ith "attribute" element 177 */ 178 public org.springframework.schema.beans.MetaType insertNewAttribute(int i) 179 { 180 synchronized (monitor()) 181 { 182 check_orphaned(); 183 org.springframework.schema.beans.MetaType target = null; 184 target = (org.springframework.schema.beans.MetaType)get_store().insert_element_user(ATTRIBUTE$0, i); 185 return target; 186 } 187 } 188 189 /** 190 * Appends and returns a new empty value (as xml) as the last "attribute" element 191 */ 192 public org.springframework.schema.beans.MetaType addNewAttribute() 193 { 194 synchronized (monitor()) 195 { 196 check_orphaned(); 197 org.springframework.schema.beans.MetaType target = null; 198 target = (org.springframework.schema.beans.MetaType)get_store().add_element_user(ATTRIBUTE$0); 199 return target; 200 } 201 } 202 203 /** 204 * Removes the ith "attribute" element 205 */ 206 public void removeAttribute(int i) 207 { 208 synchronized (monitor()) 209 { 210 check_orphaned(); 211 get_store().remove_element(ATTRIBUTE$0, i); 212 } 213 } 214 215 /** 216 * Gets the "type" attribute 217 */ 218 public java.lang.String getType() 219 { 220 synchronized (monitor()) 221 { 222 check_orphaned(); 223 org.apache.xmlbeans.SimpleValue target = null; 224 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2); 225 if (target == null) 226 { 227 target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(TYPE$2); 228 } 229 if (target == null) 230 { 231 return null; 232 } 233 return target.getStringValue(); 234 } 235 } 236 237 /** 238 * Gets (as xml) the "type" attribute 239 */ 240 public org.apache.xmlbeans.XmlString xgetType() 241 { 242 synchronized (monitor()) 243 { 244 check_orphaned(); 245 org.apache.xmlbeans.XmlString target = null; 246 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPE$2); 247 if (target == null) 248 { 249 target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(TYPE$2); 250 } 251 return target; 252 } 253 } 254 255 /** 256 * True if has "type" attribute 257 */ 258 public boolean isSetType() 259 { 260 synchronized (monitor()) 261 { 262 check_orphaned(); 263 return get_store().find_attribute_user(TYPE$2) != null; 264 } 265 } 266 267 /** 268 * Sets the "type" attribute 269 */ 270 public void setType(java.lang.String type) 271 { 272 synchronized (monitor()) 273 { 274 check_orphaned(); 275 org.apache.xmlbeans.SimpleValue target = null; 276 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2); 277 if (target == null) 278 { 279 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2); 280 } 281 target.setStringValue(type); 282 } 283 } 284 285 /** 286 * Sets (as xml) the "type" attribute 287 */ 288 public void xsetType(org.apache.xmlbeans.XmlString type) 289 { 290 synchronized (monitor()) 291 { 292 check_orphaned(); 293 org.apache.xmlbeans.XmlString target = null; 294 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPE$2); 295 if (target == null) 296 { 297 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TYPE$2); 298 } 299 target.set(type); 300 } 301 } 302 303 /** 304 * Unsets the "type" attribute 305 */ 306 public void unsetType() 307 { 308 synchronized (monitor()) 309 { 310 check_orphaned(); 311 get_store().remove_attribute(TYPE$2); 312 } 313 } 314 315 /** 316 * Gets the "value" attribute 317 */ 318 public java.lang.String getValue() 319 { 320 synchronized (monitor()) 321 { 322 check_orphaned(); 323 org.apache.xmlbeans.SimpleValue target = null; 324 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$4); 325 if (target == null) 326 { 327 return null; 328 } 329 return target.getStringValue(); 330 } 331 } 332 333 /** 334 * Gets (as xml) the "value" attribute 335 */ 336 public org.apache.xmlbeans.XmlString xgetValue() 337 { 338 synchronized (monitor()) 339 { 340 check_orphaned(); 341 org.apache.xmlbeans.XmlString target = null; 342 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUE$4); 343 return target; 344 } 345 } 346 347 /** 348 * True if has "value" attribute 349 */ 350 public boolean isSetValue() 351 { 352 synchronized (monitor()) 353 { 354 check_orphaned(); 355 return get_store().find_attribute_user(VALUE$4) != null; 356 } 357 } 358 359 /** 360 * Sets the "value" attribute 361 */ 362 public void setValue(java.lang.String value) 363 { 364 synchronized (monitor()) 365 { 366 check_orphaned(); 367 org.apache.xmlbeans.SimpleValue target = null; 368 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$4); 369 if (target == null) 370 { 371 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALUE$4); 372 } 373 target.setStringValue(value); 374 } 375 } 376 377 /** 378 * Sets (as xml) the "value" attribute 379 */ 380 public void xsetValue(org.apache.xmlbeans.XmlString value) 381 { 382 synchronized (monitor()) 383 { 384 check_orphaned(); 385 org.apache.xmlbeans.XmlString target = null; 386 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUE$4); 387 if (target == null) 388 { 389 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VALUE$4); 390 } 391 target.set(value); 392 } 393 } 394 395 /** 396 * Unsets the "value" attribute 397 */ 398 public void unsetValue() 399 { 400 synchronized (monitor()) 401 { 402 check_orphaned(); 403 get_store().remove_attribute(VALUE$4); 404 } 405 } 406 } 407}