View Javadoc
1   /*
2    * An XML document type.
3    * Localname: SubmittingOrganization
4    * Namespace: http://apply.grants.gov/forms/SF424-V1.0
5    * Java type: gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424V10.impl;
10  /**
11   * A document containing one SubmittingOrganization(@http://apply.grants.gov/forms/SF424-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class SubmittingOrganizationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public SubmittingOrganizationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName SUBMITTINGORGANIZATION$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "SubmittingOrganization");
26      
27      
28      /**
29       * Gets the "SubmittingOrganization" element
30       */
31      public gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument.SubmittingOrganization getSubmittingOrganization()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument.SubmittingOrganization target = null;
37              target = (gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument.SubmittingOrganization)get_store().find_element_user(SUBMITTINGORGANIZATION$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "SubmittingOrganization" element
48       */
49      public void setSubmittingOrganization(gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument.SubmittingOrganization submittingOrganization)
50      {
51          generatedSetterHelperImpl(submittingOrganization, SUBMITTINGORGANIZATION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "SubmittingOrganization" element
56       */
57      public gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument.SubmittingOrganization addNewSubmittingOrganization()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument.SubmittingOrganization target = null;
63              target = (gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument.SubmittingOrganization)get_store().add_element_user(SUBMITTINGORGANIZATION$0);
64              return target;
65          }
66      }
67      /**
68       * An XML SubmittingOrganization(@http://apply.grants.gov/forms/SF424-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class SubmittingOrganizationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.SubmittingOrganizationDocument.SubmittingOrganization
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public SubmittingOrganizationImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName ORGANIZATIONIDENTIFYINGINFORMATION$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "OrganizationIdentifyingInformation");
83          private static final javax.xml.namespace.QName ADDRESS$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "Address");
85          private static final javax.xml.namespace.QName DELINQUENTFEDERALDEBTINDICATOR$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "DelinquentFederalDebtIndicator");
87          private static final javax.xml.namespace.QName DELINQUENTFEDERALDEBTEXPLANATION$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "DelinquentFederalDebtExplanation");
89          private static final javax.xml.namespace.QName CONGRESSIONALDISTRICT$8 = 
90              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "CongressionalDistrict");
91          
92          
93          /**
94           * Gets the "OrganizationIdentifyingInformation" element
95           */
96          public gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation getOrganizationIdentifyingInformation()
97          {
98              synchronized (monitor())
99              {
100                 check_orphaned();
101                 gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation target = null;
102                 target = (gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation)get_store().find_element_user(ORGANIZATIONIDENTIFYINGINFORMATION$0, 0);
103                 if (target == null)
104                 {
105                     return null;
106                 }
107                 return target;
108             }
109         }
110         
111         /**
112          * True if has "OrganizationIdentifyingInformation" element
113          */
114         public boolean isSetOrganizationIdentifyingInformation()
115         {
116             synchronized (monitor())
117             {
118                 check_orphaned();
119                 return get_store().count_elements(ORGANIZATIONIDENTIFYINGINFORMATION$0) != 0;
120             }
121         }
122         
123         /**
124          * Sets the "OrganizationIdentifyingInformation" element
125          */
126         public void setOrganizationIdentifyingInformation(gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation organizationIdentifyingInformation)
127         {
128             generatedSetterHelperImpl(organizationIdentifyingInformation, ORGANIZATIONIDENTIFYINGINFORMATION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
129         }
130         
131         /**
132          * Appends and returns a new empty "OrganizationIdentifyingInformation" element
133          */
134         public gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation addNewOrganizationIdentifyingInformation()
135         {
136             synchronized (monitor())
137             {
138                 check_orphaned();
139                 gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation target = null;
140                 target = (gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation)get_store().add_element_user(ORGANIZATIONIDENTIFYINGINFORMATION$0);
141                 return target;
142             }
143         }
144         
145         /**
146          * Unsets the "OrganizationIdentifyingInformation" element
147          */
148         public void unsetOrganizationIdentifyingInformation()
149         {
150             synchronized (monitor())
151             {
152                 check_orphaned();
153                 get_store().remove_element(ORGANIZATIONIDENTIFYINGINFORMATION$0, 0);
154             }
155         }
156         
157         /**
158          * Gets the "Address" element
159          */
160         public gov.grants.apply.forms.sf424V10.AddressDocument.Address getAddress()
161         {
162             synchronized (monitor())
163             {
164                 check_orphaned();
165                 gov.grants.apply.forms.sf424V10.AddressDocument.Address target = null;
166                 target = (gov.grants.apply.forms.sf424V10.AddressDocument.Address)get_store().find_element_user(ADDRESS$2, 0);
167                 if (target == null)
168                 {
169                     return null;
170                 }
171                 return target;
172             }
173         }
174         
175         /**
176          * True if has "Address" element
177          */
178         public boolean isSetAddress()
179         {
180             synchronized (monitor())
181             {
182                 check_orphaned();
183                 return get_store().count_elements(ADDRESS$2) != 0;
184             }
185         }
186         
187         /**
188          * Sets the "Address" element
189          */
190         public void setAddress(gov.grants.apply.forms.sf424V10.AddressDocument.Address address)
191         {
192             generatedSetterHelperImpl(address, ADDRESS$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
193         }
194         
195         /**
196          * Appends and returns a new empty "Address" element
197          */
198         public gov.grants.apply.forms.sf424V10.AddressDocument.Address addNewAddress()
199         {
200             synchronized (monitor())
201             {
202                 check_orphaned();
203                 gov.grants.apply.forms.sf424V10.AddressDocument.Address target = null;
204                 target = (gov.grants.apply.forms.sf424V10.AddressDocument.Address)get_store().add_element_user(ADDRESS$2);
205                 return target;
206             }
207         }
208         
209         /**
210          * Unsets the "Address" element
211          */
212         public void unsetAddress()
213         {
214             synchronized (monitor())
215             {
216                 check_orphaned();
217                 get_store().remove_element(ADDRESS$2, 0);
218             }
219         }
220         
221         /**
222          * Gets the "DelinquentFederalDebtIndicator" element
223          */
224         public gov.grants.apply.system.globalV10.YesNoType.Enum getDelinquentFederalDebtIndicator()
225         {
226             synchronized (monitor())
227             {
228                 check_orphaned();
229                 org.apache.xmlbeans.SimpleValue target = null;
230                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DELINQUENTFEDERALDEBTINDICATOR$4, 0);
231                 if (target == null)
232                 {
233                     return null;
234                 }
235                 return (gov.grants.apply.system.globalV10.YesNoType.Enum)target.getEnumValue();
236             }
237         }
238         
239         /**
240          * Gets (as xml) the "DelinquentFederalDebtIndicator" element
241          */
242         public gov.grants.apply.system.globalV10.YesNoType xgetDelinquentFederalDebtIndicator()
243         {
244             synchronized (monitor())
245             {
246                 check_orphaned();
247                 gov.grants.apply.system.globalV10.YesNoType target = null;
248                 target = (gov.grants.apply.system.globalV10.YesNoType)get_store().find_element_user(DELINQUENTFEDERALDEBTINDICATOR$4, 0);
249                 return target;
250             }
251         }
252         
253         /**
254          * True if has "DelinquentFederalDebtIndicator" element
255          */
256         public boolean isSetDelinquentFederalDebtIndicator()
257         {
258             synchronized (monitor())
259             {
260                 check_orphaned();
261                 return get_store().count_elements(DELINQUENTFEDERALDEBTINDICATOR$4) != 0;
262             }
263         }
264         
265         /**
266          * Sets the "DelinquentFederalDebtIndicator" element
267          */
268         public void setDelinquentFederalDebtIndicator(gov.grants.apply.system.globalV10.YesNoType.Enum delinquentFederalDebtIndicator)
269         {
270             synchronized (monitor())
271             {
272                 check_orphaned();
273                 org.apache.xmlbeans.SimpleValue target = null;
274                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DELINQUENTFEDERALDEBTINDICATOR$4, 0);
275                 if (target == null)
276                 {
277                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DELINQUENTFEDERALDEBTINDICATOR$4);
278                 }
279                 target.setEnumValue(delinquentFederalDebtIndicator);
280             }
281         }
282         
283         /**
284          * Sets (as xml) the "DelinquentFederalDebtIndicator" element
285          */
286         public void xsetDelinquentFederalDebtIndicator(gov.grants.apply.system.globalV10.YesNoType delinquentFederalDebtIndicator)
287         {
288             synchronized (monitor())
289             {
290                 check_orphaned();
291                 gov.grants.apply.system.globalV10.YesNoType target = null;
292                 target = (gov.grants.apply.system.globalV10.YesNoType)get_store().find_element_user(DELINQUENTFEDERALDEBTINDICATOR$4, 0);
293                 if (target == null)
294                 {
295                     target = (gov.grants.apply.system.globalV10.YesNoType)get_store().add_element_user(DELINQUENTFEDERALDEBTINDICATOR$4);
296                 }
297                 target.set(delinquentFederalDebtIndicator);
298             }
299         }
300         
301         /**
302          * Unsets the "DelinquentFederalDebtIndicator" element
303          */
304         public void unsetDelinquentFederalDebtIndicator()
305         {
306             synchronized (monitor())
307             {
308                 check_orphaned();
309                 get_store().remove_element(DELINQUENTFEDERALDEBTINDICATOR$4, 0);
310             }
311         }
312         
313         /**
314          * Gets the "DelinquentFederalDebtExplanation" element
315          */
316         public java.lang.String getDelinquentFederalDebtExplanation()
317         {
318             synchronized (monitor())
319             {
320                 check_orphaned();
321                 org.apache.xmlbeans.SimpleValue target = null;
322                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DELINQUENTFEDERALDEBTEXPLANATION$6, 0);
323                 if (target == null)
324                 {
325                     return null;
326                 }
327                 return target.getStringValue();
328             }
329         }
330         
331         /**
332          * Gets (as xml) the "DelinquentFederalDebtExplanation" element
333          */
334         public gov.grants.apply.system.globalV10.StringMin1Max4096Type xgetDelinquentFederalDebtExplanation()
335         {
336             synchronized (monitor())
337             {
338                 check_orphaned();
339                 gov.grants.apply.system.globalV10.StringMin1Max4096Type target = null;
340                 target = (gov.grants.apply.system.globalV10.StringMin1Max4096Type)get_store().find_element_user(DELINQUENTFEDERALDEBTEXPLANATION$6, 0);
341                 return target;
342             }
343         }
344         
345         /**
346          * True if has "DelinquentFederalDebtExplanation" element
347          */
348         public boolean isSetDelinquentFederalDebtExplanation()
349         {
350             synchronized (monitor())
351             {
352                 check_orphaned();
353                 return get_store().count_elements(DELINQUENTFEDERALDEBTEXPLANATION$6) != 0;
354             }
355         }
356         
357         /**
358          * Sets the "DelinquentFederalDebtExplanation" element
359          */
360         public void setDelinquentFederalDebtExplanation(java.lang.String delinquentFederalDebtExplanation)
361         {
362             synchronized (monitor())
363             {
364                 check_orphaned();
365                 org.apache.xmlbeans.SimpleValue target = null;
366                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DELINQUENTFEDERALDEBTEXPLANATION$6, 0);
367                 if (target == null)
368                 {
369                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DELINQUENTFEDERALDEBTEXPLANATION$6);
370                 }
371                 target.setStringValue(delinquentFederalDebtExplanation);
372             }
373         }
374         
375         /**
376          * Sets (as xml) the "DelinquentFederalDebtExplanation" element
377          */
378         public void xsetDelinquentFederalDebtExplanation(gov.grants.apply.system.globalV10.StringMin1Max4096Type delinquentFederalDebtExplanation)
379         {
380             synchronized (monitor())
381             {
382                 check_orphaned();
383                 gov.grants.apply.system.globalV10.StringMin1Max4096Type target = null;
384                 target = (gov.grants.apply.system.globalV10.StringMin1Max4096Type)get_store().find_element_user(DELINQUENTFEDERALDEBTEXPLANATION$6, 0);
385                 if (target == null)
386                 {
387                     target = (gov.grants.apply.system.globalV10.StringMin1Max4096Type)get_store().add_element_user(DELINQUENTFEDERALDEBTEXPLANATION$6);
388                 }
389                 target.set(delinquentFederalDebtExplanation);
390             }
391         }
392         
393         /**
394          * Unsets the "DelinquentFederalDebtExplanation" element
395          */
396         public void unsetDelinquentFederalDebtExplanation()
397         {
398             synchronized (monitor())
399             {
400                 check_orphaned();
401                 get_store().remove_element(DELINQUENTFEDERALDEBTEXPLANATION$6, 0);
402             }
403         }
404         
405         /**
406          * Gets the "CongressionalDistrict" element
407          */
408         public java.lang.String getCongressionalDistrict()
409         {
410             synchronized (monitor())
411             {
412                 check_orphaned();
413                 org.apache.xmlbeans.SimpleValue target = null;
414                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
415                 if (target == null)
416                 {
417                     return null;
418                 }
419                 return target.getStringValue();
420             }
421         }
422         
423         /**
424          * Gets (as xml) the "CongressionalDistrict" element
425          */
426         public gov.grants.apply.system.globalV10.StringMin1Max30Type xgetCongressionalDistrict()
427         {
428             synchronized (monitor())
429             {
430                 check_orphaned();
431                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
432                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
433                 return target;
434             }
435         }
436         
437         /**
438          * True if has "CongressionalDistrict" element
439          */
440         public boolean isSetCongressionalDistrict()
441         {
442             synchronized (monitor())
443             {
444                 check_orphaned();
445                 return get_store().count_elements(CONGRESSIONALDISTRICT$8) != 0;
446             }
447         }
448         
449         /**
450          * Sets the "CongressionalDistrict" element
451          */
452         public void setCongressionalDistrict(java.lang.String congressionalDistrict)
453         {
454             synchronized (monitor())
455             {
456                 check_orphaned();
457                 org.apache.xmlbeans.SimpleValue target = null;
458                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
459                 if (target == null)
460                 {
461                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONGRESSIONALDISTRICT$8);
462                 }
463                 target.setStringValue(congressionalDistrict);
464             }
465         }
466         
467         /**
468          * Sets (as xml) the "CongressionalDistrict" element
469          */
470         public void xsetCongressionalDistrict(gov.grants.apply.system.globalV10.StringMin1Max30Type congressionalDistrict)
471         {
472             synchronized (monitor())
473             {
474                 check_orphaned();
475                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
476                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
477                 if (target == null)
478                 {
479                     target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().add_element_user(CONGRESSIONALDISTRICT$8);
480                 }
481                 target.set(congressionalDistrict);
482             }
483         }
484         
485         /**
486          * Unsets the "CongressionalDistrict" element
487          */
488         public void unsetCongressionalDistrict()
489         {
490             synchronized (monitor())
491             {
492                 check_orphaned();
493                 get_store().remove_element(CONGRESSIONALDISTRICT$8, 0);
494             }
495         }
496     }
497 }