View Javadoc
1   /*
2    * An XML document type.
3    * Localname: FellowshipsSupplemental
4    * Namespace: http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0
5    * Java type: gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.fellowshipsSupplementalV10.impl;
10  /**
11   * A document containing one FellowshipsSupplemental(@http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class FellowshipsSupplementalDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public FellowshipsSupplementalDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName FELLOWSHIPSSUPPLEMENTAL$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "FellowshipsSupplemental");
26      
27      
28      /**
29       * Gets the "FellowshipsSupplemental" element
30       */
31      public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental getFellowshipsSupplemental()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental target = null;
37              target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental)get_store().find_element_user(FELLOWSHIPSSUPPLEMENTAL$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "FellowshipsSupplemental" element
48       */
49      public void setFellowshipsSupplemental(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental fellowshipsSupplemental)
50      {
51          generatedSetterHelperImpl(fellowshipsSupplemental, FELLOWSHIPSSUPPLEMENTAL$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "FellowshipsSupplemental" element
56       */
57      public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental addNewFellowshipsSupplemental()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental target = null;
63              target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental)get_store().add_element_user(FELLOWSHIPSSUPPLEMENTAL$0);
64              return target;
65          }
66      }
67      /**
68       * An XML FellowshipsSupplemental(@http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class FellowshipsSupplementalImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public FellowshipsSupplementalImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName FIELDOFPROJECT$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "FieldOfProject");
83          private static final javax.xml.namespace.QName PROJECTDIRECTORFOS$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "ProjectDirectorFOS");
85          private static final javax.xml.namespace.QName DEFAULTMAILINGADDRESS$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "DefaultMailingAddress");
87          private static final javax.xml.namespace.QName INSTITUTIONALAFFILIATION$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "InstitutionalAffiliation");
89          private static final javax.xml.namespace.QName SCHOLARLYSTATUS$8 = 
90              new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "ScholarlyStatus");
91          private static final javax.xml.namespace.QName REFERENCE1$10 = 
92              new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "Reference1");
93          private static final javax.xml.namespace.QName REFERENCE2$12 = 
94              new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "Reference2");
95          private static final javax.xml.namespace.QName NOMINATINGOFFICIAL$14 = 
96              new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "NominatingOfficial");
97          private static final javax.xml.namespace.QName FORMVERSION$16 = 
98              new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "FormVersion");
99          
100         
101         /**
102          * Gets the "FieldOfProject" element
103          */
104         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType.Enum getFieldOfProject()
105         {
106             synchronized (monitor())
107             {
108                 check_orphaned();
109                 org.apache.xmlbeans.SimpleValue target = null;
110                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIELDOFPROJECT$0, 0);
111                 if (target == null)
112                 {
113                     return null;
114                 }
115                 return (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType.Enum)target.getEnumValue();
116             }
117         }
118         
119         /**
120          * Gets (as xml) the "FieldOfProject" element
121          */
122         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType xgetFieldOfProject()
123         {
124             synchronized (monitor())
125             {
126                 check_orphaned();
127                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType target = null;
128                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType)get_store().find_element_user(FIELDOFPROJECT$0, 0);
129                 return target;
130             }
131         }
132         
133         /**
134          * Sets the "FieldOfProject" element
135          */
136         public void setFieldOfProject(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType.Enum fieldOfProject)
137         {
138             synchronized (monitor())
139             {
140                 check_orphaned();
141                 org.apache.xmlbeans.SimpleValue target = null;
142                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIELDOFPROJECT$0, 0);
143                 if (target == null)
144                 {
145                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FIELDOFPROJECT$0);
146                 }
147                 target.setEnumValue(fieldOfProject);
148             }
149         }
150         
151         /**
152          * Sets (as xml) the "FieldOfProject" element
153          */
154         public void xsetFieldOfProject(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType fieldOfProject)
155         {
156             synchronized (monitor())
157             {
158                 check_orphaned();
159                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType target = null;
160                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType)get_store().find_element_user(FIELDOFPROJECT$0, 0);
161                 if (target == null)
162                 {
163                     target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType)get_store().add_element_user(FIELDOFPROJECT$0);
164                 }
165                 target.set(fieldOfProject);
166             }
167         }
168         
169         /**
170          * Gets the "ProjectDirectorFOS" element
171          */
172         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType.Enum getProjectDirectorFOS()
173         {
174             synchronized (monitor())
175             {
176                 check_orphaned();
177                 org.apache.xmlbeans.SimpleValue target = null;
178                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROJECTDIRECTORFOS$2, 0);
179                 if (target == null)
180                 {
181                     return null;
182                 }
183                 return (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType.Enum)target.getEnumValue();
184             }
185         }
186         
187         /**
188          * Gets (as xml) the "ProjectDirectorFOS" element
189          */
190         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType xgetProjectDirectorFOS()
191         {
192             synchronized (monitor())
193             {
194                 check_orphaned();
195                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType target = null;
196                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType)get_store().find_element_user(PROJECTDIRECTORFOS$2, 0);
197                 return target;
198             }
199         }
200         
201         /**
202          * Sets the "ProjectDirectorFOS" element
203          */
204         public void setProjectDirectorFOS(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType.Enum projectDirectorFOS)
205         {
206             synchronized (monitor())
207             {
208                 check_orphaned();
209                 org.apache.xmlbeans.SimpleValue target = null;
210                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROJECTDIRECTORFOS$2, 0);
211                 if (target == null)
212                 {
213                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROJECTDIRECTORFOS$2);
214                 }
215                 target.setEnumValue(projectDirectorFOS);
216             }
217         }
218         
219         /**
220          * Sets (as xml) the "ProjectDirectorFOS" element
221          */
222         public void xsetProjectDirectorFOS(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType projectDirectorFOS)
223         {
224             synchronized (monitor())
225             {
226                 check_orphaned();
227                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType target = null;
228                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType)get_store().find_element_user(PROJECTDIRECTORFOS$2, 0);
229                 if (target == null)
230                 {
231                     target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalFieldDataType)get_store().add_element_user(PROJECTDIRECTORFOS$2);
232                 }
233                 target.set(projectDirectorFOS);
234             }
235         }
236         
237         /**
238          * Gets the "DefaultMailingAddress" element
239          */
240         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress.Enum getDefaultMailingAddress()
241         {
242             synchronized (monitor())
243             {
244                 check_orphaned();
245                 org.apache.xmlbeans.SimpleValue target = null;
246                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DEFAULTMAILINGADDRESS$4, 0);
247                 if (target == null)
248                 {
249                     return null;
250                 }
251                 return (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress.Enum)target.getEnumValue();
252             }
253         }
254         
255         /**
256          * Gets (as xml) the "DefaultMailingAddress" element
257          */
258         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress xgetDefaultMailingAddress()
259         {
260             synchronized (monitor())
261             {
262                 check_orphaned();
263                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress target = null;
264                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress)get_store().find_element_user(DEFAULTMAILINGADDRESS$4, 0);
265                 return target;
266             }
267         }
268         
269         /**
270          * Sets the "DefaultMailingAddress" element
271          */
272         public void setDefaultMailingAddress(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress.Enum defaultMailingAddress)
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(DEFAULTMAILINGADDRESS$4, 0);
279                 if (target == null)
280                 {
281                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DEFAULTMAILINGADDRESS$4);
282                 }
283                 target.setEnumValue(defaultMailingAddress);
284             }
285         }
286         
287         /**
288          * Sets (as xml) the "DefaultMailingAddress" element
289          */
290         public void xsetDefaultMailingAddress(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress defaultMailingAddress)
291         {
292             synchronized (monitor())
293             {
294                 check_orphaned();
295                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress target = null;
296                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress)get_store().find_element_user(DEFAULTMAILINGADDRESS$4, 0);
297                 if (target == null)
298                 {
299                     target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress)get_store().add_element_user(DEFAULTMAILINGADDRESS$4);
300                 }
301                 target.set(defaultMailingAddress);
302             }
303         }
304         
305         /**
306          * Gets the "InstitutionalAffiliation" element
307          */
308         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.InstitutionalAffiliation getInstitutionalAffiliation()
309         {
310             synchronized (monitor())
311             {
312                 check_orphaned();
313                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.InstitutionalAffiliation target = null;
314                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.InstitutionalAffiliation)get_store().find_element_user(INSTITUTIONALAFFILIATION$6, 0);
315                 if (target == null)
316                 {
317                     return null;
318                 }
319                 return target;
320             }
321         }
322         
323         /**
324          * Sets the "InstitutionalAffiliation" element
325          */
326         public void setInstitutionalAffiliation(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.InstitutionalAffiliation institutionalAffiliation)
327         {
328             generatedSetterHelperImpl(institutionalAffiliation, INSTITUTIONALAFFILIATION$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
329         }
330         
331         /**
332          * Appends and returns a new empty "InstitutionalAffiliation" element
333          */
334         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.InstitutionalAffiliation addNewInstitutionalAffiliation()
335         {
336             synchronized (monitor())
337             {
338                 check_orphaned();
339                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.InstitutionalAffiliation target = null;
340                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.InstitutionalAffiliation)get_store().add_element_user(INSTITUTIONALAFFILIATION$6);
341                 return target;
342             }
343         }
344         
345         /**
346          * Gets the "ScholarlyStatus" element
347          */
348         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus.Enum getScholarlyStatus()
349         {
350             synchronized (monitor())
351             {
352                 check_orphaned();
353                 org.apache.xmlbeans.SimpleValue target = null;
354                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHOLARLYSTATUS$8, 0);
355                 if (target == null)
356                 {
357                     return null;
358                 }
359                 return (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus.Enum)target.getEnumValue();
360             }
361         }
362         
363         /**
364          * Gets (as xml) the "ScholarlyStatus" element
365          */
366         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus xgetScholarlyStatus()
367         {
368             synchronized (monitor())
369             {
370                 check_orphaned();
371                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus target = null;
372                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus)get_store().find_element_user(SCHOLARLYSTATUS$8, 0);
373                 return target;
374             }
375         }
376         
377         /**
378          * Sets the "ScholarlyStatus" element
379          */
380         public void setScholarlyStatus(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus.Enum scholarlyStatus)
381         {
382             synchronized (monitor())
383             {
384                 check_orphaned();
385                 org.apache.xmlbeans.SimpleValue target = null;
386                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHOLARLYSTATUS$8, 0);
387                 if (target == null)
388                 {
389                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SCHOLARLYSTATUS$8);
390                 }
391                 target.setEnumValue(scholarlyStatus);
392             }
393         }
394         
395         /**
396          * Sets (as xml) the "ScholarlyStatus" element
397          */
398         public void xsetScholarlyStatus(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus scholarlyStatus)
399         {
400             synchronized (monitor())
401             {
402                 check_orphaned();
403                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus target = null;
404                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus)get_store().find_element_user(SCHOLARLYSTATUS$8, 0);
405                 if (target == null)
406                 {
407                     target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus)get_store().add_element_user(SCHOLARLYSTATUS$8);
408                 }
409                 target.set(scholarlyStatus);
410             }
411         }
412         
413         /**
414          * Gets the "Reference1" element
415          */
416         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType getReference1()
417         {
418             synchronized (monitor())
419             {
420                 check_orphaned();
421                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType target = null;
422                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType)get_store().find_element_user(REFERENCE1$10, 0);
423                 if (target == null)
424                 {
425                     return null;
426                 }
427                 return target;
428             }
429         }
430         
431         /**
432          * True if has "Reference1" element
433          */
434         public boolean isSetReference1()
435         {
436             synchronized (monitor())
437             {
438                 check_orphaned();
439                 return get_store().count_elements(REFERENCE1$10) != 0;
440             }
441         }
442         
443         /**
444          * Sets the "Reference1" element
445          */
446         public void setReference1(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType reference1)
447         {
448             generatedSetterHelperImpl(reference1, REFERENCE1$10, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
449         }
450         
451         /**
452          * Appends and returns a new empty "Reference1" element
453          */
454         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType addNewReference1()
455         {
456             synchronized (monitor())
457             {
458                 check_orphaned();
459                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType target = null;
460                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType)get_store().add_element_user(REFERENCE1$10);
461                 return target;
462             }
463         }
464         
465         /**
466          * Unsets the "Reference1" element
467          */
468         public void unsetReference1()
469         {
470             synchronized (monitor())
471             {
472                 check_orphaned();
473                 get_store().remove_element(REFERENCE1$10, 0);
474             }
475         }
476         
477         /**
478          * Gets the "Reference2" element
479          */
480         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType getReference2()
481         {
482             synchronized (monitor())
483             {
484                 check_orphaned();
485                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType target = null;
486                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType)get_store().find_element_user(REFERENCE2$12, 0);
487                 if (target == null)
488                 {
489                     return null;
490                 }
491                 return target;
492             }
493         }
494         
495         /**
496          * True if has "Reference2" element
497          */
498         public boolean isSetReference2()
499         {
500             synchronized (monitor())
501             {
502                 check_orphaned();
503                 return get_store().count_elements(REFERENCE2$12) != 0;
504             }
505         }
506         
507         /**
508          * Sets the "Reference2" element
509          */
510         public void setReference2(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType reference2)
511         {
512             generatedSetterHelperImpl(reference2, REFERENCE2$12, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
513         }
514         
515         /**
516          * Appends and returns a new empty "Reference2" element
517          */
518         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType addNewReference2()
519         {
520             synchronized (monitor())
521             {
522                 check_orphaned();
523                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType target = null;
524                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalReferenceDataType)get_store().add_element_user(REFERENCE2$12);
525                 return target;
526             }
527         }
528         
529         /**
530          * Unsets the "Reference2" element
531          */
532         public void unsetReference2()
533         {
534             synchronized (monitor())
535             {
536                 check_orphaned();
537                 get_store().remove_element(REFERENCE2$12, 0);
538             }
539         }
540         
541         /**
542          * Gets the "NominatingOfficial" element
543          */
544         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.NominatingOfficial getNominatingOfficial()
545         {
546             synchronized (monitor())
547             {
548                 check_orphaned();
549                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.NominatingOfficial target = null;
550                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.NominatingOfficial)get_store().find_element_user(NOMINATINGOFFICIAL$14, 0);
551                 if (target == null)
552                 {
553                     return null;
554                 }
555                 return target;
556             }
557         }
558         
559         /**
560          * Sets the "NominatingOfficial" element
561          */
562         public void setNominatingOfficial(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.NominatingOfficial nominatingOfficial)
563         {
564             generatedSetterHelperImpl(nominatingOfficial, NOMINATINGOFFICIAL$14, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
565         }
566         
567         /**
568          * Appends and returns a new empty "NominatingOfficial" element
569          */
570         public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.NominatingOfficial addNewNominatingOfficial()
571         {
572             synchronized (monitor())
573             {
574                 check_orphaned();
575                 gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.NominatingOfficial target = null;
576                 target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.NominatingOfficial)get_store().add_element_user(NOMINATINGOFFICIAL$14);
577                 return target;
578             }
579         }
580         
581         /**
582          * Gets the "FormVersion" attribute
583          */
584         public java.lang.String getFormVersion()
585         {
586             synchronized (monitor())
587             {
588                 check_orphaned();
589                 org.apache.xmlbeans.SimpleValue target = null;
590                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$16);
591                 if (target == null)
592                 {
593                     target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$16);
594                 }
595                 if (target == null)
596                 {
597                     return null;
598                 }
599                 return target.getStringValue();
600             }
601         }
602         
603         /**
604          * Gets (as xml) the "FormVersion" attribute
605          */
606         public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
607         {
608             synchronized (monitor())
609             {
610                 check_orphaned();
611                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
612                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$16);
613                 if (target == null)
614                 {
615                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$16);
616                 }
617                 return target;
618             }
619         }
620         
621         /**
622          * Sets the "FormVersion" attribute
623          */
624         public void setFormVersion(java.lang.String formVersion)
625         {
626             synchronized (monitor())
627             {
628                 check_orphaned();
629                 org.apache.xmlbeans.SimpleValue target = null;
630                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$16);
631                 if (target == null)
632                 {
633                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$16);
634                 }
635                 target.setStringValue(formVersion);
636             }
637         }
638         
639         /**
640          * Sets (as xml) the "FormVersion" attribute
641          */
642         public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
643         {
644             synchronized (monitor())
645             {
646                 check_orphaned();
647                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
648                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$16);
649                 if (target == null)
650                 {
651                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$16);
652                 }
653                 target.set(formVersion);
654             }
655         }
656         /**
657          * An XML DefaultMailingAddress(@http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0).
658          *
659          * This is an atomic type that is a restriction of gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument$FellowshipsSupplemental$DefaultMailingAddress.
660          */
661         public static class DefaultMailingAddressImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.DefaultMailingAddress
662         {
663             private static final long serialVersionUID = 1L;
664             
665             public DefaultMailingAddressImpl(org.apache.xmlbeans.SchemaType sType)
666             {
667                 super(sType, false);
668             }
669             
670             protected DefaultMailingAddressImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
671             {
672                 super(sType, b);
673             }
674         }
675         /**
676          * An XML InstitutionalAffiliation(@http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0).
677          *
678          * This is a complex type.
679          */
680         public static class InstitutionalAffiliationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.InstitutionalAffiliation
681         {
682             private static final long serialVersionUID = 1L;
683             
684             public InstitutionalAffiliationImpl(org.apache.xmlbeans.SchemaType sType)
685             {
686                 super(sType);
687             }
688             
689             private static final javax.xml.namespace.QName ISAFFILIATED$0 = 
690                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "IsAffiliated");
691             private static final javax.xml.namespace.QName AFFILIATEDINSTITUTION$2 = 
692                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "AffiliatedInstitution");
693             
694             
695             /**
696              * Gets the "IsAffiliated" element
697              */
698             public gov.grants.apply.system.globalLibraryV20.YesNoDataType.Enum getIsAffiliated()
699             {
700                 synchronized (monitor())
701                 {
702                     check_orphaned();
703                     org.apache.xmlbeans.SimpleValue target = null;
704                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISAFFILIATED$0, 0);
705                     if (target == null)
706                     {
707                       return null;
708                     }
709                     return (gov.grants.apply.system.globalLibraryV20.YesNoDataType.Enum)target.getEnumValue();
710                 }
711             }
712             
713             /**
714              * Gets (as xml) the "IsAffiliated" element
715              */
716             public gov.grants.apply.system.globalLibraryV20.YesNoDataType xgetIsAffiliated()
717             {
718                 synchronized (monitor())
719                 {
720                     check_orphaned();
721                     gov.grants.apply.system.globalLibraryV20.YesNoDataType target = null;
722                     target = (gov.grants.apply.system.globalLibraryV20.YesNoDataType)get_store().find_element_user(ISAFFILIATED$0, 0);
723                     return target;
724                 }
725             }
726             
727             /**
728              * Sets the "IsAffiliated" element
729              */
730             public void setIsAffiliated(gov.grants.apply.system.globalLibraryV20.YesNoDataType.Enum isAffiliated)
731             {
732                 synchronized (monitor())
733                 {
734                     check_orphaned();
735                     org.apache.xmlbeans.SimpleValue target = null;
736                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISAFFILIATED$0, 0);
737                     if (target == null)
738                     {
739                       target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ISAFFILIATED$0);
740                     }
741                     target.setEnumValue(isAffiliated);
742                 }
743             }
744             
745             /**
746              * Sets (as xml) the "IsAffiliated" element
747              */
748             public void xsetIsAffiliated(gov.grants.apply.system.globalLibraryV20.YesNoDataType isAffiliated)
749             {
750                 synchronized (monitor())
751                 {
752                     check_orphaned();
753                     gov.grants.apply.system.globalLibraryV20.YesNoDataType target = null;
754                     target = (gov.grants.apply.system.globalLibraryV20.YesNoDataType)get_store().find_element_user(ISAFFILIATED$0, 0);
755                     if (target == null)
756                     {
757                       target = (gov.grants.apply.system.globalLibraryV20.YesNoDataType)get_store().add_element_user(ISAFFILIATED$0);
758                     }
759                     target.set(isAffiliated);
760                 }
761             }
762             
763             /**
764              * Gets the "AffiliatedInstitution" element
765              */
766             public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalAffiliatedInstitutionDataType getAffiliatedInstitution()
767             {
768                 synchronized (monitor())
769                 {
770                     check_orphaned();
771                     gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalAffiliatedInstitutionDataType target = null;
772                     target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalAffiliatedInstitutionDataType)get_store().find_element_user(AFFILIATEDINSTITUTION$2, 0);
773                     if (target == null)
774                     {
775                       return null;
776                     }
777                     return target;
778                 }
779             }
780             
781             /**
782              * True if has "AffiliatedInstitution" element
783              */
784             public boolean isSetAffiliatedInstitution()
785             {
786                 synchronized (monitor())
787                 {
788                     check_orphaned();
789                     return get_store().count_elements(AFFILIATEDINSTITUTION$2) != 0;
790                 }
791             }
792             
793             /**
794              * Sets the "AffiliatedInstitution" element
795              */
796             public void setAffiliatedInstitution(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalAffiliatedInstitutionDataType affiliatedInstitution)
797             {
798                 generatedSetterHelperImpl(affiliatedInstitution, AFFILIATEDINSTITUTION$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
799             }
800             
801             /**
802              * Appends and returns a new empty "AffiliatedInstitution" element
803              */
804             public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalAffiliatedInstitutionDataType addNewAffiliatedInstitution()
805             {
806                 synchronized (monitor())
807                 {
808                     check_orphaned();
809                     gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalAffiliatedInstitutionDataType target = null;
810                     target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalAffiliatedInstitutionDataType)get_store().add_element_user(AFFILIATEDINSTITUTION$2);
811                     return target;
812                 }
813             }
814             
815             /**
816              * Unsets the "AffiliatedInstitution" element
817              */
818             public void unsetAffiliatedInstitution()
819             {
820                 synchronized (monitor())
821                 {
822                     check_orphaned();
823                     get_store().remove_element(AFFILIATEDINSTITUTION$2, 0);
824                 }
825             }
826         }
827         /**
828          * An XML ScholarlyStatus(@http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0).
829          *
830          * This is an atomic type that is a restriction of gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument$FellowshipsSupplemental$ScholarlyStatus.
831          */
832         public static class ScholarlyStatusImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.ScholarlyStatus
833         {
834             private static final long serialVersionUID = 1L;
835             
836             public ScholarlyStatusImpl(org.apache.xmlbeans.SchemaType sType)
837             {
838                 super(sType, false);
839             }
840             
841             protected ScholarlyStatusImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
842             {
843                 super(sType, b);
844             }
845         }
846         /**
847          * An XML NominatingOfficial(@http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0).
848          *
849          * This is a complex type.
850          */
851         public static class NominatingOfficialImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalDocument.FellowshipsSupplemental.NominatingOfficial
852         {
853             private static final long serialVersionUID = 1L;
854             
855             public NominatingOfficialImpl(org.apache.xmlbeans.SchemaType sType)
856             {
857                 super(sType);
858             }
859             
860             private static final javax.xml.namespace.QName ISNOMEXEMPT$0 = 
861                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "IsNomExempt");
862             private static final javax.xml.namespace.QName OFFICIAL$2 = 
863                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/FellowshipsSupplemental-V1.0", "Official");
864             
865             
866             /**
867              * Gets the "IsNomExempt" element
868              */
869             public gov.grants.apply.system.globalLibraryV20.YesNoDataType.Enum getIsNomExempt()
870             {
871                 synchronized (monitor())
872                 {
873                     check_orphaned();
874                     org.apache.xmlbeans.SimpleValue target = null;
875                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISNOMEXEMPT$0, 0);
876                     if (target == null)
877                     {
878                       return null;
879                     }
880                     return (gov.grants.apply.system.globalLibraryV20.YesNoDataType.Enum)target.getEnumValue();
881                 }
882             }
883             
884             /**
885              * Gets (as xml) the "IsNomExempt" element
886              */
887             public gov.grants.apply.system.globalLibraryV20.YesNoDataType xgetIsNomExempt()
888             {
889                 synchronized (monitor())
890                 {
891                     check_orphaned();
892                     gov.grants.apply.system.globalLibraryV20.YesNoDataType target = null;
893                     target = (gov.grants.apply.system.globalLibraryV20.YesNoDataType)get_store().find_element_user(ISNOMEXEMPT$0, 0);
894                     return target;
895                 }
896             }
897             
898             /**
899              * Sets the "IsNomExempt" element
900              */
901             public void setIsNomExempt(gov.grants.apply.system.globalLibraryV20.YesNoDataType.Enum isNomExempt)
902             {
903                 synchronized (monitor())
904                 {
905                     check_orphaned();
906                     org.apache.xmlbeans.SimpleValue target = null;
907                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISNOMEXEMPT$0, 0);
908                     if (target == null)
909                     {
910                       target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ISNOMEXEMPT$0);
911                     }
912                     target.setEnumValue(isNomExempt);
913                 }
914             }
915             
916             /**
917              * Sets (as xml) the "IsNomExempt" element
918              */
919             public void xsetIsNomExempt(gov.grants.apply.system.globalLibraryV20.YesNoDataType isNomExempt)
920             {
921                 synchronized (monitor())
922                 {
923                     check_orphaned();
924                     gov.grants.apply.system.globalLibraryV20.YesNoDataType target = null;
925                     target = (gov.grants.apply.system.globalLibraryV20.YesNoDataType)get_store().find_element_user(ISNOMEXEMPT$0, 0);
926                     if (target == null)
927                     {
928                       target = (gov.grants.apply.system.globalLibraryV20.YesNoDataType)get_store().add_element_user(ISNOMEXEMPT$0);
929                     }
930                     target.set(isNomExempt);
931                 }
932             }
933             
934             /**
935              * Gets the "Official" element
936              */
937             public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalOfficialDataType getOfficial()
938             {
939                 synchronized (monitor())
940                 {
941                     check_orphaned();
942                     gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalOfficialDataType target = null;
943                     target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalOfficialDataType)get_store().find_element_user(OFFICIAL$2, 0);
944                     if (target == null)
945                     {
946                       return null;
947                     }
948                     return target;
949                 }
950             }
951             
952             /**
953              * True if has "Official" element
954              */
955             public boolean isSetOfficial()
956             {
957                 synchronized (monitor())
958                 {
959                     check_orphaned();
960                     return get_store().count_elements(OFFICIAL$2) != 0;
961                 }
962             }
963             
964             /**
965              * Sets the "Official" element
966              */
967             public void setOfficial(gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalOfficialDataType official)
968             {
969                 generatedSetterHelperImpl(official, OFFICIAL$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
970             }
971             
972             /**
973              * Appends and returns a new empty "Official" element
974              */
975             public gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalOfficialDataType addNewOfficial()
976             {
977                 synchronized (monitor())
978                 {
979                     check_orphaned();
980                     gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalOfficialDataType target = null;
981                     target = (gov.grants.apply.forms.fellowshipsSupplementalV10.FellowshipsSupplementalOfficialDataType)get_store().add_element_user(OFFICIAL$2);
982                     return target;
983                 }
984             }
985             
986             /**
987              * Unsets the "Official" element
988              */
989             public void unsetOfficial()
990             {
991                 synchronized (monitor())
992                 {
993                     check_orphaned();
994                     get_store().remove_element(OFFICIAL$2, 0);
995                 }
996             }
997         }
998     }
999 }