001 /* 002 * XML Type: javabeanType 003 * Namespace: http://geronimo.apache.org/xml/ns/deployment/javabean-1.0 004 * Java type: org.apache.geronimo.deployment.javabean.xbeans.JavabeanType 005 * 006 * Automatically generated - do not modify. 007 */ 008 package org.apache.geronimo.deployment.javabean.xbeans.impl; 009 /** 010 * An XML javabeanType(@http://geronimo.apache.org/xml/ns/deployment/javabean-1.0). 011 * 012 * This is a complex type. 013 */ 014 public class JavabeanTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.deployment.javabean.xbeans.JavabeanType 015 { 016 017 public JavabeanTypeImpl(org.apache.xmlbeans.SchemaType sType) 018 { 019 super(sType); 020 } 021 022 private static final javax.xml.namespace.QName PROPERTY$0 = 023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment/javabean-1.0", "property"); 024 private static final javax.xml.namespace.QName BEANPROPERTY$2 = 025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment/javabean-1.0", "bean-property"); 026 private static final javax.xml.namespace.QName CLASS1$4 = 027 new javax.xml.namespace.QName("", "class"); 028 029 030 /** 031 * Gets array of all "property" elements 032 */ 033 public org.apache.geronimo.deployment.javabean.xbeans.PropertyType[] getPropertyArray() 034 { 035 synchronized (monitor()) 036 { 037 check_orphaned(); 038 java.util.List targetList = new java.util.ArrayList(); 039 get_store().find_all_element_users(PROPERTY$0, targetList); 040 org.apache.geronimo.deployment.javabean.xbeans.PropertyType[] result = new org.apache.geronimo.deployment.javabean.xbeans.PropertyType[targetList.size()]; 041 targetList.toArray(result); 042 return result; 043 } 044 } 045 046 /** 047 * Gets ith "property" element 048 */ 049 public org.apache.geronimo.deployment.javabean.xbeans.PropertyType getPropertyArray(int i) 050 { 051 synchronized (monitor()) 052 { 053 check_orphaned(); 054 org.apache.geronimo.deployment.javabean.xbeans.PropertyType target = null; 055 target = (org.apache.geronimo.deployment.javabean.xbeans.PropertyType)get_store().find_element_user(PROPERTY$0, i); 056 if (target == null) 057 { 058 throw new IndexOutOfBoundsException(); 059 } 060 return target; 061 } 062 } 063 064 /** 065 * Returns number of "property" element 066 */ 067 public int sizeOfPropertyArray() 068 { 069 synchronized (monitor()) 070 { 071 check_orphaned(); 072 return get_store().count_elements(PROPERTY$0); 073 } 074 } 075 076 /** 077 * Sets array of all "property" element 078 */ 079 public void setPropertyArray(org.apache.geronimo.deployment.javabean.xbeans.PropertyType[] propertyArray) 080 { 081 synchronized (monitor()) 082 { 083 check_orphaned(); 084 arraySetterHelper(propertyArray, PROPERTY$0); 085 } 086 } 087 088 /** 089 * Sets ith "property" element 090 */ 091 public void setPropertyArray(int i, org.apache.geronimo.deployment.javabean.xbeans.PropertyType property) 092 { 093 synchronized (monitor()) 094 { 095 check_orphaned(); 096 org.apache.geronimo.deployment.javabean.xbeans.PropertyType target = null; 097 target = (org.apache.geronimo.deployment.javabean.xbeans.PropertyType)get_store().find_element_user(PROPERTY$0, i); 098 if (target == null) 099 { 100 throw new IndexOutOfBoundsException(); 101 } 102 target.set(property); 103 } 104 } 105 106 /** 107 * Inserts and returns a new empty value (as xml) as the ith "property" element 108 */ 109 public org.apache.geronimo.deployment.javabean.xbeans.PropertyType insertNewProperty(int i) 110 { 111 synchronized (monitor()) 112 { 113 check_orphaned(); 114 org.apache.geronimo.deployment.javabean.xbeans.PropertyType target = null; 115 target = (org.apache.geronimo.deployment.javabean.xbeans.PropertyType)get_store().insert_element_user(PROPERTY$0, i); 116 return target; 117 } 118 } 119 120 /** 121 * Appends and returns a new empty value (as xml) as the last "property" element 122 */ 123 public org.apache.geronimo.deployment.javabean.xbeans.PropertyType addNewProperty() 124 { 125 synchronized (monitor()) 126 { 127 check_orphaned(); 128 org.apache.geronimo.deployment.javabean.xbeans.PropertyType target = null; 129 target = (org.apache.geronimo.deployment.javabean.xbeans.PropertyType)get_store().add_element_user(PROPERTY$0); 130 return target; 131 } 132 } 133 134 /** 135 * Removes the ith "property" element 136 */ 137 public void removeProperty(int i) 138 { 139 synchronized (monitor()) 140 { 141 check_orphaned(); 142 get_store().remove_element(PROPERTY$0, i); 143 } 144 } 145 146 /** 147 * Gets array of all "bean-property" elements 148 */ 149 public org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType[] getBeanPropertyArray() 150 { 151 synchronized (monitor()) 152 { 153 check_orphaned(); 154 java.util.List targetList = new java.util.ArrayList(); 155 get_store().find_all_element_users(BEANPROPERTY$2, targetList); 156 org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType[] result = new org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType[targetList.size()]; 157 targetList.toArray(result); 158 return result; 159 } 160 } 161 162 /** 163 * Gets ith "bean-property" element 164 */ 165 public org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType getBeanPropertyArray(int i) 166 { 167 synchronized (monitor()) 168 { 169 check_orphaned(); 170 org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType target = null; 171 target = (org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType)get_store().find_element_user(BEANPROPERTY$2, i); 172 if (target == null) 173 { 174 throw new IndexOutOfBoundsException(); 175 } 176 return target; 177 } 178 } 179 180 /** 181 * Returns number of "bean-property" element 182 */ 183 public int sizeOfBeanPropertyArray() 184 { 185 synchronized (monitor()) 186 { 187 check_orphaned(); 188 return get_store().count_elements(BEANPROPERTY$2); 189 } 190 } 191 192 /** 193 * Sets array of all "bean-property" element 194 */ 195 public void setBeanPropertyArray(org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType[] beanPropertyArray) 196 { 197 synchronized (monitor()) 198 { 199 check_orphaned(); 200 arraySetterHelper(beanPropertyArray, BEANPROPERTY$2); 201 } 202 } 203 204 /** 205 * Sets ith "bean-property" element 206 */ 207 public void setBeanPropertyArray(int i, org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType beanProperty) 208 { 209 synchronized (monitor()) 210 { 211 check_orphaned(); 212 org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType target = null; 213 target = (org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType)get_store().find_element_user(BEANPROPERTY$2, i); 214 if (target == null) 215 { 216 throw new IndexOutOfBoundsException(); 217 } 218 target.set(beanProperty); 219 } 220 } 221 222 /** 223 * Inserts and returns a new empty value (as xml) as the ith "bean-property" element 224 */ 225 public org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType insertNewBeanProperty(int i) 226 { 227 synchronized (monitor()) 228 { 229 check_orphaned(); 230 org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType target = null; 231 target = (org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType)get_store().insert_element_user(BEANPROPERTY$2, i); 232 return target; 233 } 234 } 235 236 /** 237 * Appends and returns a new empty value (as xml) as the last "bean-property" element 238 */ 239 public org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType addNewBeanProperty() 240 { 241 synchronized (monitor()) 242 { 243 check_orphaned(); 244 org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType target = null; 245 target = (org.apache.geronimo.deployment.javabean.xbeans.BeanPropertyType)get_store().add_element_user(BEANPROPERTY$2); 246 return target; 247 } 248 } 249 250 /** 251 * Removes the ith "bean-property" element 252 */ 253 public void removeBeanProperty(int i) 254 { 255 synchronized (monitor()) 256 { 257 check_orphaned(); 258 get_store().remove_element(BEANPROPERTY$2, i); 259 } 260 } 261 262 /** 263 * Gets the "class" attribute 264 */ 265 public java.lang.String getClass1() 266 { 267 synchronized (monitor()) 268 { 269 check_orphaned(); 270 org.apache.xmlbeans.SimpleValue target = null; 271 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASS1$4); 272 if (target == null) 273 { 274 return null; 275 } 276 return target.getStringValue(); 277 } 278 } 279 280 /** 281 * Gets (as xml) the "class" attribute 282 */ 283 public org.apache.xmlbeans.XmlString xgetClass1() 284 { 285 synchronized (monitor()) 286 { 287 check_orphaned(); 288 org.apache.xmlbeans.XmlString target = null; 289 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CLASS1$4); 290 return target; 291 } 292 } 293 294 /** 295 * True if has "class" attribute 296 */ 297 public boolean isSetClass1() 298 { 299 synchronized (monitor()) 300 { 301 check_orphaned(); 302 return get_store().find_attribute_user(CLASS1$4) != null; 303 } 304 } 305 306 /** 307 * Sets the "class" attribute 308 */ 309 public void setClass1(java.lang.String class1) 310 { 311 synchronized (monitor()) 312 { 313 check_orphaned(); 314 org.apache.xmlbeans.SimpleValue target = null; 315 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASS1$4); 316 if (target == null) 317 { 318 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CLASS1$4); 319 } 320 target.setStringValue(class1); 321 } 322 } 323 324 /** 325 * Sets (as xml) the "class" attribute 326 */ 327 public void xsetClass1(org.apache.xmlbeans.XmlString class1) 328 { 329 synchronized (monitor()) 330 { 331 check_orphaned(); 332 org.apache.xmlbeans.XmlString target = null; 333 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CLASS1$4); 334 if (target == null) 335 { 336 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(CLASS1$4); 337 } 338 target.set(class1); 339 } 340 } 341 342 /** 343 * Unsets the "class" attribute 344 */ 345 public void unsetClass1() 346 { 347 synchronized (monitor()) 348 { 349 check_orphaned(); 350 get_store().remove_attribute(CLASS1$4); 351 } 352 } 353 }