1 /*
2 * An XML document type.
3 * Localname: recipe
4 * Namespace: http://mrl.sf.net
5 * Java type: net.sf.mrl.RecipeDocument
6 *
7 * Automatically generated - do not modify.
8 */
9 package net.sf.mrl.impl;
10 /***
11 * A document containing one recipe(@http://mrl.sf.net) element.
12 *
13 * This is a complex type.
14 */
15 public class RecipeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.RecipeDocument
16 {
17
18 public RecipeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
19 {
20 super(sType);
21 }
22
23 private static final javax.xml.namespace.QName RECIPE$0 =
24 new javax.xml.namespace.QName("http://mrl.sf.net", "recipe");
25
26
27 /***
28 * Gets the "recipe" element
29 */
30 public net.sf.mrl.RecipeDocument.Recipe getRecipe()
31 {
32 synchronized (monitor())
33 {
34 check_orphaned();
35 net.sf.mrl.RecipeDocument.Recipe target = null;
36 target = (net.sf.mrl.RecipeDocument.Recipe)get_store().find_element_user(RECIPE$0, 0);
37 if (target == null)
38 {
39 return null;
40 }
41 return target;
42 }
43 }
44
45 /***
46 * Sets the "recipe" element
47 */
48 public void setRecipe(net.sf.mrl.RecipeDocument.Recipe recipe)
49 {
50 synchronized (monitor())
51 {
52 check_orphaned();
53 net.sf.mrl.RecipeDocument.Recipe target = null;
54 target = (net.sf.mrl.RecipeDocument.Recipe)get_store().find_element_user(RECIPE$0, 0);
55 if (target == null)
56 {
57 target = (net.sf.mrl.RecipeDocument.Recipe)get_store().add_element_user(RECIPE$0);
58 }
59 target.set(recipe);
60 }
61 }
62
63 /***
64 * Appends and returns a new empty "recipe" element
65 */
66 public net.sf.mrl.RecipeDocument.Recipe addNewRecipe()
67 {
68 synchronized (monitor())
69 {
70 check_orphaned();
71 net.sf.mrl.RecipeDocument.Recipe target;
72 target = (net.sf.mrl.RecipeDocument.Recipe)get_store().add_element_user(RECIPE$0);
73 return target;
74 }
75 }
76 /***
77 * An XML recipe(@http://mrl.sf.net).
78 *
79 * This is a complex type.
80 */
81 public static class RecipeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.RecipeDocument.Recipe
82 {
83
84 public RecipeImpl(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 DESCRIPTION$2 =
92 new javax.xml.namespace.QName("http://mrl.sf.net", "description");
93 private static final javax.xml.namespace.QName YIELD$4 =
94 new javax.xml.namespace.QName("http://mrl.sf.net", "yield");
95 private static final javax.xml.namespace.QName CREDIT$6 =
96 new javax.xml.namespace.QName("http://mrl.sf.net", "credit");
97 private static final javax.xml.namespace.QName INGREDIENTS$8 =
98 new javax.xml.namespace.QName("http://mrl.sf.net", "ingredients");
99 private static final javax.xml.namespace.QName DIRECTIONS$10 =
100 new javax.xml.namespace.QName("http://mrl.sf.net", "directions");
101 private static final javax.xml.namespace.QName TIMES$12 =
102 new javax.xml.namespace.QName("http://mrl.sf.net", "times");
103 private static final javax.xml.namespace.QName RATINGS$14 =
104 new javax.xml.namespace.QName("http://mrl.sf.net", "ratings");
105 private static final javax.xml.namespace.QName COMMENTS$16 =
106 new javax.xml.namespace.QName("http://mrl.sf.net", "comments");
107
108
109 /***
110 * Gets the "name" element
111 */
112 public java.lang.String getName()
113 {
114 synchronized (monitor())
115 {
116 check_orphaned();
117 org.apache.xmlbeans.SimpleValue target = null;
118 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
119 if (target == null)
120 {
121 return null;
122 }
123 return target.getStringValue();
124 }
125 }
126
127 /***
128 * Gets (as xml) the "name" element
129 */
130 public org.apache.xmlbeans.XmlString xgetName()
131 {
132 synchronized (monitor())
133 {
134 check_orphaned();
135 org.apache.xmlbeans.XmlString target = null;
136 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
137 return target;
138 }
139 }
140
141 /***
142 * Sets the "name" element
143 */
144 public void setName(java.lang.String name)
145 {
146 synchronized (monitor())
147 {
148 check_orphaned();
149 org.apache.xmlbeans.SimpleValue target = null;
150 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
151 if (target == null)
152 {
153 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
154 }
155 target.setStringValue(name);
156 }
157 }
158
159 /***
160 * Sets (as xml) the "name" element
161 */
162 public void xsetName(org.apache.xmlbeans.XmlString name)
163 {
164 synchronized (monitor())
165 {
166 check_orphaned();
167 org.apache.xmlbeans.XmlString target = null;
168 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
169 if (target == null)
170 {
171 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);
172 }
173 target.set(name);
174 }
175 }
176
177 /***
178 * Gets the "description" element
179 */
180 public java.lang.String getDescription()
181 {
182 synchronized (monitor())
183 {
184 check_orphaned();
185 org.apache.xmlbeans.SimpleValue target = null;
186 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$2, 0);
187 if (target == null)
188 {
189 return null;
190 }
191 return target.getStringValue();
192 }
193 }
194
195 /***
196 * Gets (as xml) the "description" element
197 */
198 public org.apache.xmlbeans.XmlString xgetDescription()
199 {
200 synchronized (monitor())
201 {
202 check_orphaned();
203 org.apache.xmlbeans.XmlString target = null;
204 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);
205 return target;
206 }
207 }
208
209 /***
210 * True if has "description" element
211 */
212 public boolean isSetDescription()
213 {
214 synchronized (monitor())
215 {
216 check_orphaned();
217 return get_store().count_elements(DESCRIPTION$2) != 0;
218 }
219 }
220
221 /***
222 * Sets the "description" element
223 */
224 public void setDescription(java.lang.String description)
225 {
226 synchronized (monitor())
227 {
228 check_orphaned();
229 org.apache.xmlbeans.SimpleValue target = null;
230 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$2, 0);
231 if (target == null)
232 {
233 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$2);
234 }
235 target.setStringValue(description);
236 }
237 }
238
239 /***
240 * Sets (as xml) the "description" element
241 */
242 public void xsetDescription(org.apache.xmlbeans.XmlString description)
243 {
244 synchronized (monitor())
245 {
246 check_orphaned();
247 org.apache.xmlbeans.XmlString target = null;
248 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);
249 if (target == null)
250 {
251 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$2);
252 }
253 target.set(description);
254 }
255 }
256
257 /***
258 * Unsets the "description" element
259 */
260 public void unsetDescription()
261 {
262 synchronized (monitor())
263 {
264 check_orphaned();
265 get_store().remove_element(DESCRIPTION$2, 0);
266 }
267 }
268
269 /***
270 * Gets the "yield" element
271 */
272 public java.lang.String getYield()
273 {
274 synchronized (monitor())
275 {
276 check_orphaned();
277 org.apache.xmlbeans.SimpleValue target = null;
278 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(YIELD$4, 0);
279 if (target == null)
280 {
281 return null;
282 }
283 return target.getStringValue();
284 }
285 }
286
287 /***
288 * Gets (as xml) the "yield" element
289 */
290 public org.apache.xmlbeans.XmlString xgetYield()
291 {
292 synchronized (monitor())
293 {
294 check_orphaned();
295 org.apache.xmlbeans.XmlString target = null;
296 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(YIELD$4, 0);
297 return target;
298 }
299 }
300
301 /***
302 * True if has "yield" element
303 */
304 public boolean isSetYield()
305 {
306 synchronized (monitor())
307 {
308 check_orphaned();
309 return get_store().count_elements(YIELD$4) != 0;
310 }
311 }
312
313 /***
314 * Sets the "yield" element
315 */
316 public void setYield(java.lang.String yield)
317 {
318 synchronized (monitor())
319 {
320 check_orphaned();
321 org.apache.xmlbeans.SimpleValue target = null;
322 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(YIELD$4, 0);
323 if (target == null)
324 {
325 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(YIELD$4);
326 }
327 target.setStringValue(yield);
328 }
329 }
330
331 /***
332 * Sets (as xml) the "yield" element
333 */
334 public void xsetYield(org.apache.xmlbeans.XmlString yield)
335 {
336 synchronized (monitor())
337 {
338 check_orphaned();
339 org.apache.xmlbeans.XmlString target = null;
340 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(YIELD$4, 0);
341 if (target == null)
342 {
343 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(YIELD$4);
344 }
345 target.set(yield);
346 }
347 }
348
349 /***
350 * Unsets the "yield" element
351 */
352 public void unsetYield()
353 {
354 synchronized (monitor())
355 {
356 check_orphaned();
357 get_store().remove_element(YIELD$4, 0);
358 }
359 }
360
361 /***
362 * Gets the "credit" element
363 */
364 public java.lang.String getCredit()
365 {
366 synchronized (monitor())
367 {
368 check_orphaned();
369 org.apache.xmlbeans.SimpleValue target = null;
370 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CREDIT$6, 0);
371 if (target == null)
372 {
373 return null;
374 }
375 return target.getStringValue();
376 }
377 }
378
379 /***
380 * Gets (as xml) the "credit" element
381 */
382 public org.apache.xmlbeans.XmlString xgetCredit()
383 {
384 synchronized (monitor())
385 {
386 check_orphaned();
387 org.apache.xmlbeans.XmlString target = null;
388 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CREDIT$6, 0);
389 return target;
390 }
391 }
392
393 /***
394 * True if has "credit" element
395 */
396 public boolean isSetCredit()
397 {
398 synchronized (monitor())
399 {
400 check_orphaned();
401 return get_store().count_elements(CREDIT$6) != 0;
402 }
403 }
404
405 /***
406 * Sets the "credit" element
407 */
408 public void setCredit(java.lang.String credit)
409 {
410 synchronized (monitor())
411 {
412 check_orphaned();
413 org.apache.xmlbeans.SimpleValue target = null;
414 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CREDIT$6, 0);
415 if (target == null)
416 {
417 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CREDIT$6);
418 }
419 target.setStringValue(credit);
420 }
421 }
422
423 /***
424 * Sets (as xml) the "credit" element
425 */
426 public void xsetCredit(org.apache.xmlbeans.XmlString credit)
427 {
428 synchronized (monitor())
429 {
430 check_orphaned();
431 org.apache.xmlbeans.XmlString target = null;
432 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CREDIT$6, 0);
433 if (target == null)
434 {
435 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CREDIT$6);
436 }
437 target.set(credit);
438 }
439 }
440
441 /***
442 * Unsets the "credit" element
443 */
444 public void unsetCredit()
445 {
446 synchronized (monitor())
447 {
448 check_orphaned();
449 get_store().remove_element(CREDIT$6, 0);
450 }
451 }
452
453 /***
454 * Gets the "ingredients" element
455 */
456 public net.sf.mrl.RecipeDocument.Recipe.Ingredients getIngredients()
457 {
458 synchronized (monitor())
459 {
460 check_orphaned();
461 net.sf.mrl.RecipeDocument.Recipe.Ingredients target = null;
462 target = (net.sf.mrl.RecipeDocument.Recipe.Ingredients)get_store().find_element_user(INGREDIENTS$8, 0);
463 if (target == null)
464 {
465 return null;
466 }
467 return target;
468 }
469 }
470
471 /***
472 * Sets the "ingredients" element
473 */
474 public void setIngredients(net.sf.mrl.RecipeDocument.Recipe.Ingredients ingredients)
475 {
476 synchronized (monitor())
477 {
478 check_orphaned();
479 net.sf.mrl.RecipeDocument.Recipe.Ingredients target = null;
480 target = (net.sf.mrl.RecipeDocument.Recipe.Ingredients)get_store().find_element_user(INGREDIENTS$8, 0);
481 if (target == null)
482 {
483 target = (net.sf.mrl.RecipeDocument.Recipe.Ingredients)get_store().add_element_user(INGREDIENTS$8);
484 }
485 target.set(ingredients);
486 }
487 }
488
489 /***
490 * Appends and returns a new empty "ingredients" element
491 */
492 public net.sf.mrl.RecipeDocument.Recipe.Ingredients addNewIngredients()
493 {
494 synchronized (monitor())
495 {
496 check_orphaned();
497 net.sf.mrl.RecipeDocument.Recipe.Ingredients target;
498 target = (net.sf.mrl.RecipeDocument.Recipe.Ingredients)get_store().add_element_user(INGREDIENTS$8);
499 return target;
500 }
501 }
502
503 /***
504 * Gets the "directions" element
505 */
506 public net.sf.mrl.RecipeDocument.Recipe.Directions getDirections()
507 {
508 synchronized (monitor())
509 {
510 check_orphaned();
511 net.sf.mrl.RecipeDocument.Recipe.Directions target = null;
512 target = (net.sf.mrl.RecipeDocument.Recipe.Directions)get_store().find_element_user(DIRECTIONS$10, 0);
513 if (target == null)
514 {
515 return null;
516 }
517 return target;
518 }
519 }
520
521 /***
522 * Sets the "directions" element
523 */
524 public void setDirections(net.sf.mrl.RecipeDocument.Recipe.Directions directions)
525 {
526 synchronized (monitor())
527 {
528 check_orphaned();
529 net.sf.mrl.RecipeDocument.Recipe.Directions target = null;
530 target = (net.sf.mrl.RecipeDocument.Recipe.Directions)get_store().find_element_user(DIRECTIONS$10, 0);
531 if (target == null)
532 {
533 target = (net.sf.mrl.RecipeDocument.Recipe.Directions)get_store().add_element_user(DIRECTIONS$10);
534 }
535 target.set(directions);
536 }
537 }
538
539 /***
540 * Appends and returns a new empty "directions" element
541 */
542 public net.sf.mrl.RecipeDocument.Recipe.Directions addNewDirections()
543 {
544 synchronized (monitor())
545 {
546 check_orphaned();
547 net.sf.mrl.RecipeDocument.Recipe.Directions target;
548 target = (net.sf.mrl.RecipeDocument.Recipe.Directions)get_store().add_element_user(DIRECTIONS$10);
549 return target;
550 }
551 }
552
553 /***
554 * Gets the "times" element
555 */
556 public net.sf.mrl.RecipeDocument.Recipe.Times getTimes()
557 {
558 synchronized (monitor())
559 {
560 check_orphaned();
561 net.sf.mrl.RecipeDocument.Recipe.Times target = null;
562 target = (net.sf.mrl.RecipeDocument.Recipe.Times)get_store().find_element_user(TIMES$12, 0);
563 if (target == null)
564 {
565 return null;
566 }
567 return target;
568 }
569 }
570
571 /***
572 * True if has "times" element
573 */
574 public boolean isSetTimes()
575 {
576 synchronized (monitor())
577 {
578 check_orphaned();
579 return get_store().count_elements(TIMES$12) != 0;
580 }
581 }
582
583 /***
584 * Sets the "times" element
585 */
586 public void setTimes(net.sf.mrl.RecipeDocument.Recipe.Times times)
587 {
588 synchronized (monitor())
589 {
590 check_orphaned();
591 net.sf.mrl.RecipeDocument.Recipe.Times target = null;
592 target = (net.sf.mrl.RecipeDocument.Recipe.Times)get_store().find_element_user(TIMES$12, 0);
593 if (target == null)
594 {
595 target = (net.sf.mrl.RecipeDocument.Recipe.Times)get_store().add_element_user(TIMES$12);
596 }
597 target.set(times);
598 }
599 }
600
601 /***
602 * Appends and returns a new empty "times" element
603 */
604 public net.sf.mrl.RecipeDocument.Recipe.Times addNewTimes()
605 {
606 synchronized (monitor())
607 {
608 check_orphaned();
609 net.sf.mrl.RecipeDocument.Recipe.Times target;
610 target = (net.sf.mrl.RecipeDocument.Recipe.Times)get_store().add_element_user(TIMES$12);
611 return target;
612 }
613 }
614
615 /***
616 * Unsets the "times" element
617 */
618 public void unsetTimes()
619 {
620 synchronized (monitor())
621 {
622 check_orphaned();
623 get_store().remove_element(TIMES$12, 0);
624 }
625 }
626
627 /***
628 * Gets the "ratings" element
629 */
630 public net.sf.mrl.RecipeDocument.Recipe.Ratings getRatings()
631 {
632 synchronized (monitor())
633 {
634 check_orphaned();
635 net.sf.mrl.RecipeDocument.Recipe.Ratings target = null;
636 target = (net.sf.mrl.RecipeDocument.Recipe.Ratings)get_store().find_element_user(RATINGS$14, 0);
637 if (target == null)
638 {
639 return null;
640 }
641 return target;
642 }
643 }
644
645 /***
646 * True if has "ratings" element
647 */
648 public boolean isSetRatings()
649 {
650 synchronized (monitor())
651 {
652 check_orphaned();
653 return get_store().count_elements(RATINGS$14) != 0;
654 }
655 }
656
657 /***
658 * Sets the "ratings" element
659 */
660 public void setRatings(net.sf.mrl.RecipeDocument.Recipe.Ratings ratings)
661 {
662 synchronized (monitor())
663 {
664 check_orphaned();
665 net.sf.mrl.RecipeDocument.Recipe.Ratings target = null;
666 target = (net.sf.mrl.RecipeDocument.Recipe.Ratings)get_store().find_element_user(RATINGS$14, 0);
667 if (target == null)
668 {
669 target = (net.sf.mrl.RecipeDocument.Recipe.Ratings)get_store().add_element_user(RATINGS$14);
670 }
671 target.set(ratings);
672 }
673 }
674
675 /***
676 * Appends and returns a new empty "ratings" element
677 */
678 public net.sf.mrl.RecipeDocument.Recipe.Ratings addNewRatings()
679 {
680 synchronized (monitor())
681 {
682 check_orphaned();
683 net.sf.mrl.RecipeDocument.Recipe.Ratings target;
684 target = (net.sf.mrl.RecipeDocument.Recipe.Ratings)get_store().add_element_user(RATINGS$14);
685 return target;
686 }
687 }
688
689 /***
690 * Unsets the "ratings" element
691 */
692 public void unsetRatings()
693 {
694 synchronized (monitor())
695 {
696 check_orphaned();
697 get_store().remove_element(RATINGS$14, 0);
698 }
699 }
700
701 /***
702 * Gets the "comments" element
703 */
704 public java.lang.String getComments()
705 {
706 synchronized (monitor())
707 {
708 check_orphaned();
709 org.apache.xmlbeans.SimpleValue target = null;
710 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMENTS$16, 0);
711 if (target == null)
712 {
713 return null;
714 }
715 return target.getStringValue();
716 }
717 }
718
719 /***
720 * Gets (as xml) the "comments" element
721 */
722 public org.apache.xmlbeans.XmlString xgetComments()
723 {
724 synchronized (monitor())
725 {
726 check_orphaned();
727 org.apache.xmlbeans.XmlString target = null;
728 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(COMMENTS$16, 0);
729 return target;
730 }
731 }
732
733 /***
734 * True if has "comments" element
735 */
736 public boolean isSetComments()
737 {
738 synchronized (monitor())
739 {
740 check_orphaned();
741 return get_store().count_elements(COMMENTS$16) != 0;
742 }
743 }
744
745 /***
746 * Sets the "comments" element
747 */
748 public void setComments(java.lang.String comments)
749 {
750 synchronized (monitor())
751 {
752 check_orphaned();
753 org.apache.xmlbeans.SimpleValue target = null;
754 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMENTS$16, 0);
755 if (target == null)
756 {
757 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COMMENTS$16);
758 }
759 target.setStringValue(comments);
760 }
761 }
762
763 /***
764 * Sets (as xml) the "comments" element
765 */
766 public void xsetComments(org.apache.xmlbeans.XmlString comments)
767 {
768 synchronized (monitor())
769 {
770 check_orphaned();
771 org.apache.xmlbeans.XmlString target = null;
772 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(COMMENTS$16, 0);
773 if (target == null)
774 {
775 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(COMMENTS$16);
776 }
777 target.set(comments);
778 }
779 }
780
781 /***
782 * Unsets the "comments" element
783 */
784 public void unsetComments()
785 {
786 synchronized (monitor())
787 {
788 check_orphaned();
789 get_store().remove_element(COMMENTS$16, 0);
790 }
791 }
792 /***
793 * An XML ingredients(@http://mrl.sf.net).
794 *
795 * This is a complex type.
796 */
797 public static class IngredientsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.RecipeDocument.Recipe.Ingredients
798 {
799
800 public IngredientsImpl(org.apache.xmlbeans.SchemaType sType)
801 {
802 super(sType);
803 }
804
805 private static final javax.xml.namespace.QName INGREDIENT$0 =
806 new javax.xml.namespace.QName("http://mrl.sf.net", "ingredient");
807
808
809 /***
810 * Gets array of all "ingredient" elements
811 */
812 public net.sf.mrl.IngredientDocument.Ingredient[] getIngredientArray()
813 {
814 synchronized (monitor())
815 {
816 check_orphaned();
817 java.util.List targetList = new java.util.ArrayList();
818 get_store().find_all_element_users(INGREDIENT$0, targetList);
819 net.sf.mrl.IngredientDocument.Ingredient[] result = new net.sf.mrl.IngredientDocument.Ingredient[targetList.size()];
820 targetList.toArray(result);
821 return result;
822 }
823 }
824
825 /***
826 * Gets ith "ingredient" element
827 */
828 public net.sf.mrl.IngredientDocument.Ingredient getIngredientArray(int i)
829 {
830 synchronized (monitor())
831 {
832 check_orphaned();
833 net.sf.mrl.IngredientDocument.Ingredient target = null;
834 target = (net.sf.mrl.IngredientDocument.Ingredient)get_store().find_element_user(INGREDIENT$0, i);
835 if (target == null)
836 {
837 throw new IndexOutOfBoundsException();
838 }
839 return target;
840 }
841 }
842
843 /***
844 * Returns number of "ingredient" element
845 */
846 public int sizeOfIngredientArray()
847 {
848 synchronized (monitor())
849 {
850 check_orphaned();
851 return get_store().count_elements(INGREDIENT$0);
852 }
853 }
854
855 /***
856 * Sets array of all "ingredient" element
857 */
858 public void setIngredientArray(net.sf.mrl.IngredientDocument.Ingredient[] ingredientArray)
859 {
860 synchronized (monitor())
861 {
862 check_orphaned();
863 arraySetterHelper(ingredientArray, INGREDIENT$0);
864 }
865 }
866
867 /***
868 * Sets ith "ingredient" element
869 */
870 public void setIngredientArray(int i, net.sf.mrl.IngredientDocument.Ingredient ingredient)
871 {
872 synchronized (monitor())
873 {
874 check_orphaned();
875 net.sf.mrl.IngredientDocument.Ingredient target = null;
876 target = (net.sf.mrl.IngredientDocument.Ingredient)get_store().find_element_user(INGREDIENT$0, i);
877 if (target == null)
878 {
879 throw new IndexOutOfBoundsException();
880 }
881 target.set(ingredient);
882 }
883 }
884
885 /***
886 * Inserts and returns a new empty value (as xml) as the ith "ingredient" element
887 */
888 public net.sf.mrl.IngredientDocument.Ingredient insertNewIngredient(int i)
889 {
890 synchronized (monitor())
891 {
892 check_orphaned();
893 net.sf.mrl.IngredientDocument.Ingredient target;
894 target = (net.sf.mrl.IngredientDocument.Ingredient)get_store().insert_element_user(INGREDIENT$0, i);
895 return target;
896 }
897 }
898
899 /***
900 * Appends and returns a new empty value (as xml) as the last "ingredient" element
901 */
902 public net.sf.mrl.IngredientDocument.Ingredient addNewIngredient()
903 {
904 synchronized (monitor())
905 {
906 check_orphaned();
907 net.sf.mrl.IngredientDocument.Ingredient target;
908 target = (net.sf.mrl.IngredientDocument.Ingredient)get_store().add_element_user(INGREDIENT$0);
909 return target;
910 }
911 }
912
913 /***
914 * Removes the ith "ingredient" element
915 */
916 public void removeIngredient(int i)
917 {
918 synchronized (monitor())
919 {
920 check_orphaned();
921 get_store().remove_element(INGREDIENT$0, i);
922 }
923 }
924 }
925 /***
926 * An XML directions(@http://mrl.sf.net).
927 *
928 * This is a complex type.
929 */
930 public static class DirectionsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.RecipeDocument.Recipe.Directions
931 {
932
933 public DirectionsImpl(org.apache.xmlbeans.SchemaType sType)
934 {
935 super(sType);
936 }
937
938 private static final javax.xml.namespace.QName STEP$0 =
939 new javax.xml.namespace.QName("http://mrl.sf.net", "step");
940
941
942 /***
943 * Gets array of all "step" elements
944 */
945 public net.sf.mrl.StepDocument.Step[] getStepArray()
946 {
947 synchronized (monitor())
948 {
949 check_orphaned();
950 java.util.List targetList = new java.util.ArrayList();
951 get_store().find_all_element_users(STEP$0, targetList);
952 net.sf.mrl.StepDocument.Step[] result = new net.sf.mrl.StepDocument.Step[targetList.size()];
953 targetList.toArray(result);
954 return result;
955 }
956 }
957
958 /***
959 * Gets ith "step" element
960 */
961 public net.sf.mrl.StepDocument.Step getStepArray(int i)
962 {
963 synchronized (monitor())
964 {
965 check_orphaned();
966 net.sf.mrl.StepDocument.Step target = null;
967 target = (net.sf.mrl.StepDocument.Step)get_store().find_element_user(STEP$0, i);
968 if (target == null)
969 {
970 throw new IndexOutOfBoundsException();
971 }
972 return target;
973 }
974 }
975
976 /***
977 * Returns number of "step" element
978 */
979 public int sizeOfStepArray()
980 {
981 synchronized (monitor())
982 {
983 check_orphaned();
984 return get_store().count_elements(STEP$0);
985 }
986 }
987
988 /***
989 * Sets array of all "step" element
990 */
991 public void setStepArray(net.sf.mrl.StepDocument.Step[] stepArray)
992 {
993 synchronized (monitor())
994 {
995 check_orphaned();
996 arraySetterHelper(stepArray, STEP$0);
997 }
998 }
999
1000 /***
1001 * Sets ith "step" element
1002 */
1003 public void setStepArray(int i, net.sf.mrl.StepDocument.Step step)
1004 {
1005 synchronized (monitor())
1006 {
1007 check_orphaned();
1008 net.sf.mrl.StepDocument.Step target = null;
1009 target = (net.sf.mrl.StepDocument.Step)get_store().find_element_user(STEP$0, i);
1010 if (target == null)
1011 {
1012 throw new IndexOutOfBoundsException();
1013 }
1014 target.set(step);
1015 }
1016 }
1017
1018 /***
1019 * Inserts and returns a new empty value (as xml) as the ith "step" element
1020 */
1021 public net.sf.mrl.StepDocument.Step insertNewStep(int i)
1022 {
1023 synchronized (monitor())
1024 {
1025 check_orphaned();
1026 net.sf.mrl.StepDocument.Step target;
1027 target = (net.sf.mrl.StepDocument.Step)get_store().insert_element_user(STEP$0, i);
1028 return target;
1029 }
1030 }
1031
1032 /***
1033 * Appends and returns a new empty value (as xml) as the last "step" element
1034 */
1035 public net.sf.mrl.StepDocument.Step addNewStep()
1036 {
1037 synchronized (monitor())
1038 {
1039 check_orphaned();
1040 net.sf.mrl.StepDocument.Step target;
1041 target = (net.sf.mrl.StepDocument.Step)get_store().add_element_user(STEP$0);
1042 return target;
1043 }
1044 }
1045
1046 /***
1047 * Removes the ith "step" element
1048 */
1049 public void removeStep(int i)
1050 {
1051 synchronized (monitor())
1052 {
1053 check_orphaned();
1054 get_store().remove_element(STEP$0, i);
1055 }
1056 }
1057 }
1058 /***
1059 * An XML times(@http://mrl.sf.net).
1060 *
1061 * This is a complex type.
1062 */
1063 public static class TimesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.RecipeDocument.Recipe.Times
1064 {
1065
1066 public TimesImpl(org.apache.xmlbeans.SchemaType sType)
1067 {
1068 super(sType);
1069 }
1070
1071 private static final javax.xml.namespace.QName TIME$0 =
1072 new javax.xml.namespace.QName("http://mrl.sf.net", "time");
1073
1074
1075 /***
1076 * Gets array of all "time" elements
1077 */
1078 public net.sf.mrl.TimeDocument.Time[] getTimeArray()
1079 {
1080 synchronized (monitor())
1081 {
1082 check_orphaned();
1083 java.util.List targetList = new java.util.ArrayList();
1084 get_store().find_all_element_users(TIME$0, targetList);
1085 net.sf.mrl.TimeDocument.Time[] result = new net.sf.mrl.TimeDocument.Time[targetList.size()];
1086 targetList.toArray(result);
1087 return result;
1088 }
1089 }
1090
1091 /***
1092 * Gets ith "time" element
1093 */
1094 public net.sf.mrl.TimeDocument.Time getTimeArray(int i)
1095 {
1096 synchronized (monitor())
1097 {
1098 check_orphaned();
1099 net.sf.mrl.TimeDocument.Time target = null;
1100 target = (net.sf.mrl.TimeDocument.Time)get_store().find_element_user(TIME$0, i);
1101 if (target == null)
1102 {
1103 throw new IndexOutOfBoundsException();
1104 }
1105 return target;
1106 }
1107 }
1108
1109 /***
1110 * Returns number of "time" element
1111 */
1112 public int sizeOfTimeArray()
1113 {
1114 synchronized (monitor())
1115 {
1116 check_orphaned();
1117 return get_store().count_elements(TIME$0);
1118 }
1119 }
1120
1121 /***
1122 * Sets array of all "time" element
1123 */
1124 public void setTimeArray(net.sf.mrl.TimeDocument.Time[] timeArray)
1125 {
1126 synchronized (monitor())
1127 {
1128 check_orphaned();
1129 arraySetterHelper(timeArray, TIME$0);
1130 }
1131 }
1132
1133 /***
1134 * Sets ith "time" element
1135 */
1136 public void setTimeArray(int i, net.sf.mrl.TimeDocument.Time time)
1137 {
1138 synchronized (monitor())
1139 {
1140 check_orphaned();
1141 net.sf.mrl.TimeDocument.Time target = null;
1142 target = (net.sf.mrl.TimeDocument.Time)get_store().find_element_user(TIME$0, i);
1143 if (target == null)
1144 {
1145 throw new IndexOutOfBoundsException();
1146 }
1147 target.set(time);
1148 }
1149 }
1150
1151 /***
1152 * Inserts and returns a new empty value (as xml) as the ith "time" element
1153 */
1154 public net.sf.mrl.TimeDocument.Time insertNewTime(int i)
1155 {
1156 synchronized (monitor())
1157 {
1158 check_orphaned();
1159 net.sf.mrl.TimeDocument.Time target;
1160 target = (net.sf.mrl.TimeDocument.Time)get_store().insert_element_user(TIME$0, i);
1161 return target;
1162 }
1163 }
1164
1165 /***
1166 * Appends and returns a new empty value (as xml) as the last "time" element
1167 */
1168 public net.sf.mrl.TimeDocument.Time addNewTime()
1169 {
1170 synchronized (monitor())
1171 {
1172 check_orphaned();
1173 net.sf.mrl.TimeDocument.Time target;
1174 target = (net.sf.mrl.TimeDocument.Time)get_store().add_element_user(TIME$0);
1175 return target;
1176 }
1177 }
1178
1179 /***
1180 * Removes the ith "time" element
1181 */
1182 public void removeTime(int i)
1183 {
1184 synchronized (monitor())
1185 {
1186 check_orphaned();
1187 get_store().remove_element(TIME$0, i);
1188 }
1189 }
1190 }
1191 /***
1192 * An XML ratings(@http://mrl.sf.net).
1193 *
1194 * This is a complex type.
1195 */
1196 public static class RatingsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.RecipeDocument.Recipe.Ratings
1197 {
1198
1199 public RatingsImpl(org.apache.xmlbeans.SchemaType sType)
1200 {
1201 super(sType);
1202 }
1203
1204 private static final javax.xml.namespace.QName RATING$0 =
1205 new javax.xml.namespace.QName("http://mrl.sf.net", "rating");
1206
1207
1208 /***
1209 * Gets array of all "rating" elements
1210 */
1211 public net.sf.mrl.RatingDocument.Rating[] getRatingArray()
1212 {
1213 synchronized (monitor())
1214 {
1215 check_orphaned();
1216 java.util.List targetList = new java.util.ArrayList();
1217 get_store().find_all_element_users(RATING$0, targetList);
1218 net.sf.mrl.RatingDocument.Rating[] result = new net.sf.mrl.RatingDocument.Rating[targetList.size()];
1219 targetList.toArray(result);
1220 return result;
1221 }
1222 }
1223
1224 /***
1225 * Gets ith "rating" element
1226 */
1227 public net.sf.mrl.RatingDocument.Rating getRatingArray(int i)
1228 {
1229 synchronized (monitor())
1230 {
1231 check_orphaned();
1232 net.sf.mrl.RatingDocument.Rating target = null;
1233 target = (net.sf.mrl.RatingDocument.Rating)get_store().find_element_user(RATING$0, i);
1234 if (target == null)
1235 {
1236 throw new IndexOutOfBoundsException();
1237 }
1238 return target;
1239 }
1240 }
1241
1242 /***
1243 * Returns number of "rating" element
1244 */
1245 public int sizeOfRatingArray()
1246 {
1247 synchronized (monitor())
1248 {
1249 check_orphaned();
1250 return get_store().count_elements(RATING$0);
1251 }
1252 }
1253
1254 /***
1255 * Sets array of all "rating" element
1256 */
1257 public void setRatingArray(net.sf.mrl.RatingDocument.Rating[] ratingArray)
1258 {
1259 synchronized (monitor())
1260 {
1261 check_orphaned();
1262 arraySetterHelper(ratingArray, RATING$0);
1263 }
1264 }
1265
1266 /***
1267 * Sets ith "rating" element
1268 */
1269 public void setRatingArray(int i, net.sf.mrl.RatingDocument.Rating rating)
1270 {
1271 synchronized (monitor())
1272 {
1273 check_orphaned();
1274 net.sf.mrl.RatingDocument.Rating target = null;
1275 target = (net.sf.mrl.RatingDocument.Rating)get_store().find_element_user(RATING$0, i);
1276 if (target == null)
1277 {
1278 throw new IndexOutOfBoundsException();
1279 }
1280 target.set(rating);
1281 }
1282 }
1283
1284 /***
1285 * Inserts and returns a new empty value (as xml) as the ith "rating" element
1286 */
1287 public net.sf.mrl.RatingDocument.Rating insertNewRating(int i)
1288 {
1289 synchronized (monitor())
1290 {
1291 check_orphaned();
1292 net.sf.mrl.RatingDocument.Rating target;
1293 target = (net.sf.mrl.RatingDocument.Rating)get_store().insert_element_user(RATING$0, i);
1294 return target;
1295 }
1296 }
1297
1298 /***
1299 * Appends and returns a new empty value (as xml) as the last "rating" element
1300 */
1301 public net.sf.mrl.RatingDocument.Rating addNewRating()
1302 {
1303 synchronized (monitor())
1304 {
1305 check_orphaned();
1306 net.sf.mrl.RatingDocument.Rating target;
1307 target = (net.sf.mrl.RatingDocument.Rating)get_store().add_element_user(RATING$0);
1308 return target;
1309 }
1310 }
1311
1312 /***
1313 * Removes the ith "rating" element
1314 */
1315 public void removeRating(int i)
1316 {
1317 synchronized (monitor())
1318 {
1319 check_orphaned();
1320 get_store().remove_element(RATING$0, i);
1321 }
1322 }
1323 }
1324 }
1325 }
This page was automatically generated by Maven