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