1
2
3
4
5
6
7
8
9 package gov.grants.apply.forms.rrPersonalData12V12.impl;
10
11
12
13
14
15 public class RRPersonalData12DocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.rrPersonalData12V12.RRPersonalData12Document
16 {
17 private static final long serialVersionUID = 1L;
18
19 public RRPersonalData12DocumentImpl(org.apache.xmlbeans.SchemaType sType)
20 {
21 super(sType);
22 }
23
24 private static final javax.xml.namespace.QName RRPERSONALDATA12$0 =
25 new javax.xml.namespace.QName("http://apply.grants.gov/forms/RR_PersonalData_1_2-V1.2", "RR_PersonalData_1_2");
26
27
28
29
30
31 public gov.grants.apply.forms.rrPersonalData12V12.RRPersonalData12Document.RRPersonalData12 getRRPersonalData12()
32 {
33 synchronized (monitor())
34 {
35 check_orphaned();
36 gov.grants.apply.forms.rrPersonalData12V12.RRPersonalData12Document.RRPersonalData12 target = null;
37 target = (gov.grants.apply.forms.rrPersonalData12V12.RRPersonalData12Document.RRPersonalData12)get_store().find_element_user(RRPERSONALDATA12$0, 0);
38 if (target == null)
39 {
40 return null;
41 }
42 return target;
43 }
44 }
45
46
47
48
49 public void setRRPersonalData12(gov.grants.apply.forms.rrPersonalData12V12.RRPersonalData12Document.RRPersonalData12 rrPersonalData12)
50 {
51 generatedSetterHelperImpl(rrPersonalData12, RRPERSONALDATA12$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52 }
53
54
55
56
57 public gov.grants.apply.forms.rrPersonalData12V12.RRPersonalData12Document.RRPersonalData12 addNewRRPersonalData12()
58 {
59 synchronized (monitor())
60 {
61 check_orphaned();
62 gov.grants.apply.forms.rrPersonalData12V12.RRPersonalData12Document.RRPersonalData12 target = null;
63 target = (gov.grants.apply.forms.rrPersonalData12V12.RRPersonalData12Document.RRPersonalData12)get_store().add_element_user(RRPERSONALDATA12$0);
64 return target;
65 }
66 }
67
68
69
70
71
72 public static class RRPersonalData12Impl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.rrPersonalData12V12.RRPersonalData12Document.RRPersonalData12
73 {
74 private static final long serialVersionUID = 1L;
75
76 public RRPersonalData12Impl(org.apache.xmlbeans.SchemaType sType)
77 {
78 super(sType);
79 }
80
81 private static final javax.xml.namespace.QName PROJECTDIRECTOR$0 =
82 new javax.xml.namespace.QName("http://apply.grants.gov/forms/RR_PersonalData_1_2-V1.2", "ProjectDirector");
83 private static final javax.xml.namespace.QName COPROJECTDIRECTOR$2 =
84 new javax.xml.namespace.QName("http://apply.grants.gov/forms/RR_PersonalData_1_2-V1.2", "Co-ProjectDirector");
85 private static final javax.xml.namespace.QName FORMVERSION$4 =
86 new javax.xml.namespace.QName("http://apply.grants.gov/forms/RR_PersonalData_1_2-V1.2", "FormVersion");
87
88
89
90
91
92 public gov.grants.apply.forms.rrPersonalData12V12.DirectorType getProjectDirector()
93 {
94 synchronized (monitor())
95 {
96 check_orphaned();
97 gov.grants.apply.forms.rrPersonalData12V12.DirectorType target = null;
98 target = (gov.grants.apply.forms.rrPersonalData12V12.DirectorType)get_store().find_element_user(PROJECTDIRECTOR$0, 0);
99 if (target == null)
100 {
101 return null;
102 }
103 return target;
104 }
105 }
106
107
108
109
110 public void setProjectDirector(gov.grants.apply.forms.rrPersonalData12V12.DirectorType projectDirector)
111 {
112 generatedSetterHelperImpl(projectDirector, PROJECTDIRECTOR$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
113 }
114
115
116
117
118 public gov.grants.apply.forms.rrPersonalData12V12.DirectorType addNewProjectDirector()
119 {
120 synchronized (monitor())
121 {
122 check_orphaned();
123 gov.grants.apply.forms.rrPersonalData12V12.DirectorType target = null;
124 target = (gov.grants.apply.forms.rrPersonalData12V12.DirectorType)get_store().add_element_user(PROJECTDIRECTOR$0);
125 return target;
126 }
127 }
128
129
130
131
132 public gov.grants.apply.forms.rrPersonalData12V12.DirectorType[] getCoProjectDirectorArray()
133 {
134 synchronized (monitor())
135 {
136 check_orphaned();
137 java.util.List targetList = new java.util.ArrayList();
138 get_store().find_all_element_users(COPROJECTDIRECTOR$2, targetList);
139 gov.grants.apply.forms.rrPersonalData12V12.DirectorType[] result = new gov.grants.apply.forms.rrPersonalData12V12.DirectorType[targetList.size()];
140 targetList.toArray(result);
141 return result;
142 }
143 }
144
145
146
147
148 public gov.grants.apply.forms.rrPersonalData12V12.DirectorType getCoProjectDirectorArray(int i)
149 {
150 synchronized (monitor())
151 {
152 check_orphaned();
153 gov.grants.apply.forms.rrPersonalData12V12.DirectorType target = null;
154 target = (gov.grants.apply.forms.rrPersonalData12V12.DirectorType)get_store().find_element_user(COPROJECTDIRECTOR$2, i);
155 if (target == null)
156 {
157 throw new IndexOutOfBoundsException();
158 }
159 return target;
160 }
161 }
162
163
164
165
166 public int sizeOfCoProjectDirectorArray()
167 {
168 synchronized (monitor())
169 {
170 check_orphaned();
171 return get_store().count_elements(COPROJECTDIRECTOR$2);
172 }
173 }
174
175
176
177
178 public void setCoProjectDirectorArray(gov.grants.apply.forms.rrPersonalData12V12.DirectorType[] coProjectDirectorArray)
179 {
180 check_orphaned();
181 arraySetterHelper(coProjectDirectorArray, COPROJECTDIRECTOR$2);
182 }
183
184
185
186
187 public void setCoProjectDirectorArray(int i, gov.grants.apply.forms.rrPersonalData12V12.DirectorType coProjectDirector)
188 {
189 generatedSetterHelperImpl(coProjectDirector, COPROJECTDIRECTOR$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
190 }
191
192
193
194
195 public gov.grants.apply.forms.rrPersonalData12V12.DirectorType insertNewCoProjectDirector(int i)
196 {
197 synchronized (monitor())
198 {
199 check_orphaned();
200 gov.grants.apply.forms.rrPersonalData12V12.DirectorType target = null;
201 target = (gov.grants.apply.forms.rrPersonalData12V12.DirectorType)get_store().insert_element_user(COPROJECTDIRECTOR$2, i);
202 return target;
203 }
204 }
205
206
207
208
209 public gov.grants.apply.forms.rrPersonalData12V12.DirectorType addNewCoProjectDirector()
210 {
211 synchronized (monitor())
212 {
213 check_orphaned();
214 gov.grants.apply.forms.rrPersonalData12V12.DirectorType target = null;
215 target = (gov.grants.apply.forms.rrPersonalData12V12.DirectorType)get_store().add_element_user(COPROJECTDIRECTOR$2);
216 return target;
217 }
218 }
219
220
221
222
223 public void removeCoProjectDirector(int i)
224 {
225 synchronized (monitor())
226 {
227 check_orphaned();
228 get_store().remove_element(COPROJECTDIRECTOR$2, i);
229 }
230 }
231
232
233
234
235 public java.lang.String getFormVersion()
236 {
237 synchronized (monitor())
238 {
239 check_orphaned();
240 org.apache.xmlbeans.SimpleValue target = null;
241 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$4);
242 if (target == null)
243 {
244 target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$4);
245 }
246 if (target == null)
247 {
248 return null;
249 }
250 return target.getStringValue();
251 }
252 }
253
254
255
256
257 public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
258 {
259 synchronized (monitor())
260 {
261 check_orphaned();
262 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
263 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$4);
264 if (target == null)
265 {
266 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$4);
267 }
268 return target;
269 }
270 }
271
272
273
274
275 public void setFormVersion(java.lang.String formVersion)
276 {
277 synchronized (monitor())
278 {
279 check_orphaned();
280 org.apache.xmlbeans.SimpleValue target = null;
281 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$4);
282 if (target == null)
283 {
284 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$4);
285 }
286 target.setStringValue(formVersion);
287 }
288 }
289
290
291
292
293 public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
294 {
295 synchronized (monitor())
296 {
297 check_orphaned();
298 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
299 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$4);
300 if (target == null)
301 {
302 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$4);
303 }
304 target.set(formVersion);
305 }
306 }
307 }
308 }