001/* 002 * An XML document type. 003 * Localname: idref 004 * Namespace: http://www.springframework.org/schema/beans 005 * Java type: org.springframework.schema.beans.IdrefDocument 006 * 007 * Automatically generated - do not modify. 008 */ 009package org.springframework.schema.beans.impl; 010/** 011 * A document containing one idref(@http://www.springframework.org/schema/beans) element. 012 * 013 * This is a complex type. 014 */ 015public class IdrefDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.IdrefDocument 016{ 017 private static final long serialVersionUID = 1L; 018 019 public IdrefDocumentImpl(org.apache.xmlbeans.SchemaType sType) 020 { 021 super(sType); 022 } 023 024 private static final javax.xml.namespace.QName IDREF$0 = 025 new javax.xml.namespace.QName("http://www.springframework.org/schema/beans", "idref"); 026 027 028 /** 029 * Gets the "idref" element 030 */ 031 public org.springframework.schema.beans.IdrefDocument.Idref getIdref() 032 { 033 synchronized (monitor()) 034 { 035 check_orphaned(); 036 org.springframework.schema.beans.IdrefDocument.Idref target = null; 037 target = (org.springframework.schema.beans.IdrefDocument.Idref)get_store().find_element_user(IDREF$0, 0); 038 if (target == null) 039 { 040 return null; 041 } 042 return target; 043 } 044 } 045 046 /** 047 * Sets the "idref" element 048 */ 049 public void setIdref(org.springframework.schema.beans.IdrefDocument.Idref idref) 050 { 051 synchronized (monitor()) 052 { 053 check_orphaned(); 054 org.springframework.schema.beans.IdrefDocument.Idref target = null; 055 target = (org.springframework.schema.beans.IdrefDocument.Idref)get_store().find_element_user(IDREF$0, 0); 056 if (target == null) 057 { 058 target = (org.springframework.schema.beans.IdrefDocument.Idref)get_store().add_element_user(IDREF$0); 059 } 060 target.set(idref); 061 } 062 } 063 064 /** 065 * Appends and returns a new empty "idref" element 066 */ 067 public org.springframework.schema.beans.IdrefDocument.Idref addNewIdref() 068 { 069 synchronized (monitor()) 070 { 071 check_orphaned(); 072 org.springframework.schema.beans.IdrefDocument.Idref target = null; 073 target = (org.springframework.schema.beans.IdrefDocument.Idref)get_store().add_element_user(IDREF$0); 074 return target; 075 } 076 } 077 /** 078 * An XML idref(@http://www.springframework.org/schema/beans). 079 * 080 * This is a complex type. 081 */ 082 public static class IdrefImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.IdrefDocument.Idref 083 { 084 private static final long serialVersionUID = 1L; 085 086 public IdrefImpl(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 096 097 /** 098 * Gets the "bean" attribute 099 */ 100 public java.lang.String getBean() 101 { 102 synchronized (monitor()) 103 { 104 check_orphaned(); 105 org.apache.xmlbeans.SimpleValue target = null; 106 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BEAN$0); 107 if (target == null) 108 { 109 return null; 110 } 111 return target.getStringValue(); 112 } 113 } 114 115 /** 116 * Gets (as xml) the "bean" attribute 117 */ 118 public org.apache.xmlbeans.XmlString xgetBean() 119 { 120 synchronized (monitor()) 121 { 122 check_orphaned(); 123 org.apache.xmlbeans.XmlString target = null; 124 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BEAN$0); 125 return target; 126 } 127 } 128 129 /** 130 * True if has "bean" attribute 131 */ 132 public boolean isSetBean() 133 { 134 synchronized (monitor()) 135 { 136 check_orphaned(); 137 return get_store().find_attribute_user(BEAN$0) != null; 138 } 139 } 140 141 /** 142 * Sets the "bean" attribute 143 */ 144 public void setBean(java.lang.String bean) 145 { 146 synchronized (monitor()) 147 { 148 check_orphaned(); 149 org.apache.xmlbeans.SimpleValue target = null; 150 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BEAN$0); 151 if (target == null) 152 { 153 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BEAN$0); 154 } 155 target.setStringValue(bean); 156 } 157 } 158 159 /** 160 * Sets (as xml) the "bean" attribute 161 */ 162 public void xsetBean(org.apache.xmlbeans.XmlString bean) 163 { 164 synchronized (monitor()) 165 { 166 check_orphaned(); 167 org.apache.xmlbeans.XmlString target = null; 168 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BEAN$0); 169 if (target == null) 170 { 171 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(BEAN$0); 172 } 173 target.set(bean); 174 } 175 } 176 177 /** 178 * Unsets the "bean" attribute 179 */ 180 public void unsetBean() 181 { 182 synchronized (monitor()) 183 { 184 check_orphaned(); 185 get_store().remove_attribute(BEAN$0); 186 } 187 } 188 189 /** 190 * Gets the "local" attribute 191 */ 192 public java.lang.String getLocal() 193 { 194 synchronized (monitor()) 195 { 196 check_orphaned(); 197 org.apache.xmlbeans.SimpleValue target = null; 198 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCAL$2); 199 if (target == null) 200 { 201 return null; 202 } 203 return target.getStringValue(); 204 } 205 } 206 207 /** 208 * Gets (as xml) the "local" attribute 209 */ 210 public org.apache.xmlbeans.XmlIDREF xgetLocal() 211 { 212 synchronized (monitor()) 213 { 214 check_orphaned(); 215 org.apache.xmlbeans.XmlIDREF target = null; 216 target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(LOCAL$2); 217 return target; 218 } 219 } 220 221 /** 222 * True if has "local" attribute 223 */ 224 public boolean isSetLocal() 225 { 226 synchronized (monitor()) 227 { 228 check_orphaned(); 229 return get_store().find_attribute_user(LOCAL$2) != null; 230 } 231 } 232 233 /** 234 * Sets the "local" attribute 235 */ 236 public void setLocal(java.lang.String local) 237 { 238 synchronized (monitor()) 239 { 240 check_orphaned(); 241 org.apache.xmlbeans.SimpleValue target = null; 242 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCAL$2); 243 if (target == null) 244 { 245 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LOCAL$2); 246 } 247 target.setStringValue(local); 248 } 249 } 250 251 /** 252 * Sets (as xml) the "local" attribute 253 */ 254 public void xsetLocal(org.apache.xmlbeans.XmlIDREF local) 255 { 256 synchronized (monitor()) 257 { 258 check_orphaned(); 259 org.apache.xmlbeans.XmlIDREF target = null; 260 target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(LOCAL$2); 261 if (target == null) 262 { 263 target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(LOCAL$2); 264 } 265 target.set(local); 266 } 267 } 268 269 /** 270 * Unsets the "local" attribute 271 */ 272 public void unsetLocal() 273 { 274 synchronized (monitor()) 275 { 276 check_orphaned(); 277 get_store().remove_attribute(LOCAL$2); 278 } 279 } 280 } 281}