View Javadoc
1   /*
2    * An XML document type.
3    * Localname: OrganizationIdentifyingInformation
4    * Namespace: http://apply.grants.gov/forms/SF424-V1.0
5    * Java type: gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424V10.impl;
10  /**
11   * A document containing one OrganizationIdentifyingInformation(@http://apply.grants.gov/forms/SF424-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class OrganizationIdentifyingInformationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public OrganizationIdentifyingInformationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName ORGANIZATIONIDENTIFYINGINFORMATION$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "OrganizationIdentifyingInformation");
26      
27      
28      /**
29       * Gets the "OrganizationIdentifyingInformation" element
30       */
31      public gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation getOrganizationIdentifyingInformation()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation target = null;
37              target = (gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation)get_store().find_element_user(ORGANIZATIONIDENTIFYINGINFORMATION$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "OrganizationIdentifyingInformation" element
48       */
49      public void setOrganizationIdentifyingInformation(gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation organizationIdentifyingInformation)
50      {
51          generatedSetterHelperImpl(organizationIdentifyingInformation, ORGANIZATIONIDENTIFYINGINFORMATION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "OrganizationIdentifyingInformation" element
56       */
57      public gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation addNewOrganizationIdentifyingInformation()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation target = null;
63              target = (gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation)get_store().add_element_user(ORGANIZATIONIDENTIFYINGINFORMATION$0);
64              return target;
65          }
66      }
67      /**
68       * An XML OrganizationIdentifyingInformation(@http://apply.grants.gov/forms/SF424-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class OrganizationIdentifyingInformationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.OrganizationIdentifyingInformationDocument.OrganizationIdentifyingInformation
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public OrganizationIdentifyingInformationImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName APPLICANTID$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "ApplicantID");
83          private static final javax.xml.namespace.QName APPLICANTTYPECODE$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "ApplicantTypeCode");
85          private static final javax.xml.namespace.QName APPLICANTTYPECODEOTHEREXPLANATION$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "ApplicantTypeCodeOtherExplanation");
87          private static final javax.xml.namespace.QName ORGANIZATION$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "Organization");
89          
90          
91          /**
92           * Gets the "ApplicantID" element
93           */
94          public java.lang.String getApplicantID()
95          {
96              synchronized (monitor())
97              {
98                  check_orphaned();
99                  org.apache.xmlbeans.SimpleValue target = null;
100                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTID$0, 0);
101                 if (target == null)
102                 {
103                     return null;
104                 }
105                 return target.getStringValue();
106             }
107         }
108         
109         /**
110          * Gets (as xml) the "ApplicantID" element
111          */
112         public gov.grants.apply.system.globalV10.StringMin1Max30Type xgetApplicantID()
113         {
114             synchronized (monitor())
115             {
116                 check_orphaned();
117                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
118                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(APPLICANTID$0, 0);
119                 return target;
120             }
121         }
122         
123         /**
124          * True if has "ApplicantID" element
125          */
126         public boolean isSetApplicantID()
127         {
128             synchronized (monitor())
129             {
130                 check_orphaned();
131                 return get_store().count_elements(APPLICANTID$0) != 0;
132             }
133         }
134         
135         /**
136          * Sets the "ApplicantID" element
137          */
138         public void setApplicantID(java.lang.String applicantID)
139         {
140             synchronized (monitor())
141             {
142                 check_orphaned();
143                 org.apache.xmlbeans.SimpleValue target = null;
144                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTID$0, 0);
145                 if (target == null)
146                 {
147                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(APPLICANTID$0);
148                 }
149                 target.setStringValue(applicantID);
150             }
151         }
152         
153         /**
154          * Sets (as xml) the "ApplicantID" element
155          */
156         public void xsetApplicantID(gov.grants.apply.system.globalV10.StringMin1Max30Type applicantID)
157         {
158             synchronized (monitor())
159             {
160                 check_orphaned();
161                 gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
162                 target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(APPLICANTID$0, 0);
163                 if (target == null)
164                 {
165                     target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().add_element_user(APPLICANTID$0);
166                 }
167                 target.set(applicantID);
168             }
169         }
170         
171         /**
172          * Unsets the "ApplicantID" element
173          */
174         public void unsetApplicantID()
175         {
176             synchronized (monitor())
177             {
178                 check_orphaned();
179                 get_store().remove_element(APPLICANTID$0, 0);
180             }
181         }
182         
183         /**
184          * Gets the "ApplicantTypeCode" element
185          */
186         public gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType.Enum getApplicantTypeCode()
187         {
188             synchronized (monitor())
189             {
190                 check_orphaned();
191                 org.apache.xmlbeans.SimpleValue target = null;
192                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTTYPECODE$2, 0);
193                 if (target == null)
194                 {
195                     return null;
196                 }
197                 return (gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType.Enum)target.getEnumValue();
198             }
199         }
200         
201         /**
202          * Gets (as xml) the "ApplicantTypeCode" element
203          */
204         public gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType xgetApplicantTypeCode()
205         {
206             synchronized (monitor())
207             {
208                 check_orphaned();
209                 gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType target = null;
210                 target = (gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType)get_store().find_element_user(APPLICANTTYPECODE$2, 0);
211                 return target;
212             }
213         }
214         
215         /**
216          * True if has "ApplicantTypeCode" element
217          */
218         public boolean isSetApplicantTypeCode()
219         {
220             synchronized (monitor())
221             {
222                 check_orphaned();
223                 return get_store().count_elements(APPLICANTTYPECODE$2) != 0;
224             }
225         }
226         
227         /**
228          * Sets the "ApplicantTypeCode" element
229          */
230         public void setApplicantTypeCode(gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType.Enum applicantTypeCode)
231         {
232             synchronized (monitor())
233             {
234                 check_orphaned();
235                 org.apache.xmlbeans.SimpleValue target = null;
236                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTTYPECODE$2, 0);
237                 if (target == null)
238                 {
239                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(APPLICANTTYPECODE$2);
240                 }
241                 target.setEnumValue(applicantTypeCode);
242             }
243         }
244         
245         /**
246          * Sets (as xml) the "ApplicantTypeCode" element
247          */
248         public void xsetApplicantTypeCode(gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType applicantTypeCode)
249         {
250             synchronized (monitor())
251             {
252                 check_orphaned();
253                 gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType target = null;
254                 target = (gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType)get_store().find_element_user(APPLICANTTYPECODE$2, 0);
255                 if (target == null)
256                 {
257                     target = (gov.grants.apply.forms.sf424V10.ApplicantTypeCodeType)get_store().add_element_user(APPLICANTTYPECODE$2);
258                 }
259                 target.set(applicantTypeCode);
260             }
261         }
262         
263         /**
264          * Unsets the "ApplicantTypeCode" element
265          */
266         public void unsetApplicantTypeCode()
267         {
268             synchronized (monitor())
269             {
270                 check_orphaned();
271                 get_store().remove_element(APPLICANTTYPECODE$2, 0);
272             }
273         }
274         
275         /**
276          * Gets the "ApplicantTypeCodeOtherExplanation" element
277          */
278         public java.lang.String getApplicantTypeCodeOtherExplanation()
279         {
280             synchronized (monitor())
281             {
282                 check_orphaned();
283                 org.apache.xmlbeans.SimpleValue target = null;
284                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTTYPECODEOTHEREXPLANATION$4, 0);
285                 if (target == null)
286                 {
287                     return null;
288                 }
289                 return target.getStringValue();
290             }
291         }
292         
293         /**
294          * Gets (as xml) the "ApplicantTypeCodeOtherExplanation" element
295          */
296         public gov.grants.apply.system.globalV10.StringMin1Max50Type xgetApplicantTypeCodeOtherExplanation()
297         {
298             synchronized (monitor())
299             {
300                 check_orphaned();
301                 gov.grants.apply.system.globalV10.StringMin1Max50Type target = null;
302                 target = (gov.grants.apply.system.globalV10.StringMin1Max50Type)get_store().find_element_user(APPLICANTTYPECODEOTHEREXPLANATION$4, 0);
303                 return target;
304             }
305         }
306         
307         /**
308          * True if has "ApplicantTypeCodeOtherExplanation" element
309          */
310         public boolean isSetApplicantTypeCodeOtherExplanation()
311         {
312             synchronized (monitor())
313             {
314                 check_orphaned();
315                 return get_store().count_elements(APPLICANTTYPECODEOTHEREXPLANATION$4) != 0;
316             }
317         }
318         
319         /**
320          * Sets the "ApplicantTypeCodeOtherExplanation" element
321          */
322         public void setApplicantTypeCodeOtherExplanation(java.lang.String applicantTypeCodeOtherExplanation)
323         {
324             synchronized (monitor())
325             {
326                 check_orphaned();
327                 org.apache.xmlbeans.SimpleValue target = null;
328                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(APPLICANTTYPECODEOTHEREXPLANATION$4, 0);
329                 if (target == null)
330                 {
331                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(APPLICANTTYPECODEOTHEREXPLANATION$4);
332                 }
333                 target.setStringValue(applicantTypeCodeOtherExplanation);
334             }
335         }
336         
337         /**
338          * Sets (as xml) the "ApplicantTypeCodeOtherExplanation" element
339          */
340         public void xsetApplicantTypeCodeOtherExplanation(gov.grants.apply.system.globalV10.StringMin1Max50Type applicantTypeCodeOtherExplanation)
341         {
342             synchronized (monitor())
343             {
344                 check_orphaned();
345                 gov.grants.apply.system.globalV10.StringMin1Max50Type target = null;
346                 target = (gov.grants.apply.system.globalV10.StringMin1Max50Type)get_store().find_element_user(APPLICANTTYPECODEOTHEREXPLANATION$4, 0);
347                 if (target == null)
348                 {
349                     target = (gov.grants.apply.system.globalV10.StringMin1Max50Type)get_store().add_element_user(APPLICANTTYPECODEOTHEREXPLANATION$4);
350                 }
351                 target.set(applicantTypeCodeOtherExplanation);
352             }
353         }
354         
355         /**
356          * Unsets the "ApplicantTypeCodeOtherExplanation" element
357          */
358         public void unsetApplicantTypeCodeOtherExplanation()
359         {
360             synchronized (monitor())
361             {
362                 check_orphaned();
363                 get_store().remove_element(APPLICANTTYPECODEOTHEREXPLANATION$4, 0);
364             }
365         }
366         
367         /**
368          * Gets the "Organization" element
369          */
370         public gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization getOrganization()
371         {
372             synchronized (monitor())
373             {
374                 check_orphaned();
375                 gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization target = null;
376                 target = (gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization)get_store().find_element_user(ORGANIZATION$6, 0);
377                 if (target == null)
378                 {
379                     return null;
380                 }
381                 return target;
382             }
383         }
384         
385         /**
386          * True if has "Organization" element
387          */
388         public boolean isSetOrganization()
389         {
390             synchronized (monitor())
391             {
392                 check_orphaned();
393                 return get_store().count_elements(ORGANIZATION$6) != 0;
394             }
395         }
396         
397         /**
398          * Sets the "Organization" element
399          */
400         public void setOrganization(gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization organization)
401         {
402             generatedSetterHelperImpl(organization, ORGANIZATION$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
403         }
404         
405         /**
406          * Appends and returns a new empty "Organization" element
407          */
408         public gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization addNewOrganization()
409         {
410             synchronized (monitor())
411             {
412                 check_orphaned();
413                 gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization target = null;
414                 target = (gov.grants.apply.forms.sf424V10.OrganizationDocument.Organization)get_store().add_element_user(ORGANIZATION$6);
415                 return target;
416             }
417         }
418         
419         /**
420          * Unsets the "Organization" element
421          */
422         public void unsetOrganization()
423         {
424             synchronized (monitor())
425             {
426                 check_orphaned();
427                 get_store().remove_element(ORGANIZATION$6, 0);
428             }
429         }
430     }
431 }