1 /*
2 * An XML document type.
3 * Localname: step
4 * Namespace: http://mrl.sf.net
5 * Java type: net.sf.mrl.StepDocument
6 *
7 * Automatically generated - do not modify.
8 */
9 package net.sf.mrl.impl;
10 /***
11 * A document containing one step(@http://mrl.sf.net) element.
12 *
13 * This is a complex type.
14 */
15 public class StepDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.StepDocument
16 {
17
18 public StepDocumentImpl(org.apache.xmlbeans.SchemaType sType)
19 {
20 super(sType);
21 }
22
23 private static final javax.xml.namespace.QName STEP$0 =
24 new javax.xml.namespace.QName("http://mrl.sf.net", "step");
25
26
27 /***
28 * Gets the "step" element
29 */
30 public net.sf.mrl.StepDocument.Step getStep()
31 {
32 synchronized (monitor())
33 {
34 check_orphaned();
35 net.sf.mrl.StepDocument.Step target = null;
36 target = (net.sf.mrl.StepDocument.Step)get_store().find_element_user(STEP$0, 0);
37 if (target == null)
38 {
39 return null;
40 }
41 return target;
42 }
43 }
44
45 /***
46 * Sets the "step" element
47 */
48 public void setStep(net.sf.mrl.StepDocument.Step step)
49 {
50 synchronized (monitor())
51 {
52 check_orphaned();
53 net.sf.mrl.StepDocument.Step target = null;
54 target = (net.sf.mrl.StepDocument.Step)get_store().find_element_user(STEP$0, 0);
55 if (target == null)
56 {
57 target = (net.sf.mrl.StepDocument.Step)get_store().add_element_user(STEP$0);
58 }
59 target.set(step);
60 }
61 }
62
63 /***
64 * Appends and returns a new empty "step" element
65 */
66 public net.sf.mrl.StepDocument.Step addNewStep()
67 {
68 synchronized (monitor())
69 {
70 check_orphaned();
71 net.sf.mrl.StepDocument.Step target;
72 target = (net.sf.mrl.StepDocument.Step)get_store().add_element_user(STEP$0);
73 return target;
74 }
75 }
76 /***
77 * An XML step(@http://mrl.sf.net).
78 *
79 * This is a complex type.
80 */
81 public static class StepImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.sf.mrl.StepDocument.Step
82 {
83
84 public StepImpl(org.apache.xmlbeans.SchemaType sType)
85 {
86 super(sType);
87 }
88
89 private static final javax.xml.namespace.QName AMOUNT$0 =
90 new javax.xml.namespace.QName("http://mrl.sf.net", "amount");
91
92
93 /***
94 * Gets array of all "amount" elements
95 */
96 public net.sf.mrl.AmountDocument.Amount[] getAmountArray()
97 {
98 synchronized (monitor())
99 {
100 check_orphaned();
101 java.util.List targetList = new java.util.ArrayList();
102 get_store().find_all_element_users(AMOUNT$0, targetList);
103 net.sf.mrl.AmountDocument.Amount[] result = new net.sf.mrl.AmountDocument.Amount[targetList.size()];
104 targetList.toArray(result);
105 return result;
106 }
107 }
108
109 /***
110 * Gets ith "amount" element
111 */
112 public net.sf.mrl.AmountDocument.Amount getAmountArray(int i)
113 {
114 synchronized (monitor())
115 {
116 check_orphaned();
117 net.sf.mrl.AmountDocument.Amount target = null;
118 target = (net.sf.mrl.AmountDocument.Amount)get_store().find_element_user(AMOUNT$0, i);
119 if (target == null)
120 {
121 throw new IndexOutOfBoundsException();
122 }
123 return target;
124 }
125 }
126
127 /***
128 * Returns number of "amount" element
129 */
130 public int sizeOfAmountArray()
131 {
132 synchronized (monitor())
133 {
134 check_orphaned();
135 return get_store().count_elements(AMOUNT$0);
136 }
137 }
138
139 /***
140 * Sets array of all "amount" element
141 */
142 public void setAmountArray(net.sf.mrl.AmountDocument.Amount[] amountArray)
143 {
144 synchronized (monitor())
145 {
146 check_orphaned();
147 arraySetterHelper(amountArray, AMOUNT$0);
148 }
149 }
150
151 /***
152 * Sets ith "amount" element
153 */
154 public void setAmountArray(int i, net.sf.mrl.AmountDocument.Amount amount)
155 {
156 synchronized (monitor())
157 {
158 check_orphaned();
159 net.sf.mrl.AmountDocument.Amount target = null;
160 target = (net.sf.mrl.AmountDocument.Amount)get_store().find_element_user(AMOUNT$0, i);
161 if (target == null)
162 {
163 throw new IndexOutOfBoundsException();
164 }
165 target.set(amount);
166 }
167 }
168
169 /***
170 * Inserts and returns a new empty value (as xml) as the ith "amount" element
171 */
172 public net.sf.mrl.AmountDocument.Amount insertNewAmount(int i)
173 {
174 synchronized (monitor())
175 {
176 check_orphaned();
177 net.sf.mrl.AmountDocument.Amount target;
178 target = (net.sf.mrl.AmountDocument.Amount)get_store().insert_element_user(AMOUNT$0, i);
179 return target;
180 }
181 }
182
183 /***
184 * Appends and returns a new empty value (as xml) as the last "amount" element
185 */
186 public net.sf.mrl.AmountDocument.Amount addNewAmount()
187 {
188 synchronized (monitor())
189 {
190 check_orphaned();
191 net.sf.mrl.AmountDocument.Amount target;
192 target = (net.sf.mrl.AmountDocument.Amount)get_store().add_element_user(AMOUNT$0);
193 return target;
194 }
195 }
196
197 /***
198 * Removes the ith "amount" element
199 */
200 public void removeAmount(int i)
201 {
202 synchronized (monitor())
203 {
204 check_orphaned();
205 get_store().remove_element(AMOUNT$0, i);
206 }
207 }
208 }
209 }
This page was automatically generated by Maven