View Javadoc
1 /* 2 * An XML document type. 3 * Localname: rating 4 * Namespace: http://mrl.sf.net 5 * Java type: net.sf.mrl.RatingDocument 6 * 7 * Automatically generated - do not modify. 8 */ 9 package net.sf.mrl.impl; 10 /*** 11 * A document containing one rating(@http://mrl.sf.net) element. 12 * 13 * This is a complex type. 14 */ 15 public class RatingDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.RatingDocument 16 { 17 18 public RatingDocumentImpl(org.apache.xmlbeans.SchemaType sType) 19 { 20 super(sType); 21 } 22 23 private static final javax.xml.namespace.QName RATING$0 = 24 new javax.xml.namespace.QName("http://mrl.sf.net", "rating"); 25 26 27 /*** 28 * Gets the "rating" element 29 */ 30 public net.sf.mrl.RatingDocument.Rating getRating() 31 { 32 synchronized (monitor()) 33 { 34 check_orphaned(); 35 net.sf.mrl.RatingDocument.Rating target = null; 36 target = (net.sf.mrl.RatingDocument.Rating)get_store().find_element_user(RATING$0, 0); 37 if (target == null) 38 { 39 return null; 40 } 41 return target; 42 } 43 } 44 45 /*** 46 * Sets the "rating" element 47 */ 48 public void setRating(net.sf.mrl.RatingDocument.Rating rating) 49 { 50 synchronized (monitor()) 51 { 52 check_orphaned(); 53 net.sf.mrl.RatingDocument.Rating target = null; 54 target = (net.sf.mrl.RatingDocument.Rating)get_store().find_element_user(RATING$0, 0); 55 if (target == null) 56 { 57 target = (net.sf.mrl.RatingDocument.Rating)get_store().add_element_user(RATING$0); 58 } 59 target.set(rating); 60 } 61 } 62 63 /*** 64 * Appends and returns a new empty "rating" element 65 */ 66 public net.sf.mrl.RatingDocument.Rating addNewRating() 67 { 68 synchronized (monitor()) 69 { 70 check_orphaned(); 71 net.sf.mrl.RatingDocument.Rating target; 72 target = (net.sf.mrl.RatingDocument.Rating)get_store().add_element_user(RATING$0); 73 return target; 74 } 75 } 76 /*** 77 * An XML rating(@http://mrl.sf.net). 78 * 79 * This is a complex type. 80 */ 81 public static class RatingImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.RatingDocument.Rating 82 { 83 84 public RatingImpl(org.apache.xmlbeans.SchemaType sType) 85 { 86 super(sType); 87 } 88 89 private static final javax.xml.namespace.QName NAME$0 = 90 new javax.xml.namespace.QName("http://mrl.sf.net", "name"); 91 private static final javax.xml.namespace.QName VALUE$2 = 92 new javax.xml.namespace.QName("http://mrl.sf.net", "value"); 93 94 95 /*** 96 * Gets the "name" element 97 */ 98 public java.lang.String getName() 99 { 100 synchronized (monitor()) 101 { 102 check_orphaned(); 103 org.apache.xmlbeans.SimpleValue target = null; 104 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0); 105 if (target == null) 106 { 107 return null; 108 } 109 return target.getStringValue(); 110 } 111 } 112 113 /*** 114 * Gets (as xml) the "name" element 115 */ 116 public org.apache.xmlbeans.XmlString xgetName() 117 { 118 synchronized (monitor()) 119 { 120 check_orphaned(); 121 org.apache.xmlbeans.XmlString target = null; 122 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0); 123 return target; 124 } 125 } 126 127 /*** 128 * Sets the "name" element 129 */ 130 public void setName(java.lang.String name) 131 { 132 synchronized (monitor()) 133 { 134 check_orphaned(); 135 org.apache.xmlbeans.SimpleValue target = null; 136 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0); 137 if (target == null) 138 { 139 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0); 140 } 141 target.setStringValue(name); 142 } 143 } 144 145 /*** 146 * Sets (as xml) the "name" element 147 */ 148 public void xsetName(org.apache.xmlbeans.XmlString name) 149 { 150 synchronized (monitor()) 151 { 152 check_orphaned(); 153 org.apache.xmlbeans.XmlString target = null; 154 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0); 155 if (target == null) 156 { 157 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0); 158 } 159 target.set(name); 160 } 161 } 162 163 /*** 164 * Gets the "value" element 165 */ 166 public net.sf.mrl.RatingDocument.Rating.Value getValue() 167 { 168 synchronized (monitor()) 169 { 170 check_orphaned(); 171 net.sf.mrl.RatingDocument.Rating.Value target = null; 172 target = (net.sf.mrl.RatingDocument.Rating.Value)get_store().find_element_user(VALUE$2, 0); 173 if (target == null) 174 { 175 return null; 176 } 177 return target; 178 } 179 } 180 181 /*** 182 * Sets the "value" element 183 */ 184 public void setValue(net.sf.mrl.RatingDocument.Rating.Value value) 185 { 186 synchronized (monitor()) 187 { 188 check_orphaned(); 189 net.sf.mrl.RatingDocument.Rating.Value target = null; 190 target = (net.sf.mrl.RatingDocument.Rating.Value)get_store().find_element_user(VALUE$2, 0); 191 if (target == null) 192 { 193 target = (net.sf.mrl.RatingDocument.Rating.Value)get_store().add_element_user(VALUE$2); 194 } 195 target.set(value); 196 } 197 } 198 199 /*** 200 * Appends and returns a new empty "value" element 201 */ 202 public net.sf.mrl.RatingDocument.Rating.Value addNewValue() 203 { 204 synchronized (monitor()) 205 { 206 check_orphaned(); 207 net.sf.mrl.RatingDocument.Rating.Value target; 208 target = (net.sf.mrl.RatingDocument.Rating.Value)get_store().add_element_user(VALUE$2); 209 return target; 210 } 211 } 212 /*** 213 * An XML value(@http://mrl.sf.net). 214 * 215 * This is an atomic type that is a restriction of org.apache.xmlbeans.XmlInteger. 216 */ 217 public static class ValueImpl extends org.apache.xmlbeans.impl.values.JavaIntegerHolderEx implements net.sf.mrl.RatingDocument.Rating.Value 218 { 219 220 public ValueImpl(org.apache.xmlbeans.SchemaType sType) 221 { 222 super(sType, true); 223 } 224 225 protected ValueImpl(org.apache.xmlbeans.SchemaType sType, boolean b) 226 { 227 super(sType, b); 228 } 229 230 private static final javax.xml.namespace.QName MIN$0 = 231 new javax.xml.namespace.QName("", "min"); 232 private static final javax.xml.namespace.QName MAX$2 = 233 new javax.xml.namespace.QName("", "max"); 234 235 236 /*** 237 * Gets the "min" attribute 238 */ 239 public java.math.BigInteger getMin() 240 { 241 synchronized (monitor()) 242 { 243 check_orphaned(); 244 org.apache.xmlbeans.SimpleValue target = null; 245 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MIN$0); 246 if (target == null) 247 { 248 return null; 249 } 250 return target.getBigIntegerValue(); 251 } 252 } 253 254 /*** 255 * Gets (as xml) the "min" attribute 256 */ 257 public org.apache.xmlbeans.XmlInteger xgetMin() 258 { 259 synchronized (monitor()) 260 { 261 check_orphaned(); 262 org.apache.xmlbeans.XmlInteger target = null; 263 target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MIN$0); 264 return target; 265 } 266 } 267 268 /*** 269 * True if has "min" attribute 270 */ 271 public boolean isSetMin() 272 { 273 synchronized (monitor()) 274 { 275 check_orphaned(); 276 return get_store().find_attribute_user(MIN$0) != null; 277 } 278 } 279 280 /*** 281 * Sets the "min" attribute 282 */ 283 public void setMin(java.math.BigInteger min) 284 { 285 synchronized (monitor()) 286 { 287 check_orphaned(); 288 org.apache.xmlbeans.SimpleValue target = null; 289 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MIN$0); 290 if (target == null) 291 { 292 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MIN$0); 293 } 294 target.setBigIntegerValue(min); 295 } 296 } 297 298 /*** 299 * Sets (as xml) the "min" attribute 300 */ 301 public void xsetMin(org.apache.xmlbeans.XmlInteger min) 302 { 303 synchronized (monitor()) 304 { 305 check_orphaned(); 306 org.apache.xmlbeans.XmlInteger target = null; 307 target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MIN$0); 308 if (target == null) 309 { 310 target = (org.apache.xmlbeans.XmlInteger)get_store().add_attribute_user(MIN$0); 311 } 312 target.set(min); 313 } 314 } 315 316 /*** 317 * Unsets the "min" attribute 318 */ 319 public void unsetMin() 320 { 321 synchronized (monitor()) 322 { 323 check_orphaned(); 324 get_store().remove_attribute(MIN$0); 325 } 326 } 327 328 /*** 329 * Gets the "max" attribute 330 */ 331 public java.math.BigInteger getMax() 332 { 333 synchronized (monitor()) 334 { 335 check_orphaned(); 336 org.apache.xmlbeans.SimpleValue target = null; 337 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MAX$2); 338 if (target == null) 339 { 340 return null; 341 } 342 return target.getBigIntegerValue(); 343 } 344 } 345 346 /*** 347 * Gets (as xml) the "max" attribute 348 */ 349 public org.apache.xmlbeans.XmlInteger xgetMax() 350 { 351 synchronized (monitor()) 352 { 353 check_orphaned(); 354 org.apache.xmlbeans.XmlInteger target = null; 355 target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MAX$2); 356 return target; 357 } 358 } 359 360 /*** 361 * True if has "max" attribute 362 */ 363 public boolean isSetMax() 364 { 365 synchronized (monitor()) 366 { 367 check_orphaned(); 368 return get_store().find_attribute_user(MAX$2) != null; 369 } 370 } 371 372 /*** 373 * Sets the "max" attribute 374 */ 375 public void setMax(java.math.BigInteger max) 376 { 377 synchronized (monitor()) 378 { 379 check_orphaned(); 380 org.apache.xmlbeans.SimpleValue target = null; 381 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MAX$2); 382 if (target == null) 383 { 384 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MAX$2); 385 } 386 target.setBigIntegerValue(max); 387 } 388 } 389 390 /*** 391 * Sets (as xml) the "max" attribute 392 */ 393 public void xsetMax(org.apache.xmlbeans.XmlInteger max) 394 { 395 synchronized (monitor()) 396 { 397 check_orphaned(); 398 org.apache.xmlbeans.XmlInteger target = null; 399 target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MAX$2); 400 if (target == null) 401 { 402 target = (org.apache.xmlbeans.XmlInteger)get_store().add_attribute_user(MAX$2); 403 } 404 target.set(max); 405 } 406 } 407 408 /*** 409 * Unsets the "max" attribute 410 */ 411 public void unsetMax() 412 { 413 synchronized (monitor()) 414 { 415 check_orphaned(); 416 get_store().remove_attribute(MAX$2); 417 } 418 } 419 } 420 } 421 }

This page was automatically generated by Maven