View Javadoc
1   /*
2    * An XML document type.
3    * Localname: HHS_Certifications
4    * Namespace: http://apply.grants.gov/forms/HHS_Certifications-V1.0
5    * Java type: gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.hhsCertificationsV10.impl;
10  /**
11   * A document containing one HHS_Certifications(@http://apply.grants.gov/forms/HHS_Certifications-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class HHSCertificationsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public HHSCertificationsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName HHSCERTIFICATIONS$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/HHS_Certifications-V1.0", "HHS_Certifications");
26      
27      
28      /**
29       * Gets the "HHS_Certifications" element
30       */
31      public gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument.HHSCertifications getHHSCertifications()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument.HHSCertifications target = null;
37              target = (gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument.HHSCertifications)get_store().find_element_user(HHSCERTIFICATIONS$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "HHS_Certifications" element
48       */
49      public void setHHSCertifications(gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument.HHSCertifications hhsCertifications)
50      {
51          generatedSetterHelperImpl(hhsCertifications, HHSCERTIFICATIONS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "HHS_Certifications" element
56       */
57      public gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument.HHSCertifications addNewHHSCertifications()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument.HHSCertifications target = null;
63              target = (gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument.HHSCertifications)get_store().add_element_user(HHSCERTIFICATIONS$0);
64              return target;
65          }
66      }
67      /**
68       * An XML HHS_Certifications(@http://apply.grants.gov/forms/HHS_Certifications-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class HHSCertificationsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.hhsCertificationsV10.HHSCertificationsDocument.HHSCertifications
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public HHSCertificationsImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName FORMVERSION$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/HHS_Certifications-V1.0", "FormVersion");
83          
84          
85          /**
86           * Gets the "FormVersion" attribute
87           */
88          public java.lang.String getFormVersion()
89          {
90              synchronized (monitor())
91              {
92                  check_orphaned();
93                  org.apache.xmlbeans.SimpleValue target = null;
94                  target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$0);
95                  if (target == null)
96                  {
97                      target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$0);
98                  }
99                  if (target == null)
100                 {
101                     return null;
102                 }
103                 return target.getStringValue();
104             }
105         }
106         
107         /**
108          * Gets (as xml) the "FormVersion" attribute
109          */
110         public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
111         {
112             synchronized (monitor())
113             {
114                 check_orphaned();
115                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
116                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$0);
117                 if (target == null)
118                 {
119                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$0);
120                 }
121                 return target;
122             }
123         }
124         
125         /**
126          * Sets the "FormVersion" attribute
127          */
128         public void setFormVersion(java.lang.String formVersion)
129         {
130             synchronized (monitor())
131             {
132                 check_orphaned();
133                 org.apache.xmlbeans.SimpleValue target = null;
134                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$0);
135                 if (target == null)
136                 {
137                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$0);
138                 }
139                 target.setStringValue(formVersion);
140             }
141         }
142         
143         /**
144          * Sets (as xml) the "FormVersion" attribute
145          */
146         public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
147         {
148             synchronized (monitor())
149             {
150                 check_orphaned();
151                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
152                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$0);
153                 if (target == null)
154                 {
155                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$0);
156                 }
157                 target.set(formVersion);
158             }
159         }
160     }
161 }