001/* 002 * An XML document type. 003 * Localname: ref 004 * Namespace: http://www.springframework.org/schema/beans 005 * Java type: org.springframework.schema.beans.RefDocument 006 * 007 * Automatically generated - do not modify. 008 */ 009package org.springframework.schema.beans.impl; 010/** 011 * A document containing one ref(@http://www.springframework.org/schema/beans) element. 012 * 013 * This is a complex type. 014 */ 015public class RefDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.RefDocument 016{ 017 private static final long serialVersionUID = 1L; 018 019 public RefDocumentImpl(org.apache.xmlbeans.SchemaType sType) 020 { 021 super(sType); 022 } 023 024 private static final javax.xml.namespace.QName REF$0 = 025 new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "ref"); 026 027 028 /** 029 * Gets the "ref" element 030 */ 031 public org.springframework.schema.beans.RefDocument.Ref getRef() 032 { 033 synchronized (monitor()) 034 { 035 check_orphaned(); 036 org.springframework.schema.beans.RefDocument.Ref target = null; 037 target = (org.springframework.schema.beans.RefDocument.Ref)get_store().find_element_user(REF$0, 0); 038 if (target == null) 039 { 040 return null; 041 } 042 return target; 043 } 044 } 045 046 /** 047 * Sets the "ref" element 048 */ 049 public void setRef(org.springframework.schema.beans.RefDocument.Ref ref) 050 { 051 synchronized (monitor()) 052 { 053 check_orphaned(); 054 org.springframework.schema.beans.RefDocument.Ref target = null; 055 target = (org.springframework.schema.beans.RefDocument.Ref)get_store().find_element_user(REF$0, 0); 056 if (target == null) 057 { 058 target = (org.springframework.schema.beans.RefDocument.Ref)get_store().add_element_user(REF$0); 059 } 060 target.set(ref); 061 } 062 } 063 064 /** 065 * Appends and returns a new empty "ref" element 066 */ 067 public org.springframework.schema.beans.RefDocument.Ref addNewRef() 068 { 069 synchronized (monitor()) 070 { 071 check_orphaned(); 072 org.springframework.schema.beans.RefDocument.Ref target = null; 073 target = (org.springframework.schema.beans.RefDocument.Ref)get_store().add_element_user(REF$0); 074 return target; 075 } 076 } 077 /** 078 * An XML ref(@http://www.springframework.org/schema/beans). 079 * 080 * This is a complex type. 081 */ 082 public static class RefImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.RefDocument.Ref 083 { 084 private static final long serialVersionUID = 1L; 085 086 public RefImpl(org.apache.xmlbeans.SchemaType sType) 087 { 088 super(sType); 089 } 090 091 private static final javax.xml.namespace.QName BEAN$0 = 092 new javax.xml.namespace.QName("", "bean"); 093 private static final javax.xml.namespace.QName LOCAL$2 = 094 new javax.xml.namespace.QName("", "local"); 095 private static final javax.xml.namespace.QName PARENT$4 = 096 new javax.xml.namespace.QName("", "parent"); 097 098 099 /** 100 * Gets the "bean" attribute 101 */ 102 public java.lang.String getBean() 103 { 104 synchronized (monitor()) 105 { 106 check_orphaned(); 107 org.apache.xmlbeans.SimpleValue target = null; 108 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BEAN$0); 109 if (target == null) 110 { 111 return null; 112 } 113 return target.getStringValue(); 114 } 115 } 116 117 /** 118 * Gets (as xml) the "bean" attribute 119 */ 120 public org.apache.xmlbeans.XmlString xgetBean() 121 { 122 synchronized (monitor()) 123 { 124 check_orphaned(); 125 org.apache.xmlbeans.XmlString target = null; 126 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BEAN$0); 127 return target; 128 } 129 } 130 131 /** 132 * True if has "bean" attribute 133 */ 134 public boolean isSetBean() 135 { 136 synchronized (monitor()) 137 { 138 check_orphaned(); 139 return get_store().find_attribute_user(BEAN$0) != null; 140 } 141 } 142 143 /** 144 * Sets the "bean" attribute 145 */ 146 public void setBean(java.lang.String bean) 147 { 148 synchronized (monitor()) 149 { 150 check_orphaned(); 151 org.apache.xmlbeans.SimpleValue target = null; 152 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BEAN$0); 153 if (target == null) 154 { 155 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BEAN$0); 156 } 157 target.setStringValue(bean); 158 } 159 } 160 161 /** 162 * Sets (as xml) the "bean" attribute 163 */ 164 public void xsetBean(org.apache.xmlbeans.XmlString bean) 165 { 166 synchronized (monitor()) 167 { 168 check_orphaned(); 169 org.apache.xmlbeans.XmlString target = null; 170 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BEAN$0); 171 if (target == null) 172 { 173 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(BEAN$0); 174 } 175 target.set(bean); 176 } 177 } 178 179 /** 180 * Unsets the "bean" attribute 181 */ 182 public void unsetBean() 183 { 184 synchronized (monitor()) 185 { 186 check_orphaned(); 187 get_store().remove_attribute(BEAN$0); 188 } 189 } 190 191 /** 192 * Gets the "local" attribute 193 */ 194 public java.lang.String getLocal() 195 { 196 synchronized (monitor()) 197 { 198 check_orphaned(); 199 org.apache.xmlbeans.SimpleValue target = null; 200 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCAL$2); 201 if (target == null) 202 { 203 return null; 204 } 205 return target.getStringValue(); 206 } 207 } 208 209 /** 210 * Gets (as xml) the "local" attribute 211 */ 212 public org.apache.xmlbeans.XmlIDREF xgetLocal() 213 { 214 synchronized (monitor()) 215 { 216 check_orphaned(); 217 org.apache.xmlbeans.XmlIDREF target = null; 218 target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(LOCAL$2); 219 return target; 220 } 221 } 222 223 /** 224 * True if has "local" attribute 225 */ 226 public boolean isSetLocal() 227 { 228 synchronized (monitor()) 229 { 230 check_orphaned(); 231 return get_store().find_attribute_user(LOCAL$2) != null; 232 } 233 } 234 235 /** 236 * Sets the "local" attribute 237 */ 238 public void setLocal(java.lang.String local) 239 { 240 synchronized (monitor()) 241 { 242 check_orphaned(); 243 org.apache.xmlbeans.SimpleValue target = null; 244 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCAL$2); 245 if (target == null) 246 { 247 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LOCAL$2); 248 } 249 target.setStringValue(local); 250 } 251 } 252 253 /** 254 * Sets (as xml) the "local" attribute 255 */ 256 public void xsetLocal(org.apache.xmlbeans.XmlIDREF local) 257 { 258 synchronized (monitor()) 259 { 260 check_orphaned(); 261 org.apache.xmlbeans.XmlIDREF target = null; 262 target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(LOCAL$2); 263 if (target == null) 264 { 265 target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(LOCAL$2); 266 } 267 target.set(local); 268 } 269 } 270 271 /** 272 * Unsets the "local" attribute 273 */ 274 public void unsetLocal() 275 { 276 synchronized (monitor()) 277 { 278 check_orphaned(); 279 get_store().remove_attribute(LOCAL$2); 280 } 281 } 282 283 /** 284 * Gets the "parent" attribute 285 */ 286 public java.lang.String getParent() 287 { 288 synchronized (monitor()) 289 { 290 check_orphaned(); 291 org.apache.xmlbeans.SimpleValue target = null; 292 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PARENT$4); 293 if (target == null) 294 { 295 return null; 296 } 297 return target.getStringValue(); 298 } 299 } 300 301 /** 302 * Gets (as xml) the "parent" attribute 303 */ 304 public org.apache.xmlbeans.XmlString xgetParent() 305 { 306 synchronized (monitor()) 307 { 308 check_orphaned(); 309 org.apache.xmlbeans.XmlString target = null; 310 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PARENT$4); 311 return target; 312 } 313 } 314 315 /** 316 * True if has "parent" attribute 317 */ 318 public boolean isSetParent() 319 { 320 synchronized (monitor()) 321 { 322 check_orphaned(); 323 return get_store().find_attribute_user(PARENT$4) != null; 324 } 325 } 326 327 /** 328 * Sets the "parent" attribute 329 */ 330 public void setParent(java.lang.String parent) 331 { 332 synchronized (monitor()) 333 { 334 check_orphaned(); 335 org.apache.xmlbeans.SimpleValue target = null; 336 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PARENT$4); 337 if (target == null) 338 { 339 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PARENT$4); 340 } 341 target.setStringValue(parent); 342 } 343 } 344 345 /** 346 * Sets (as xml) the "parent" attribute 347 */ 348 public void xsetParent(org.apache.xmlbeans.XmlString parent) 349 { 350 synchronized (monitor()) 351 { 352 check_orphaned(); 353 org.apache.xmlbeans.XmlString target = null; 354 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PARENT$4); 355 if (target == null) 356 { 357 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PARENT$4); 358 } 359 target.set(parent); 360 } 361 } 362 363 /** 364 * Unsets the "parent" attribute 365 */ 366 public void unsetParent() 367 { 368 synchronized (monitor()) 369 { 370 check_orphaned(); 371 get_store().remove_attribute(PARENT$4); 372 } 373 } 374 } 375}