1
2
3
4
5
6
7
8
9 package gov.grants.apply.forms.ptfpEligibleEquipmentV10.impl;
10
11
12
13
14
15 public class PTFPEligibleEquipmentDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.ptfpEligibleEquipmentV10.PTFPEligibleEquipmentDocument
16 {
17 private static final long serialVersionUID = 1L;
18
19 public PTFPEligibleEquipmentDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20 {
21 super(sType);
22 }
23
24 private static final javax.xml.namespace.QName PTFPELIGIBLEEQUIPMENT$0 =
25 new javax.xml.namespace.QName("http://apply.grants.gov/forms/PTFP_EligibleEquipment-V1.0", "PTFP_EligibleEquipment");
26
27
28
29
30
31 public gov.grants.apply.forms.ptfpEligibleEquipmentV10.PTFPEligibleEquipmentDocument.PTFPEligibleEquipment getPTFPEligibleEquipment()
32 {
33 synchronized (monitor())
34 {
35 check_orphaned();
36 gov.grants.apply.forms.ptfpEligibleEquipmentV10.PTFPEligibleEquipmentDocument.PTFPEligibleEquipment target = null;
37 target = (gov.grants.apply.forms.ptfpEligibleEquipmentV10.PTFPEligibleEquipmentDocument.PTFPEligibleEquipment)get_store().find_element_user(PTFPELIGIBLEEQUIPMENT$0, 0);
38 if (target == null)
39 {
40 return null;
41 }
42 return target;
43 }
44 }
45
46
47
48
49 public void setPTFPEligibleEquipment(gov.grants.apply.forms.ptfpEligibleEquipmentV10.PTFPEligibleEquipmentDocument.PTFPEligibleEquipment ptfpEligibleEquipment)
50 {
51 generatedSetterHelperImpl(ptfpEligibleEquipment, PTFPELIGIBLEEQUIPMENT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52 }
53
54
55
56
57 public gov.grants.apply.forms.ptfpEligibleEquipmentV10.PTFPEligibleEquipmentDocument.PTFPEligibleEquipment addNewPTFPEligibleEquipment()
58 {
59 synchronized (monitor())
60 {
61 check_orphaned();
62 gov.grants.apply.forms.ptfpEligibleEquipmentV10.PTFPEligibleEquipmentDocument.PTFPEligibleEquipment target = null;
63 target = (gov.grants.apply.forms.ptfpEligibleEquipmentV10.PTFPEligibleEquipmentDocument.PTFPEligibleEquipment)get_store().add_element_user(PTFPELIGIBLEEQUIPMENT$0);
64 return target;
65 }
66 }
67
68
69
70
71
72 public static class PTFPEligibleEquipmentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.ptfpEligibleEquipmentV10.PTFPEligibleEquipmentDocument.PTFPEligibleEquipment
73 {
74 private static final long serialVersionUID = 1L;
75
76 public PTFPEligibleEquipmentImpl(org.apache.xmlbeans.SchemaType sType)
77 {
78 super(sType);
79 }
80
81 private static final javax.xml.namespace.QName ELIGIBLEEQUIPMENTPAGE$0 =
82 new javax.xml.namespace.QName("http://apply.grants.gov/forms/PTFP_EligibleEquipment-V1.0", "EligibleEquipmentPage");
83 private static final javax.xml.namespace.QName FORMVERSION$2 =
84 new javax.xml.namespace.QName("http://apply.grants.gov/forms/PTFP_EligibleEquipment-V1.0", "FormVersion");
85
86
87
88
89
90 public gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType[] getEligibleEquipmentPageArray()
91 {
92 synchronized (monitor())
93 {
94 check_orphaned();
95 java.util.List targetList = new java.util.ArrayList();
96 get_store().find_all_element_users(ELIGIBLEEQUIPMENTPAGE$0, targetList);
97 gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType[] result = new gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType[targetList.size()];
98 targetList.toArray(result);
99 return result;
100 }
101 }
102
103
104
105
106 public gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType getEligibleEquipmentPageArray(int i)
107 {
108 synchronized (monitor())
109 {
110 check_orphaned();
111 gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType target = null;
112 target = (gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType)get_store().find_element_user(ELIGIBLEEQUIPMENTPAGE$0, i);
113 if (target == null)
114 {
115 throw new IndexOutOfBoundsException();
116 }
117 return target;
118 }
119 }
120
121
122
123
124 public int sizeOfEligibleEquipmentPageArray()
125 {
126 synchronized (monitor())
127 {
128 check_orphaned();
129 return get_store().count_elements(ELIGIBLEEQUIPMENTPAGE$0);
130 }
131 }
132
133
134
135
136 public void setEligibleEquipmentPageArray(gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType[] eligibleEquipmentPageArray)
137 {
138 check_orphaned();
139 arraySetterHelper(eligibleEquipmentPageArray, ELIGIBLEEQUIPMENTPAGE$0);
140 }
141
142
143
144
145 public void setEligibleEquipmentPageArray(int i, gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType eligibleEquipmentPage)
146 {
147 generatedSetterHelperImpl(eligibleEquipmentPage, ELIGIBLEEQUIPMENTPAGE$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
148 }
149
150
151
152
153 public gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType insertNewEligibleEquipmentPage(int i)
154 {
155 synchronized (monitor())
156 {
157 check_orphaned();
158 gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType target = null;
159 target = (gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType)get_store().insert_element_user(ELIGIBLEEQUIPMENTPAGE$0, i);
160 return target;
161 }
162 }
163
164
165
166
167 public gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType addNewEligibleEquipmentPage()
168 {
169 synchronized (monitor())
170 {
171 check_orphaned();
172 gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType target = null;
173 target = (gov.grants.apply.forms.ptfpEligibleEquipmentV10.EligibleEquipmentPageDataType)get_store().add_element_user(ELIGIBLEEQUIPMENTPAGE$0);
174 return target;
175 }
176 }
177
178
179
180
181 public void removeEligibleEquipmentPage(int i)
182 {
183 synchronized (monitor())
184 {
185 check_orphaned();
186 get_store().remove_element(ELIGIBLEEQUIPMENTPAGE$0, i);
187 }
188 }
189
190
191
192
193 public java.lang.String getFormVersion()
194 {
195 synchronized (monitor())
196 {
197 check_orphaned();
198 org.apache.xmlbeans.SimpleValue target = null;
199 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$2);
200 if (target == null)
201 {
202 target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$2);
203 }
204 if (target == null)
205 {
206 return null;
207 }
208 return target.getStringValue();
209 }
210 }
211
212
213
214
215 public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
216 {
217 synchronized (monitor())
218 {
219 check_orphaned();
220 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
221 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$2);
222 if (target == null)
223 {
224 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$2);
225 }
226 return target;
227 }
228 }
229
230
231
232
233 public void setFormVersion(java.lang.String formVersion)
234 {
235 synchronized (monitor())
236 {
237 check_orphaned();
238 org.apache.xmlbeans.SimpleValue target = null;
239 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$2);
240 if (target == null)
241 {
242 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$2);
243 }
244 target.setStringValue(formVersion);
245 }
246 }
247
248
249
250
251 public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
252 {
253 synchronized (monitor())
254 {
255 check_orphaned();
256 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
257 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$2);
258 if (target == null)
259 {
260 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$2);
261 }
262 target.set(formVersion);
263 }
264 }
265 }
266 }