View Javadoc
1   /*
2    * An XML document type.
3    * Localname: Key_Contacts
4    * Namespace: http://apply.grants.gov/forms/Key_Contacts-V1.0
5    * Java type: gov.grants.apply.forms.keyContactsV10.KeyContactsDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.keyContactsV10.impl;
10  /**
11   * A document containing one Key_Contacts(@http://apply.grants.gov/forms/Key_Contacts-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class KeyContactsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.keyContactsV10.KeyContactsDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public KeyContactsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName KEYCONTACTS$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "Key_Contacts");
26      
27      
28      /**
29       * Gets the "Key_Contacts" element
30       */
31      public gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts getKeyContacts()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts target = null;
37              target = (gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts)get_store().find_element_user(KEYCONTACTS$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "Key_Contacts" element
48       */
49      public void setKeyContacts(gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts keyContacts)
50      {
51          generatedSetterHelperImpl(keyContacts, KEYCONTACTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "Key_Contacts" element
56       */
57      public gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts addNewKeyContacts()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts target = null;
63              target = (gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts)get_store().add_element_user(KEYCONTACTS$0);
64              return target;
65          }
66      }
67      /**
68       * An XML Key_Contacts(@http://apply.grants.gov/forms/Key_Contacts-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class KeyContactsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public KeyContactsImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName APPLICANTORGANIZATIONNAME$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "ApplicantOrganizationName");
83          private static final javax.xml.namespace.QName ROLEONPROJECT$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "RoleOnProject");
85          private static final javax.xml.namespace.QName FORMVERSION$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "FormVersion");
87          
88          
89          /**
90           * Gets the "ApplicantOrganizationName" element
91           */
92          public java.lang.String getApplicantOrganizationName()
93          {
94              synchronized (monitor())
95              {
96                  check_orphaned();
97                  org.apache.xmlbeans.SimpleValue target = null;
98                  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTORGANIZATIONNAME$0, 0);
99                  if (target == null)
100                 {
101                     return null;
102                 }
103                 return target.getStringValue();
104             }
105         }
106         
107         /**
108          * Gets (as xml) the "ApplicantOrganizationName" element
109          */
110         public gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType xgetApplicantOrganizationName()
111         {
112             synchronized (monitor())
113             {
114                 check_orphaned();
115                 gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType target = null;
116                 target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().find_element_user(APPLICANTORGANIZATIONNAME$0, 0);
117                 return target;
118             }
119         }
120         
121         /**
122          * Sets the "ApplicantOrganizationName" element
123          */
124         public void setApplicantOrganizationName(java.lang.String applicantOrganizationName)
125         {
126             synchronized (monitor())
127             {
128                 check_orphaned();
129                 org.apache.xmlbeans.SimpleValue target = null;
130                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTORGANIZATIONNAME$0, 0);
131                 if (target == null)
132                 {
133                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(APPLICANTORGANIZATIONNAME$0);
134                 }
135                 target.setStringValue(applicantOrganizationName);
136             }
137         }
138         
139         /**
140          * Sets (as xml) the "ApplicantOrganizationName" element
141          */
142         public void xsetApplicantOrganizationName(gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType applicantOrganizationName)
143         {
144             synchronized (monitor())
145             {
146                 check_orphaned();
147                 gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType target = null;
148                 target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().find_element_user(APPLICANTORGANIZATIONNAME$0, 0);
149                 if (target == null)
150                 {
151                     target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().add_element_user(APPLICANTORGANIZATIONNAME$0);
152                 }
153                 target.set(applicantOrganizationName);
154             }
155         }
156         
157         /**
158          * Gets array of all "RoleOnProject" elements
159          */
160         public gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject[] getRoleOnProjectArray()
161         {
162             synchronized (monitor())
163             {
164                 check_orphaned();
165                 java.util.List targetList = new java.util.ArrayList();
166                 get_store().find_all_element_users(ROLEONPROJECT$2, targetList);
167                 gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject[] result = new gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject[targetList.size()];
168                 targetList.toArray(result);
169                 return result;
170             }
171         }
172         
173         /**
174          * Gets ith "RoleOnProject" element
175          */
176         public gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject getRoleOnProjectArray(int i)
177         {
178             synchronized (monitor())
179             {
180                 check_orphaned();
181                 gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject target = null;
182                 target = (gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject)get_store().find_element_user(ROLEONPROJECT$2, i);
183                 if (target == null)
184                 {
185                     throw new IndexOutOfBoundsException();
186                 }
187                 return target;
188             }
189         }
190         
191         /**
192          * Returns number of "RoleOnProject" element
193          */
194         public int sizeOfRoleOnProjectArray()
195         {
196             synchronized (monitor())
197             {
198                 check_orphaned();
199                 return get_store().count_elements(ROLEONPROJECT$2);
200             }
201         }
202         
203         /**
204          * Sets array of all "RoleOnProject" element  WARNING: This method is not atomicaly synchronized.
205          */
206         public void setRoleOnProjectArray(gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject[] roleOnProjectArray)
207         {
208             check_orphaned();
209             arraySetterHelper(roleOnProjectArray, ROLEONPROJECT$2);
210         }
211         
212         /**
213          * Sets ith "RoleOnProject" element
214          */
215         public void setRoleOnProjectArray(int i, gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject roleOnProject)
216         {
217             generatedSetterHelperImpl(roleOnProject, ROLEONPROJECT$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
218         }
219         
220         /**
221          * Inserts and returns a new empty value (as xml) as the ith "RoleOnProject" element
222          */
223         public gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject insertNewRoleOnProject(int i)
224         {
225             synchronized (monitor())
226             {
227                 check_orphaned();
228                 gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject target = null;
229                 target = (gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject)get_store().insert_element_user(ROLEONPROJECT$2, i);
230                 return target;
231             }
232         }
233         
234         /**
235          * Appends and returns a new empty value (as xml) as the last "RoleOnProject" element
236          */
237         public gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject addNewRoleOnProject()
238         {
239             synchronized (monitor())
240             {
241                 check_orphaned();
242                 gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject target = null;
243                 target = (gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject)get_store().add_element_user(ROLEONPROJECT$2);
244                 return target;
245             }
246         }
247         
248         /**
249          * Removes the ith "RoleOnProject" element
250          */
251         public void removeRoleOnProject(int i)
252         {
253             synchronized (monitor())
254             {
255                 check_orphaned();
256                 get_store().remove_element(ROLEONPROJECT$2, i);
257             }
258         }
259         
260         /**
261          * Gets the "FormVersion" attribute
262          */
263         public java.lang.String getFormVersion()
264         {
265             synchronized (monitor())
266             {
267                 check_orphaned();
268                 org.apache.xmlbeans.SimpleValue target = null;
269                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$4);
270                 if (target == null)
271                 {
272                     target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$4);
273                 }
274                 if (target == null)
275                 {
276                     return null;
277                 }
278                 return target.getStringValue();
279             }
280         }
281         
282         /**
283          * Gets (as xml) the "FormVersion" attribute
284          */
285         public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
286         {
287             synchronized (monitor())
288             {
289                 check_orphaned();
290                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
291                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$4);
292                 if (target == null)
293                 {
294                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$4);
295                 }
296                 return target;
297             }
298         }
299         
300         /**
301          * Sets the "FormVersion" attribute
302          */
303         public void setFormVersion(java.lang.String formVersion)
304         {
305             synchronized (monitor())
306             {
307                 check_orphaned();
308                 org.apache.xmlbeans.SimpleValue target = null;
309                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$4);
310                 if (target == null)
311                 {
312                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$4);
313                 }
314                 target.setStringValue(formVersion);
315             }
316         }
317         
318         /**
319          * Sets (as xml) the "FormVersion" attribute
320          */
321         public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
322         {
323             synchronized (monitor())
324             {
325                 check_orphaned();
326                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
327                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$4);
328                 if (target == null)
329                 {
330                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$4);
331                 }
332                 target.set(formVersion);
333             }
334         }
335         /**
336          * An XML RoleOnProject(@http://apply.grants.gov/forms/Key_Contacts-V1.0).
337          *
338          * This is a complex type.
339          */
340         public static class RoleOnProjectImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject
341         {
342             private static final long serialVersionUID = 1L;
343             
344             public RoleOnProjectImpl(org.apache.xmlbeans.SchemaType sType)
345             {
346                 super(sType);
347             }
348             
349             private static final javax.xml.namespace.QName CONTACTPROJECTROLE$0 = 
350                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "ContactProjectRole");
351             private static final javax.xml.namespace.QName CONTACTNAME$2 = 
352                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "ContactName");
353             private static final javax.xml.namespace.QName CONTACTTITLE$4 = 
354                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "ContactTitle");
355             private static final javax.xml.namespace.QName CONTACTORGANIZATIONALAFFILIATION$6 = 
356                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "ContactOrganizationalAffiliation");
357             private static final javax.xml.namespace.QName CONTACTADDRESS$8 = 
358                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "ContactAddress");
359             private static final javax.xml.namespace.QName CONTACTPHONE$10 = 
360                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "ContactPhone");
361             private static final javax.xml.namespace.QName CONTACTFAX$12 = 
362                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "ContactFax");
363             private static final javax.xml.namespace.QName CONTACTEMAIL$14 = 
364                 new javax.xml.namespace.QName("http://apply.grants.gov/forms/Key_Contacts-V1.0", "ContactEmail");
365             
366             
367             /**
368              * Gets the "ContactProjectRole" element
369              */
370             public java.lang.String getContactProjectRole()
371             {
372                 synchronized (monitor())
373                 {
374                     check_orphaned();
375                     org.apache.xmlbeans.SimpleValue target = null;
376                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPROJECTROLE$0, 0);
377                     if (target == null)
378                     {
379                       return null;
380                     }
381                     return target.getStringValue();
382                 }
383             }
384             
385             /**
386              * Gets (as xml) the "ContactProjectRole" element
387              */
388             public gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject.ContactProjectRole xgetContactProjectRole()
389             {
390                 synchronized (monitor())
391                 {
392                     check_orphaned();
393                     gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject.ContactProjectRole target = null;
394                     target = (gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject.ContactProjectRole)get_store().find_element_user(CONTACTPROJECTROLE$0, 0);
395                     return target;
396                 }
397             }
398             
399             /**
400              * Sets the "ContactProjectRole" element
401              */
402             public void setContactProjectRole(java.lang.String contactProjectRole)
403             {
404                 synchronized (monitor())
405                 {
406                     check_orphaned();
407                     org.apache.xmlbeans.SimpleValue target = null;
408                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPROJECTROLE$0, 0);
409                     if (target == null)
410                     {
411                       target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTACTPROJECTROLE$0);
412                     }
413                     target.setStringValue(contactProjectRole);
414                 }
415             }
416             
417             /**
418              * Sets (as xml) the "ContactProjectRole" element
419              */
420             public void xsetContactProjectRole(gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject.ContactProjectRole contactProjectRole)
421             {
422                 synchronized (monitor())
423                 {
424                     check_orphaned();
425                     gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject.ContactProjectRole target = null;
426                     target = (gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject.ContactProjectRole)get_store().find_element_user(CONTACTPROJECTROLE$0, 0);
427                     if (target == null)
428                     {
429                       target = (gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject.ContactProjectRole)get_store().add_element_user(CONTACTPROJECTROLE$0);
430                     }
431                     target.set(contactProjectRole);
432                 }
433             }
434             
435             /**
436              * Gets the "ContactName" element
437              */
438             public gov.grants.apply.system.globalLibraryV20.HumanNameDataType getContactName()
439             {
440                 synchronized (monitor())
441                 {
442                     check_orphaned();
443                     gov.grants.apply.system.globalLibraryV20.HumanNameDataType target = null;
444                     target = (gov.grants.apply.system.globalLibraryV20.HumanNameDataType)get_store().find_element_user(CONTACTNAME$2, 0);
445                     if (target == null)
446                     {
447                       return null;
448                     }
449                     return target;
450                 }
451             }
452             
453             /**
454              * Sets the "ContactName" element
455              */
456             public void setContactName(gov.grants.apply.system.globalLibraryV20.HumanNameDataType contactName)
457             {
458                 generatedSetterHelperImpl(contactName, CONTACTNAME$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
459             }
460             
461             /**
462              * Appends and returns a new empty "ContactName" element
463              */
464             public gov.grants.apply.system.globalLibraryV20.HumanNameDataType addNewContactName()
465             {
466                 synchronized (monitor())
467                 {
468                     check_orphaned();
469                     gov.grants.apply.system.globalLibraryV20.HumanNameDataType target = null;
470                     target = (gov.grants.apply.system.globalLibraryV20.HumanNameDataType)get_store().add_element_user(CONTACTNAME$2);
471                     return target;
472                 }
473             }
474             
475             /**
476              * Gets the "ContactTitle" element
477              */
478             public java.lang.String getContactTitle()
479             {
480                 synchronized (monitor())
481                 {
482                     check_orphaned();
483                     org.apache.xmlbeans.SimpleValue target = null;
484                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTTITLE$4, 0);
485                     if (target == null)
486                     {
487                       return null;
488                     }
489                     return target.getStringValue();
490                 }
491             }
492             
493             /**
494              * Gets (as xml) the "ContactTitle" element
495              */
496             public gov.grants.apply.system.globalLibraryV20.HumanTitleDataType xgetContactTitle()
497             {
498                 synchronized (monitor())
499                 {
500                     check_orphaned();
501                     gov.grants.apply.system.globalLibraryV20.HumanTitleDataType target = null;
502                     target = (gov.grants.apply.system.globalLibraryV20.HumanTitleDataType)get_store().find_element_user(CONTACTTITLE$4, 0);
503                     return target;
504                 }
505             }
506             
507             /**
508              * True if has "ContactTitle" element
509              */
510             public boolean isSetContactTitle()
511             {
512                 synchronized (monitor())
513                 {
514                     check_orphaned();
515                     return get_store().count_elements(CONTACTTITLE$4) != 0;
516                 }
517             }
518             
519             /**
520              * Sets the "ContactTitle" element
521              */
522             public void setContactTitle(java.lang.String contactTitle)
523             {
524                 synchronized (monitor())
525                 {
526                     check_orphaned();
527                     org.apache.xmlbeans.SimpleValue target = null;
528                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTTITLE$4, 0);
529                     if (target == null)
530                     {
531                       target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTACTTITLE$4);
532                     }
533                     target.setStringValue(contactTitle);
534                 }
535             }
536             
537             /**
538              * Sets (as xml) the "ContactTitle" element
539              */
540             public void xsetContactTitle(gov.grants.apply.system.globalLibraryV20.HumanTitleDataType contactTitle)
541             {
542                 synchronized (monitor())
543                 {
544                     check_orphaned();
545                     gov.grants.apply.system.globalLibraryV20.HumanTitleDataType target = null;
546                     target = (gov.grants.apply.system.globalLibraryV20.HumanTitleDataType)get_store().find_element_user(CONTACTTITLE$4, 0);
547                     if (target == null)
548                     {
549                       target = (gov.grants.apply.system.globalLibraryV20.HumanTitleDataType)get_store().add_element_user(CONTACTTITLE$4);
550                     }
551                     target.set(contactTitle);
552                 }
553             }
554             
555             /**
556              * Unsets the "ContactTitle" element
557              */
558             public void unsetContactTitle()
559             {
560                 synchronized (monitor())
561                 {
562                     check_orphaned();
563                     get_store().remove_element(CONTACTTITLE$4, 0);
564                 }
565             }
566             
567             /**
568              * Gets the "ContactOrganizationalAffiliation" element
569              */
570             public java.lang.String getContactOrganizationalAffiliation()
571             {
572                 synchronized (monitor())
573                 {
574                     check_orphaned();
575                     org.apache.xmlbeans.SimpleValue target = null;
576                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTORGANIZATIONALAFFILIATION$6, 0);
577                     if (target == null)
578                     {
579                       return null;
580                     }
581                     return target.getStringValue();
582                 }
583             }
584             
585             /**
586              * Gets (as xml) the "ContactOrganizationalAffiliation" element
587              */
588             public gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType xgetContactOrganizationalAffiliation()
589             {
590                 synchronized (monitor())
591                 {
592                     check_orphaned();
593                     gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType target = null;
594                     target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().find_element_user(CONTACTORGANIZATIONALAFFILIATION$6, 0);
595                     return target;
596                 }
597             }
598             
599             /**
600              * True if has "ContactOrganizationalAffiliation" element
601              */
602             public boolean isSetContactOrganizationalAffiliation()
603             {
604                 synchronized (monitor())
605                 {
606                     check_orphaned();
607                     return get_store().count_elements(CONTACTORGANIZATIONALAFFILIATION$6) != 0;
608                 }
609             }
610             
611             /**
612              * Sets the "ContactOrganizationalAffiliation" element
613              */
614             public void setContactOrganizationalAffiliation(java.lang.String contactOrganizationalAffiliation)
615             {
616                 synchronized (monitor())
617                 {
618                     check_orphaned();
619                     org.apache.xmlbeans.SimpleValue target = null;
620                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTORGANIZATIONALAFFILIATION$6, 0);
621                     if (target == null)
622                     {
623                       target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTACTORGANIZATIONALAFFILIATION$6);
624                     }
625                     target.setStringValue(contactOrganizationalAffiliation);
626                 }
627             }
628             
629             /**
630              * Sets (as xml) the "ContactOrganizationalAffiliation" element
631              */
632             public void xsetContactOrganizationalAffiliation(gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType contactOrganizationalAffiliation)
633             {
634                 synchronized (monitor())
635                 {
636                     check_orphaned();
637                     gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType target = null;
638                     target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().find_element_user(CONTACTORGANIZATIONALAFFILIATION$6, 0);
639                     if (target == null)
640                     {
641                       target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().add_element_user(CONTACTORGANIZATIONALAFFILIATION$6);
642                     }
643                     target.set(contactOrganizationalAffiliation);
644                 }
645             }
646             
647             /**
648              * Unsets the "ContactOrganizationalAffiliation" element
649              */
650             public void unsetContactOrganizationalAffiliation()
651             {
652                 synchronized (monitor())
653                 {
654                     check_orphaned();
655                     get_store().remove_element(CONTACTORGANIZATIONALAFFILIATION$6, 0);
656                 }
657             }
658             
659             /**
660              * Gets the "ContactAddress" element
661              */
662             public gov.grants.apply.system.globalLibraryV20.AddressDataType getContactAddress()
663             {
664                 synchronized (monitor())
665                 {
666                     check_orphaned();
667                     gov.grants.apply.system.globalLibraryV20.AddressDataType target = null;
668                     target = (gov.grants.apply.system.globalLibraryV20.AddressDataType)get_store().find_element_user(CONTACTADDRESS$8, 0);
669                     if (target == null)
670                     {
671                       return null;
672                     }
673                     return target;
674                 }
675             }
676             
677             /**
678              * Sets the "ContactAddress" element
679              */
680             public void setContactAddress(gov.grants.apply.system.globalLibraryV20.AddressDataType contactAddress)
681             {
682                 generatedSetterHelperImpl(contactAddress, CONTACTADDRESS$8, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
683             }
684             
685             /**
686              * Appends and returns a new empty "ContactAddress" element
687              */
688             public gov.grants.apply.system.globalLibraryV20.AddressDataType addNewContactAddress()
689             {
690                 synchronized (monitor())
691                 {
692                     check_orphaned();
693                     gov.grants.apply.system.globalLibraryV20.AddressDataType target = null;
694                     target = (gov.grants.apply.system.globalLibraryV20.AddressDataType)get_store().add_element_user(CONTACTADDRESS$8);
695                     return target;
696                 }
697             }
698             
699             /**
700              * Gets the "ContactPhone" element
701              */
702             public java.lang.String getContactPhone()
703             {
704                 synchronized (monitor())
705                 {
706                     check_orphaned();
707                     org.apache.xmlbeans.SimpleValue target = null;
708                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONE$10, 0);
709                     if (target == null)
710                     {
711                       return null;
712                     }
713                     return target.getStringValue();
714                 }
715             }
716             
717             /**
718              * Gets (as xml) the "ContactPhone" element
719              */
720             public gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType xgetContactPhone()
721             {
722                 synchronized (monitor())
723                 {
724                     check_orphaned();
725                     gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType target = null;
726                     target = (gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType)get_store().find_element_user(CONTACTPHONE$10, 0);
727                     return target;
728                 }
729             }
730             
731             /**
732              * Sets the "ContactPhone" element
733              */
734             public void setContactPhone(java.lang.String contactPhone)
735             {
736                 synchronized (monitor())
737                 {
738                     check_orphaned();
739                     org.apache.xmlbeans.SimpleValue target = null;
740                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONE$10, 0);
741                     if (target == null)
742                     {
743                       target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTACTPHONE$10);
744                     }
745                     target.setStringValue(contactPhone);
746                 }
747             }
748             
749             /**
750              * Sets (as xml) the "ContactPhone" element
751              */
752             public void xsetContactPhone(gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType contactPhone)
753             {
754                 synchronized (monitor())
755                 {
756                     check_orphaned();
757                     gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType target = null;
758                     target = (gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType)get_store().find_element_user(CONTACTPHONE$10, 0);
759                     if (target == null)
760                     {
761                       target = (gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType)get_store().add_element_user(CONTACTPHONE$10);
762                     }
763                     target.set(contactPhone);
764                 }
765             }
766             
767             /**
768              * Gets the "ContactFax" element
769              */
770             public java.lang.String getContactFax()
771             {
772                 synchronized (monitor())
773                 {
774                     check_orphaned();
775                     org.apache.xmlbeans.SimpleValue target = null;
776                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTFAX$12, 0);
777                     if (target == null)
778                     {
779                       return null;
780                     }
781                     return target.getStringValue();
782                 }
783             }
784             
785             /**
786              * Gets (as xml) the "ContactFax" element
787              */
788             public gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType xgetContactFax()
789             {
790                 synchronized (monitor())
791                 {
792                     check_orphaned();
793                     gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType target = null;
794                     target = (gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType)get_store().find_element_user(CONTACTFAX$12, 0);
795                     return target;
796                 }
797             }
798             
799             /**
800              * True if has "ContactFax" element
801              */
802             public boolean isSetContactFax()
803             {
804                 synchronized (monitor())
805                 {
806                     check_orphaned();
807                     return get_store().count_elements(CONTACTFAX$12) != 0;
808                 }
809             }
810             
811             /**
812              * Sets the "ContactFax" element
813              */
814             public void setContactFax(java.lang.String contactFax)
815             {
816                 synchronized (monitor())
817                 {
818                     check_orphaned();
819                     org.apache.xmlbeans.SimpleValue target = null;
820                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTFAX$12, 0);
821                     if (target == null)
822                     {
823                       target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTACTFAX$12);
824                     }
825                     target.setStringValue(contactFax);
826                 }
827             }
828             
829             /**
830              * Sets (as xml) the "ContactFax" element
831              */
832             public void xsetContactFax(gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType contactFax)
833             {
834                 synchronized (monitor())
835                 {
836                     check_orphaned();
837                     gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType target = null;
838                     target = (gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType)get_store().find_element_user(CONTACTFAX$12, 0);
839                     if (target == null)
840                     {
841                       target = (gov.grants.apply.system.globalLibraryV20.TelephoneNumberDataType)get_store().add_element_user(CONTACTFAX$12);
842                     }
843                     target.set(contactFax);
844                 }
845             }
846             
847             /**
848              * Unsets the "ContactFax" element
849              */
850             public void unsetContactFax()
851             {
852                 synchronized (monitor())
853                 {
854                     check_orphaned();
855                     get_store().remove_element(CONTACTFAX$12, 0);
856                 }
857             }
858             
859             /**
860              * Gets the "ContactEmail" element
861              */
862             public java.lang.String getContactEmail()
863             {
864                 synchronized (monitor())
865                 {
866                     check_orphaned();
867                     org.apache.xmlbeans.SimpleValue target = null;
868                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTEMAIL$14, 0);
869                     if (target == null)
870                     {
871                       return null;
872                     }
873                     return target.getStringValue();
874                 }
875             }
876             
877             /**
878              * Gets (as xml) the "ContactEmail" element
879              */
880             public gov.grants.apply.system.globalLibraryV20.EmailDataType xgetContactEmail()
881             {
882                 synchronized (monitor())
883                 {
884                     check_orphaned();
885                     gov.grants.apply.system.globalLibraryV20.EmailDataType target = null;
886                     target = (gov.grants.apply.system.globalLibraryV20.EmailDataType)get_store().find_element_user(CONTACTEMAIL$14, 0);
887                     return target;
888                 }
889             }
890             
891             /**
892              * Sets the "ContactEmail" element
893              */
894             public void setContactEmail(java.lang.String contactEmail)
895             {
896                 synchronized (monitor())
897                 {
898                     check_orphaned();
899                     org.apache.xmlbeans.SimpleValue target = null;
900                     target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTEMAIL$14, 0);
901                     if (target == null)
902                     {
903                       target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTACTEMAIL$14);
904                     }
905                     target.setStringValue(contactEmail);
906                 }
907             }
908             
909             /**
910              * Sets (as xml) the "ContactEmail" element
911              */
912             public void xsetContactEmail(gov.grants.apply.system.globalLibraryV20.EmailDataType contactEmail)
913             {
914                 synchronized (monitor())
915                 {
916                     check_orphaned();
917                     gov.grants.apply.system.globalLibraryV20.EmailDataType target = null;
918                     target = (gov.grants.apply.system.globalLibraryV20.EmailDataType)get_store().find_element_user(CONTACTEMAIL$14, 0);
919                     if (target == null)
920                     {
921                       target = (gov.grants.apply.system.globalLibraryV20.EmailDataType)get_store().add_element_user(CONTACTEMAIL$14);
922                     }
923                     target.set(contactEmail);
924                 }
925             }
926             /**
927              * An XML ContactProjectRole(@http://apply.grants.gov/forms/Key_Contacts-V1.0).
928              *
929              * This is an atomic type that is a restriction of gov.grants.apply.forms.keyContactsV10.KeyContactsDocument$KeyContacts$RoleOnProject$ContactProjectRole.
930              */
931             public static class ContactProjectRoleImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.forms.keyContactsV10.KeyContactsDocument.KeyContacts.RoleOnProject.ContactProjectRole
932             {
933                 private static final long serialVersionUID = 1L;
934                 
935                 public ContactProjectRoleImpl(org.apache.xmlbeans.SchemaType sType)
936                 {
937                     super(sType, false);
938                 }
939                 
940                 protected ContactProjectRoleImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
941                 {
942                     super(sType, b);
943                 }
944             }
945         }
946     }
947 }