View Javadoc
1   /*
2    * An XML document type.
3    * Localname: GABI_Attachments
4    * Namespace: http://apply.grants.gov/forms/GABI_Attachments-V1.0
5    * Java type: gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.gabiAttachmentsV10.impl;
10  /**
11   * A document containing one GABI_Attachments(@http://apply.grants.gov/forms/GABI_Attachments-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class GABIAttachmentsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public GABIAttachmentsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName GABIATTACHMENTS$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/GABI_Attachments-V1.0", "GABI_Attachments");
26      
27      
28      /**
29       * Gets the "GABI_Attachments" element
30       */
31      public gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument.GABIAttachments getGABIAttachments()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument.GABIAttachments target = null;
37              target = (gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument.GABIAttachments)get_store().find_element_user(GABIATTACHMENTS$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "GABI_Attachments" element
48       */
49      public void setGABIAttachments(gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument.GABIAttachments gabiAttachments)
50      {
51          generatedSetterHelperImpl(gabiAttachments, GABIATTACHMENTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "GABI_Attachments" element
56       */
57      public gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument.GABIAttachments addNewGABIAttachments()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument.GABIAttachments target = null;
63              target = (gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument.GABIAttachments)get_store().add_element_user(GABIATTACHMENTS$0);
64              return target;
65          }
66      }
67      /**
68       * An XML GABI_Attachments(@http://apply.grants.gov/forms/GABI_Attachments-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class GABIAttachmentsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.gabiAttachmentsV10.GABIAttachmentsDocument.GABIAttachments
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public GABIAttachmentsImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName PROJECTDESCRIPTION$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/GABI_Attachments-V1.0", "ProjectDescription");
83          private static final javax.xml.namespace.QName CHILDCARESERVICES$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/GABI_Attachments-V1.0", "ChildCareServices");
85          private static final javax.xml.namespace.QName POLICYCOUNCILAPPROVAL$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/GABI_Attachments-V1.0", "PolicyCouncilApproval");
87          private static final javax.xml.namespace.QName INDIRECTCOSTAGREEMENT$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/GABI_Attachments-V1.0", "IndirectCostAgreement");
89          private static final javax.xml.namespace.QName FORMVERSION$8 = 
90              new javax.xml.namespace.QName("http://apply.grants.gov/forms/GABI_Attachments-V1.0", "FormVersion");
91          
92          
93          /**
94           * Gets the "ProjectDescription" element
95           */
96          public gov.grants.apply.system.attachmentsV10.AttachedFileDataType getProjectDescription()
97          {
98              synchronized (monitor())
99              {
100                 check_orphaned();
101                 gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
102                 target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().find_element_user(PROJECTDESCRIPTION$0, 0);
103                 if (target == null)
104                 {
105                     return null;
106                 }
107                 return target;
108             }
109         }
110         
111         /**
112          * Sets the "ProjectDescription" element
113          */
114         public void setProjectDescription(gov.grants.apply.system.attachmentsV10.AttachedFileDataType projectDescription)
115         {
116             generatedSetterHelperImpl(projectDescription, PROJECTDESCRIPTION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
117         }
118         
119         /**
120          * Appends and returns a new empty "ProjectDescription" element
121          */
122         public gov.grants.apply.system.attachmentsV10.AttachedFileDataType addNewProjectDescription()
123         {
124             synchronized (monitor())
125             {
126                 check_orphaned();
127                 gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
128                 target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().add_element_user(PROJECTDESCRIPTION$0);
129                 return target;
130             }
131         }
132         
133         /**
134          * Gets the "ChildCareServices" element
135          */
136         public gov.grants.apply.forms.gabiAttachmentsV10.ChildCareServicesDataType getChildCareServices()
137         {
138             synchronized (monitor())
139             {
140                 check_orphaned();
141                 gov.grants.apply.forms.gabiAttachmentsV10.ChildCareServicesDataType target = null;
142                 target = (gov.grants.apply.forms.gabiAttachmentsV10.ChildCareServicesDataType)get_store().find_element_user(CHILDCARESERVICES$2, 0);
143                 if (target == null)
144                 {
145                     return null;
146                 }
147                 return target;
148             }
149         }
150         
151         /**
152          * True if has "ChildCareServices" element
153          */
154         public boolean isSetChildCareServices()
155         {
156             synchronized (monitor())
157             {
158                 check_orphaned();
159                 return get_store().count_elements(CHILDCARESERVICES$2) != 0;
160             }
161         }
162         
163         /**
164          * Sets the "ChildCareServices" element
165          */
166         public void setChildCareServices(gov.grants.apply.forms.gabiAttachmentsV10.ChildCareServicesDataType childCareServices)
167         {
168             generatedSetterHelperImpl(childCareServices, CHILDCARESERVICES$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
169         }
170         
171         /**
172          * Appends and returns a new empty "ChildCareServices" element
173          */
174         public gov.grants.apply.forms.gabiAttachmentsV10.ChildCareServicesDataType addNewChildCareServices()
175         {
176             synchronized (monitor())
177             {
178                 check_orphaned();
179                 gov.grants.apply.forms.gabiAttachmentsV10.ChildCareServicesDataType target = null;
180                 target = (gov.grants.apply.forms.gabiAttachmentsV10.ChildCareServicesDataType)get_store().add_element_user(CHILDCARESERVICES$2);
181                 return target;
182             }
183         }
184         
185         /**
186          * Unsets the "ChildCareServices" element
187          */
188         public void unsetChildCareServices()
189         {
190             synchronized (monitor())
191             {
192                 check_orphaned();
193                 get_store().remove_element(CHILDCARESERVICES$2, 0);
194             }
195         }
196         
197         /**
198          * Gets the "PolicyCouncilApproval" element
199          */
200         public gov.grants.apply.system.attachmentsV10.AttachedFileDataType getPolicyCouncilApproval()
201         {
202             synchronized (monitor())
203             {
204                 check_orphaned();
205                 gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
206                 target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().find_element_user(POLICYCOUNCILAPPROVAL$4, 0);
207                 if (target == null)
208                 {
209                     return null;
210                 }
211                 return target;
212             }
213         }
214         
215         /**
216          * Sets the "PolicyCouncilApproval" element
217          */
218         public void setPolicyCouncilApproval(gov.grants.apply.system.attachmentsV10.AttachedFileDataType policyCouncilApproval)
219         {
220             generatedSetterHelperImpl(policyCouncilApproval, POLICYCOUNCILAPPROVAL$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
221         }
222         
223         /**
224          * Appends and returns a new empty "PolicyCouncilApproval" element
225          */
226         public gov.grants.apply.system.attachmentsV10.AttachedFileDataType addNewPolicyCouncilApproval()
227         {
228             synchronized (monitor())
229             {
230                 check_orphaned();
231                 gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
232                 target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().add_element_user(POLICYCOUNCILAPPROVAL$4);
233                 return target;
234             }
235         }
236         
237         /**
238          * Gets the "IndirectCostAgreement" element
239          */
240         public gov.grants.apply.system.attachmentsV10.AttachedFileDataType getIndirectCostAgreement()
241         {
242             synchronized (monitor())
243             {
244                 check_orphaned();
245                 gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
246                 target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().find_element_user(INDIRECTCOSTAGREEMENT$6, 0);
247                 if (target == null)
248                 {
249                     return null;
250                 }
251                 return target;
252             }
253         }
254         
255         /**
256          * True if has "IndirectCostAgreement" element
257          */
258         public boolean isSetIndirectCostAgreement()
259         {
260             synchronized (monitor())
261             {
262                 check_orphaned();
263                 return get_store().count_elements(INDIRECTCOSTAGREEMENT$6) != 0;
264             }
265         }
266         
267         /**
268          * Sets the "IndirectCostAgreement" element
269          */
270         public void setIndirectCostAgreement(gov.grants.apply.system.attachmentsV10.AttachedFileDataType indirectCostAgreement)
271         {
272             generatedSetterHelperImpl(indirectCostAgreement, INDIRECTCOSTAGREEMENT$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
273         }
274         
275         /**
276          * Appends and returns a new empty "IndirectCostAgreement" element
277          */
278         public gov.grants.apply.system.attachmentsV10.AttachedFileDataType addNewIndirectCostAgreement()
279         {
280             synchronized (monitor())
281             {
282                 check_orphaned();
283                 gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
284                 target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().add_element_user(INDIRECTCOSTAGREEMENT$6);
285                 return target;
286             }
287         }
288         
289         /**
290          * Unsets the "IndirectCostAgreement" element
291          */
292         public void unsetIndirectCostAgreement()
293         {
294             synchronized (monitor())
295             {
296                 check_orphaned();
297                 get_store().remove_element(INDIRECTCOSTAGREEMENT$6, 0);
298             }
299         }
300         
301         /**
302          * Gets the "FormVersion" attribute
303          */
304         public java.lang.String getFormVersion()
305         {
306             synchronized (monitor())
307             {
308                 check_orphaned();
309                 org.apache.xmlbeans.SimpleValue target = null;
310                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$8);
311                 if (target == null)
312                 {
313                     target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$8);
314                 }
315                 if (target == null)
316                 {
317                     return null;
318                 }
319                 return target.getStringValue();
320             }
321         }
322         
323         /**
324          * Gets (as xml) the "FormVersion" attribute
325          */
326         public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
327         {
328             synchronized (monitor())
329             {
330                 check_orphaned();
331                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
332                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$8);
333                 if (target == null)
334                 {
335                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$8);
336                 }
337                 return target;
338             }
339         }
340         
341         /**
342          * Sets the "FormVersion" attribute
343          */
344         public void setFormVersion(java.lang.String formVersion)
345         {
346             synchronized (monitor())
347             {
348                 check_orphaned();
349                 org.apache.xmlbeans.SimpleValue target = null;
350                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$8);
351                 if (target == null)
352                 {
353                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$8);
354                 }
355                 target.setStringValue(formVersion);
356             }
357         }
358         
359         /**
360          * Sets (as xml) the "FormVersion" attribute
361          */
362         public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
363         {
364             synchronized (monitor())
365             {
366                 check_orphaned();
367                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
368                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$8);
369                 if (target == null)
370                 {
371                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$8);
372                 }
373                 target.set(formVersion);
374             }
375         }
376     }
377 }