View Javadoc
1   /*
2    * An XML document type.
3    * Localname: OtherInformation
4    * Namespace: http://apply.grants.gov/forms/SF424A-V1.0
5    * Java type: gov.grants.apply.forms.sf424AV10.OtherInformationDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424AV10.impl;
10  /**
11   * A document containing one OtherInformation(@http://apply.grants.gov/forms/SF424A-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class OtherInformationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.OtherInformationDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public OtherInformationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName OTHERINFORMATION$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "OtherInformation");
26      
27      
28      /**
29       * Gets the "OtherInformation" element
30       */
31      public gov.grants.apply.forms.sf424AV10.OtherInformationDocument.OtherInformation getOtherInformation()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424AV10.OtherInformationDocument.OtherInformation target = null;
37              target = (gov.grants.apply.forms.sf424AV10.OtherInformationDocument.OtherInformation)get_store().find_element_user(OTHERINFORMATION$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "OtherInformation" element
48       */
49      public void setOtherInformation(gov.grants.apply.forms.sf424AV10.OtherInformationDocument.OtherInformation otherInformation)
50      {
51          generatedSetterHelperImpl(otherInformation, OTHERINFORMATION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "OtherInformation" element
56       */
57      public gov.grants.apply.forms.sf424AV10.OtherInformationDocument.OtherInformation addNewOtherInformation()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424AV10.OtherInformationDocument.OtherInformation target = null;
63              target = (gov.grants.apply.forms.sf424AV10.OtherInformationDocument.OtherInformation)get_store().add_element_user(OTHERINFORMATION$0);
64              return target;
65          }
66      }
67      /**
68       * An XML OtherInformation(@http://apply.grants.gov/forms/SF424A-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class OtherInformationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424AV10.OtherInformationDocument.OtherInformation
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public OtherInformationImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName OTHERDIRECTCHARGESEXPLANATION$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "OtherDirectChargesExplanation");
83          private static final javax.xml.namespace.QName OTHERINDIRECTCHARGESEXPLANATION$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "OtherIndirectChargesExplanation");
85          private static final javax.xml.namespace.QName REMARKS$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424A-V1.0", "Remarks");
87          
88          
89          /**
90           * Gets the "OtherDirectChargesExplanation" element
91           */
92          public java.lang.String getOtherDirectChargesExplanation()
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(OTHERDIRECTCHARGESEXPLANATION$0, 0);
99                  if (target == null)
100                 {
101                     return null;
102                 }
103                 return target.getStringValue();
104             }
105         }
106         
107         /**
108          * Gets (as xml) the "OtherDirectChargesExplanation" element
109          */
110         public gov.grants.apply.system.globalV10.StringMin1Max50Type xgetOtherDirectChargesExplanation()
111         {
112             synchronized (monitor())
113             {
114                 check_orphaned();
115                 gov.grants.apply.system.globalV10.StringMin1Max50Type target = null;
116                 target = (gov.grants.apply.system.globalV10.StringMin1Max50Type)get_store().find_element_user(OTHERDIRECTCHARGESEXPLANATION$0, 0);
117                 return target;
118             }
119         }
120         
121         /**
122          * True if has "OtherDirectChargesExplanation" element
123          */
124         public boolean isSetOtherDirectChargesExplanation()
125         {
126             synchronized (monitor())
127             {
128                 check_orphaned();
129                 return get_store().count_elements(OTHERDIRECTCHARGESEXPLANATION$0) != 0;
130             }
131         }
132         
133         /**
134          * Sets the "OtherDirectChargesExplanation" element
135          */
136         public void setOtherDirectChargesExplanation(java.lang.String otherDirectChargesExplanation)
137         {
138             synchronized (monitor())
139             {
140                 check_orphaned();
141                 org.apache.xmlbeans.SimpleValue target = null;
142                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OTHERDIRECTCHARGESEXPLANATION$0, 0);
143                 if (target == null)
144                 {
145                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OTHERDIRECTCHARGESEXPLANATION$0);
146                 }
147                 target.setStringValue(otherDirectChargesExplanation);
148             }
149         }
150         
151         /**
152          * Sets (as xml) the "OtherDirectChargesExplanation" element
153          */
154         public void xsetOtherDirectChargesExplanation(gov.grants.apply.system.globalV10.StringMin1Max50Type otherDirectChargesExplanation)
155         {
156             synchronized (monitor())
157             {
158                 check_orphaned();
159                 gov.grants.apply.system.globalV10.StringMin1Max50Type target = null;
160                 target = (gov.grants.apply.system.globalV10.StringMin1Max50Type)get_store().find_element_user(OTHERDIRECTCHARGESEXPLANATION$0, 0);
161                 if (target == null)
162                 {
163                     target = (gov.grants.apply.system.globalV10.StringMin1Max50Type)get_store().add_element_user(OTHERDIRECTCHARGESEXPLANATION$0);
164                 }
165                 target.set(otherDirectChargesExplanation);
166             }
167         }
168         
169         /**
170          * Unsets the "OtherDirectChargesExplanation" element
171          */
172         public void unsetOtherDirectChargesExplanation()
173         {
174             synchronized (monitor())
175             {
176                 check_orphaned();
177                 get_store().remove_element(OTHERDIRECTCHARGESEXPLANATION$0, 0);
178             }
179         }
180         
181         /**
182          * Gets the "OtherIndirectChargesExplanation" element
183          */
184         public java.lang.String getOtherIndirectChargesExplanation()
185         {
186             synchronized (monitor())
187             {
188                 check_orphaned();
189                 org.apache.xmlbeans.SimpleValue target = null;
190                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OTHERINDIRECTCHARGESEXPLANATION$2, 0);
191                 if (target == null)
192                 {
193                     return null;
194                 }
195                 return target.getStringValue();
196             }
197         }
198         
199         /**
200          * Gets (as xml) the "OtherIndirectChargesExplanation" element
201          */
202         public gov.grants.apply.system.globalV10.StringMin1Max50Type xgetOtherIndirectChargesExplanation()
203         {
204             synchronized (monitor())
205             {
206                 check_orphaned();
207                 gov.grants.apply.system.globalV10.StringMin1Max50Type target = null;
208                 target = (gov.grants.apply.system.globalV10.StringMin1Max50Type)get_store().find_element_user(OTHERINDIRECTCHARGESEXPLANATION$2, 0);
209                 return target;
210             }
211         }
212         
213         /**
214          * True if has "OtherIndirectChargesExplanation" element
215          */
216         public boolean isSetOtherIndirectChargesExplanation()
217         {
218             synchronized (monitor())
219             {
220                 check_orphaned();
221                 return get_store().count_elements(OTHERINDIRECTCHARGESEXPLANATION$2) != 0;
222             }
223         }
224         
225         /**
226          * Sets the "OtherIndirectChargesExplanation" element
227          */
228         public void setOtherIndirectChargesExplanation(java.lang.String otherIndirectChargesExplanation)
229         {
230             synchronized (monitor())
231             {
232                 check_orphaned();
233                 org.apache.xmlbeans.SimpleValue target = null;
234                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OTHERINDIRECTCHARGESEXPLANATION$2, 0);
235                 if (target == null)
236                 {
237                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OTHERINDIRECTCHARGESEXPLANATION$2);
238                 }
239                 target.setStringValue(otherIndirectChargesExplanation);
240             }
241         }
242         
243         /**
244          * Sets (as xml) the "OtherIndirectChargesExplanation" element
245          */
246         public void xsetOtherIndirectChargesExplanation(gov.grants.apply.system.globalV10.StringMin1Max50Type otherIndirectChargesExplanation)
247         {
248             synchronized (monitor())
249             {
250                 check_orphaned();
251                 gov.grants.apply.system.globalV10.StringMin1Max50Type target = null;
252                 target = (gov.grants.apply.system.globalV10.StringMin1Max50Type)get_store().find_element_user(OTHERINDIRECTCHARGESEXPLANATION$2, 0);
253                 if (target == null)
254                 {
255                     target = (gov.grants.apply.system.globalV10.StringMin1Max50Type)get_store().add_element_user(OTHERINDIRECTCHARGESEXPLANATION$2);
256                 }
257                 target.set(otherIndirectChargesExplanation);
258             }
259         }
260         
261         /**
262          * Unsets the "OtherIndirectChargesExplanation" element
263          */
264         public void unsetOtherIndirectChargesExplanation()
265         {
266             synchronized (monitor())
267             {
268                 check_orphaned();
269                 get_store().remove_element(OTHERINDIRECTCHARGESEXPLANATION$2, 0);
270             }
271         }
272         
273         /**
274          * Gets the "Remarks" element
275          */
276         public java.lang.String getRemarks()
277         {
278             synchronized (monitor())
279             {
280                 check_orphaned();
281                 org.apache.xmlbeans.SimpleValue target = null;
282                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REMARKS$4, 0);
283                 if (target == null)
284                 {
285                     return null;
286                 }
287                 return target.getStringValue();
288             }
289         }
290         
291         /**
292          * Gets (as xml) the "Remarks" element
293          */
294         public gov.grants.apply.system.globalV10.StringMin1Max250Type xgetRemarks()
295         {
296             synchronized (monitor())
297             {
298                 check_orphaned();
299                 gov.grants.apply.system.globalV10.StringMin1Max250Type target = null;
300                 target = (gov.grants.apply.system.globalV10.StringMin1Max250Type)get_store().find_element_user(REMARKS$4, 0);
301                 return target;
302             }
303         }
304         
305         /**
306          * True if has "Remarks" element
307          */
308         public boolean isSetRemarks()
309         {
310             synchronized (monitor())
311             {
312                 check_orphaned();
313                 return get_store().count_elements(REMARKS$4) != 0;
314             }
315         }
316         
317         /**
318          * Sets the "Remarks" element
319          */
320         public void setRemarks(java.lang.String remarks)
321         {
322             synchronized (monitor())
323             {
324                 check_orphaned();
325                 org.apache.xmlbeans.SimpleValue target = null;
326                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REMARKS$4, 0);
327                 if (target == null)
328                 {
329                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REMARKS$4);
330                 }
331                 target.setStringValue(remarks);
332             }
333         }
334         
335         /**
336          * Sets (as xml) the "Remarks" element
337          */
338         public void xsetRemarks(gov.grants.apply.system.globalV10.StringMin1Max250Type remarks)
339         {
340             synchronized (monitor())
341             {
342                 check_orphaned();
343                 gov.grants.apply.system.globalV10.StringMin1Max250Type target = null;
344                 target = (gov.grants.apply.system.globalV10.StringMin1Max250Type)get_store().find_element_user(REMARKS$4, 0);
345                 if (target == null)
346                 {
347                     target = (gov.grants.apply.system.globalV10.StringMin1Max250Type)get_store().add_element_user(REMARKS$4);
348                 }
349                 target.set(remarks);
350             }
351         }
352         
353         /**
354          * Unsets the "Remarks" element
355          */
356         public void unsetRemarks()
357         {
358             synchronized (monitor())
359             {
360                 check_orphaned();
361                 get_store().remove_element(REMARKS$4, 0);
362             }
363         }
364     }
365 }