View Javadoc
1   /*
2    * An XML document type.
3    * Localname: GrantApplication
4    * Namespace: http://apply.grants.gov/forms/SF424-V1.0
5    * Java type: gov.grants.apply.forms.sf424V10.GrantApplicationDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424V10.impl;
10  /**
11   * A document containing one GrantApplication(@http://apply.grants.gov/forms/SF424-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class GrantApplicationDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.GrantApplicationDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public GrantApplicationDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName GRANTAPPLICATION$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "GrantApplication");
26      
27      
28      /**
29       * Gets the "GrantApplication" element
30       */
31      public gov.grants.apply.forms.sf424V10.GrantApplicationType getGrantApplication()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.sf424V10.GrantApplicationType target = null;
37              target = (gov.grants.apply.forms.sf424V10.GrantApplicationType)get_store().find_element_user(GRANTAPPLICATION$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "GrantApplication" element
48       */
49      public void setGrantApplication(gov.grants.apply.forms.sf424V10.GrantApplicationType grantApplication)
50      {
51          generatedSetterHelperImpl(grantApplication, GRANTAPPLICATION$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "GrantApplication" element
56       */
57      public gov.grants.apply.forms.sf424V10.GrantApplicationType addNewGrantApplication()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.sf424V10.GrantApplicationType target = null;
63              target = (gov.grants.apply.forms.sf424V10.GrantApplicationType)get_store().add_element_user(GRANTAPPLICATION$0);
64              return target;
65          }
66      }
67  }