1   
2   
3   
4   
5   
6   
7   
8   
9   package gov.grants.apply.forms.imlsBudgetV10.impl;
10  
11  
12  
13  
14  
15  public class IMLSBudgetDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public IMLSBudgetDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName IMLSBUDGET$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/IMLS_Budget-V1.0", "IMLS_Budget");
26      
27      
28      
29  
30  
31      public gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget getIMLSBudget()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget target = null;
37              target = (gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget)get_store().find_element_user(IMLSBUDGET$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      
47  
48  
49      public void setIMLSBudget(gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget imlsBudget)
50      {
51          generatedSetterHelperImpl(imlsBudget, IMLSBUDGET$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      
55  
56  
57      public gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget addNewIMLSBudget()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget target = null;
63              target = (gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget)get_store().add_element_user(IMLSBUDGET$0);
64              return target;
65          }
66      }
67      
68  
69  
70  
71  
72      public static class IMLSBudgetImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public IMLSBudgetImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName APPLICANTLEGALNAME$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/IMLS_Budget-V1.0", "ApplicantLegalName");
83          private static final javax.xml.namespace.QName REQUESTEDGRANTPERIODFROM$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/IMLS_Budget-V1.0", "RequestedGrantPeriodFrom");
85          private static final javax.xml.namespace.QName REQUESTEDGRANTPERIODTO$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/IMLS_Budget-V1.0", "RequestedGrantPeriodTo");
87          private static final javax.xml.namespace.QName APPLICATIONNUMBER$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/IMLS_Budget-V1.0", "ApplicationNumber");
89          private static final javax.xml.namespace.QName DETAILEDBUDGET$8 = 
90              new javax.xml.namespace.QName("http://apply.grants.gov/forms/IMLS_Budget-V1.0", "DetailedBudget");
91          private static final javax.xml.namespace.QName BUDGETSUMMARY$10 = 
92              new javax.xml.namespace.QName("http://apply.grants.gov/forms/IMLS_Budget-V1.0", "BudgetSummary");
93          private static final javax.xml.namespace.QName FORMVERSION$12 = 
94              new javax.xml.namespace.QName("http://apply.grants.gov/forms/IMLS_Budget-V1.0", "FormVersion");
95          
96          
97          
98  
99  
100         public java.lang.String getApplicantLegalName()
101         {
102             synchronized (monitor())
103             {
104                 check_orphaned();
105                 org.apache.xmlbeans.SimpleValue target = null;
106                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTLEGALNAME$0, 0);
107                 if (target == null)
108                 {
109                     return null;
110                 }
111                 return target.getStringValue();
112             }
113         }
114         
115         
116 
117 
118         public gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType xgetApplicantLegalName()
119         {
120             synchronized (monitor())
121             {
122                 check_orphaned();
123                 gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType target = null;
124                 target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().find_element_user(APPLICANTLEGALNAME$0, 0);
125                 return target;
126             }
127         }
128         
129         
130 
131 
132         public void setApplicantLegalName(java.lang.String applicantLegalName)
133         {
134             synchronized (monitor())
135             {
136                 check_orphaned();
137                 org.apache.xmlbeans.SimpleValue target = null;
138                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTLEGALNAME$0, 0);
139                 if (target == null)
140                 {
141                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(APPLICANTLEGALNAME$0);
142                 }
143                 target.setStringValue(applicantLegalName);
144             }
145         }
146         
147         
148 
149 
150         public void xsetApplicantLegalName(gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType applicantLegalName)
151         {
152             synchronized (monitor())
153             {
154                 check_orphaned();
155                 gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType target = null;
156                 target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().find_element_user(APPLICANTLEGALNAME$0, 0);
157                 if (target == null)
158                 {
159                     target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().add_element_user(APPLICANTLEGALNAME$0);
160                 }
161                 target.set(applicantLegalName);
162             }
163         }
164         
165         
166 
167 
168         public java.util.Calendar getRequestedGrantPeriodFrom()
169         {
170             synchronized (monitor())
171             {
172                 check_orphaned();
173                 org.apache.xmlbeans.SimpleValue target = null;
174                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUESTEDGRANTPERIODFROM$2, 0);
175                 if (target == null)
176                 {
177                     return null;
178                 }
179                 return target.getCalendarValue();
180             }
181         }
182         
183         
184 
185 
186         public org.apache.xmlbeans.XmlDate xgetRequestedGrantPeriodFrom()
187         {
188             synchronized (monitor())
189             {
190                 check_orphaned();
191                 org.apache.xmlbeans.XmlDate target = null;
192                 target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(REQUESTEDGRANTPERIODFROM$2, 0);
193                 return target;
194             }
195         }
196         
197         
198 
199 
200         public void setRequestedGrantPeriodFrom(java.util.Calendar requestedGrantPeriodFrom)
201         {
202             synchronized (monitor())
203             {
204                 check_orphaned();
205                 org.apache.xmlbeans.SimpleValue target = null;
206                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUESTEDGRANTPERIODFROM$2, 0);
207                 if (target == null)
208                 {
209                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REQUESTEDGRANTPERIODFROM$2);
210                 }
211                 target.setCalendarValue(requestedGrantPeriodFrom);
212             }
213         }
214         
215         
216 
217 
218         public void xsetRequestedGrantPeriodFrom(org.apache.xmlbeans.XmlDate requestedGrantPeriodFrom)
219         {
220             synchronized (monitor())
221             {
222                 check_orphaned();
223                 org.apache.xmlbeans.XmlDate target = null;
224                 target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(REQUESTEDGRANTPERIODFROM$2, 0);
225                 if (target == null)
226                 {
227                     target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(REQUESTEDGRANTPERIODFROM$2);
228                 }
229                 target.set(requestedGrantPeriodFrom);
230             }
231         }
232         
233         
234 
235 
236         public java.util.Calendar getRequestedGrantPeriodTo()
237         {
238             synchronized (monitor())
239             {
240                 check_orphaned();
241                 org.apache.xmlbeans.SimpleValue target = null;
242                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUESTEDGRANTPERIODTO$4, 0);
243                 if (target == null)
244                 {
245                     return null;
246                 }
247                 return target.getCalendarValue();
248             }
249         }
250         
251         
252 
253 
254         public org.apache.xmlbeans.XmlDate xgetRequestedGrantPeriodTo()
255         {
256             synchronized (monitor())
257             {
258                 check_orphaned();
259                 org.apache.xmlbeans.XmlDate target = null;
260                 target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(REQUESTEDGRANTPERIODTO$4, 0);
261                 return target;
262             }
263         }
264         
265         
266 
267 
268         public void setRequestedGrantPeriodTo(java.util.Calendar requestedGrantPeriodTo)
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(REQUESTEDGRANTPERIODTO$4, 0);
275                 if (target == null)
276                 {
277                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REQUESTEDGRANTPERIODTO$4);
278                 }
279                 target.setCalendarValue(requestedGrantPeriodTo);
280             }
281         }
282         
283         
284 
285 
286         public void xsetRequestedGrantPeriodTo(org.apache.xmlbeans.XmlDate requestedGrantPeriodTo)
287         {
288             synchronized (monitor())
289             {
290                 check_orphaned();
291                 org.apache.xmlbeans.XmlDate target = null;
292                 target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(REQUESTEDGRANTPERIODTO$4, 0);
293                 if (target == null)
294                 {
295                     target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(REQUESTEDGRANTPERIODTO$4);
296                 }
297                 target.set(requestedGrantPeriodTo);
298             }
299         }
300         
301         
302 
303 
304         public java.lang.String getApplicationNumber()
305         {
306             synchronized (monitor())
307             {
308                 check_orphaned();
309                 org.apache.xmlbeans.SimpleValue target = null;
310                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICATIONNUMBER$6, 0);
311                 if (target == null)
312                 {
313                     return null;
314                 }
315                 return target.getStringValue();
316             }
317         }
318         
319         
320 
321 
322         public gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget.ApplicationNumber xgetApplicationNumber()
323         {
324             synchronized (monitor())
325             {
326                 check_orphaned();
327                 gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget.ApplicationNumber target = null;
328                 target = (gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget.ApplicationNumber)get_store().find_element_user(APPLICATIONNUMBER$6, 0);
329                 return target;
330             }
331         }
332         
333         
334 
335 
336         public boolean isSetApplicationNumber()
337         {
338             synchronized (monitor())
339             {
340                 check_orphaned();
341                 return get_store().count_elements(APPLICATIONNUMBER$6) != 0;
342             }
343         }
344         
345         
346 
347 
348         public void setApplicationNumber(java.lang.String applicationNumber)
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(APPLICATIONNUMBER$6, 0);
355                 if (target == null)
356                 {
357                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(APPLICATIONNUMBER$6);
358                 }
359                 target.setStringValue(applicationNumber);
360             }
361         }
362         
363         
364 
365 
366         public void xsetApplicationNumber(gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget.ApplicationNumber applicationNumber)
367         {
368             synchronized (monitor())
369             {
370                 check_orphaned();
371                 gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget.ApplicationNumber target = null;
372                 target = (gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget.ApplicationNumber)get_store().find_element_user(APPLICATIONNUMBER$6, 0);
373                 if (target == null)
374                 {
375                     target = (gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget.ApplicationNumber)get_store().add_element_user(APPLICATIONNUMBER$6);
376                 }
377                 target.set(applicationNumber);
378             }
379         }
380         
381         
382 
383 
384         public void unsetApplicationNumber()
385         {
386             synchronized (monitor())
387             {
388                 check_orphaned();
389                 get_store().remove_element(APPLICATIONNUMBER$6, 0);
390             }
391         }
392         
393         
394 
395 
396         public gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType[] getDetailedBudgetArray()
397         {
398             synchronized (monitor())
399             {
400                 check_orphaned();
401                 java.util.List targetList = new java.util.ArrayList();
402                 get_store().find_all_element_users(DETAILEDBUDGET$8, targetList);
403                 gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType[] result = new gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType[targetList.size()];
404                 targetList.toArray(result);
405                 return result;
406             }
407         }
408         
409         
410 
411 
412         public gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType getDetailedBudgetArray(int i)
413         {
414             synchronized (monitor())
415             {
416                 check_orphaned();
417                 gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType target = null;
418                 target = (gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType)get_store().find_element_user(DETAILEDBUDGET$8, i);
419                 if (target == null)
420                 {
421                     throw new IndexOutOfBoundsException();
422                 }
423                 return target;
424             }
425         }
426         
427         
428 
429 
430         public int sizeOfDetailedBudgetArray()
431         {
432             synchronized (monitor())
433             {
434                 check_orphaned();
435                 return get_store().count_elements(DETAILEDBUDGET$8);
436             }
437         }
438         
439         
440 
441 
442         public void setDetailedBudgetArray(gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType[] detailedBudgetArray)
443         {
444             check_orphaned();
445             arraySetterHelper(detailedBudgetArray, DETAILEDBUDGET$8);
446         }
447         
448         
449 
450 
451         public void setDetailedBudgetArray(int i, gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType detailedBudget)
452         {
453             generatedSetterHelperImpl(detailedBudget, DETAILEDBUDGET$8, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
454         }
455         
456         
457 
458 
459         public gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType insertNewDetailedBudget(int i)
460         {
461             synchronized (monitor())
462             {
463                 check_orphaned();
464                 gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType target = null;
465                 target = (gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType)get_store().insert_element_user(DETAILEDBUDGET$8, i);
466                 return target;
467             }
468         }
469         
470         
471 
472 
473         public gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType addNewDetailedBudget()
474         {
475             synchronized (monitor())
476             {
477                 check_orphaned();
478                 gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType target = null;
479                 target = (gov.grants.apply.forms.imlsBudgetV10.DetailedBudgetDataType)get_store().add_element_user(DETAILEDBUDGET$8);
480                 return target;
481             }
482         }
483         
484         
485 
486 
487         public void removeDetailedBudget(int i)
488         {
489             synchronized (monitor())
490             {
491                 check_orphaned();
492                 get_store().remove_element(DETAILEDBUDGET$8, i);
493             }
494         }
495         
496         
497 
498 
499         public gov.grants.apply.forms.imlsBudgetV10.BudgetSummaryDataType getBudgetSummary()
500         {
501             synchronized (monitor())
502             {
503                 check_orphaned();
504                 gov.grants.apply.forms.imlsBudgetV10.BudgetSummaryDataType target = null;
505                 target = (gov.grants.apply.forms.imlsBudgetV10.BudgetSummaryDataType)get_store().find_element_user(BUDGETSUMMARY$10, 0);
506                 if (target == null)
507                 {
508                     return null;
509                 }
510                 return target;
511             }
512         }
513         
514         
515 
516 
517         public void setBudgetSummary(gov.grants.apply.forms.imlsBudgetV10.BudgetSummaryDataType budgetSummary)
518         {
519             generatedSetterHelperImpl(budgetSummary, BUDGETSUMMARY$10, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
520         }
521         
522         
523 
524 
525         public gov.grants.apply.forms.imlsBudgetV10.BudgetSummaryDataType addNewBudgetSummary()
526         {
527             synchronized (monitor())
528             {
529                 check_orphaned();
530                 gov.grants.apply.forms.imlsBudgetV10.BudgetSummaryDataType target = null;
531                 target = (gov.grants.apply.forms.imlsBudgetV10.BudgetSummaryDataType)get_store().add_element_user(BUDGETSUMMARY$10);
532                 return target;
533             }
534         }
535         
536         
537 
538 
539         public java.lang.String getFormVersion()
540         {
541             synchronized (monitor())
542             {
543                 check_orphaned();
544                 org.apache.xmlbeans.SimpleValue target = null;
545                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$12);
546                 if (target == null)
547                 {
548                     target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$12);
549                 }
550                 if (target == null)
551                 {
552                     return null;
553                 }
554                 return target.getStringValue();
555             }
556         }
557         
558         
559 
560 
561         public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
562         {
563             synchronized (monitor())
564             {
565                 check_orphaned();
566                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
567                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$12);
568                 if (target == null)
569                 {
570                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$12);
571                 }
572                 return target;
573             }
574         }
575         
576         
577 
578 
579         public void setFormVersion(java.lang.String formVersion)
580         {
581             synchronized (monitor())
582             {
583                 check_orphaned();
584                 org.apache.xmlbeans.SimpleValue target = null;
585                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$12);
586                 if (target == null)
587                 {
588                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$12);
589                 }
590                 target.setStringValue(formVersion);
591             }
592         }
593         
594         
595 
596 
597         public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
598         {
599             synchronized (monitor())
600             {
601                 check_orphaned();
602                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
603                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$12);
604                 if (target == null)
605                 {
606                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$12);
607                 }
608                 target.set(formVersion);
609             }
610         }
611         
612 
613 
614 
615 
616         public static class ApplicationNumberImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.forms.imlsBudgetV10.IMLSBudgetDocument.IMLSBudget.ApplicationNumber
617         {
618             private static final long serialVersionUID = 1L;
619             
620             public ApplicationNumberImpl(org.apache.xmlbeans.SchemaType sType)
621             {
622                 super(sType, false);
623             }
624             
625             protected ApplicationNumberImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
626             {
627                 super(sType, b);
628             }
629         }
630     }
631 }