View Javadoc
1   /*
2    * An XML document type.
3    * Localname: GEPA427Attachments
4    * Namespace: http://apply.grants.gov/forms/ED_GEPA427-V1.1
5    * Java type: gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.edGEPA427V11.impl;
10  /**
11   * A document containing one GEPA427Attachments(@http://apply.grants.gov/forms/ED_GEPA427-V1.1) element.
12   *
13   * This is a complex type.
14   */
15  public class GEPA427AttachmentsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public GEPA427AttachmentsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName GEPA427ATTACHMENTS$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/ED_GEPA427-V1.1", "GEPA427Attachments");
26      
27      
28      /**
29       * Gets the "GEPA427Attachments" element
30       */
31      public gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument.GEPA427Attachments getGEPA427Attachments()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument.GEPA427Attachments target = null;
37              target = (gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument.GEPA427Attachments)get_store().find_element_user(GEPA427ATTACHMENTS$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "GEPA427Attachments" element
48       */
49      public void setGEPA427Attachments(gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument.GEPA427Attachments gepa427Attachments)
50      {
51          generatedSetterHelperImpl(gepa427Attachments, GEPA427ATTACHMENTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "GEPA427Attachments" element
56       */
57      public gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument.GEPA427Attachments addNewGEPA427Attachments()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument.GEPA427Attachments target = null;
63              target = (gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument.GEPA427Attachments)get_store().add_element_user(GEPA427ATTACHMENTS$0);
64              return target;
65          }
66      }
67      /**
68       * An XML GEPA427Attachments(@http://apply.grants.gov/forms/ED_GEPA427-V1.1).
69       *
70       * This is a complex type.
71       */
72      public static class GEPA427AttachmentsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.edGEPA427V11.GEPA427AttachmentsDocument.GEPA427Attachments
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public GEPA427AttachmentsImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName ATTACHMENTS$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/ED_GEPA427-V1.1", "Attachments");
83          private static final javax.xml.namespace.QName FORMVERSION$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/ED_GEPA427-V1.1", "FormVersion");
85          
86          
87          /**
88           * Gets the "Attachments" element
89           */
90          public gov.grants.apply.system.attachmentsV10.AttachedFileDataType getAttachments()
91          {
92              synchronized (monitor())
93              {
94                  check_orphaned();
95                  gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
96                  target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().find_element_user(ATTACHMENTS$0, 0);
97                  if (target == null)
98                  {
99                      return null;
100                 }
101                 return target;
102             }
103         }
104         
105         /**
106          * True if has "Attachments" element
107          */
108         public boolean isSetAttachments()
109         {
110             synchronized (monitor())
111             {
112                 check_orphaned();
113                 return get_store().count_elements(ATTACHMENTS$0) != 0;
114             }
115         }
116         
117         /**
118          * Sets the "Attachments" element
119          */
120         public void setAttachments(gov.grants.apply.system.attachmentsV10.AttachedFileDataType attachments)
121         {
122             generatedSetterHelperImpl(attachments, ATTACHMENTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
123         }
124         
125         /**
126          * Appends and returns a new empty "Attachments" element
127          */
128         public gov.grants.apply.system.attachmentsV10.AttachedFileDataType addNewAttachments()
129         {
130             synchronized (monitor())
131             {
132                 check_orphaned();
133                 gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
134                 target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().add_element_user(ATTACHMENTS$0);
135                 return target;
136             }
137         }
138         
139         /**
140          * Unsets the "Attachments" element
141          */
142         public void unsetAttachments()
143         {
144             synchronized (monitor())
145             {
146                 check_orphaned();
147                 get_store().remove_element(ATTACHMENTS$0, 0);
148             }
149         }
150         
151         /**
152          * Gets the "FormVersion" attribute
153          */
154         public java.lang.String getFormVersion()
155         {
156             synchronized (monitor())
157             {
158                 check_orphaned();
159                 org.apache.xmlbeans.SimpleValue target = null;
160                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$2);
161                 if (target == null)
162                 {
163                     target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$2);
164                 }
165                 if (target == null)
166                 {
167                     return null;
168                 }
169                 return target.getStringValue();
170             }
171         }
172         
173         /**
174          * Gets (as xml) the "FormVersion" attribute
175          */
176         public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
177         {
178             synchronized (monitor())
179             {
180                 check_orphaned();
181                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
182                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$2);
183                 if (target == null)
184                 {
185                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$2);
186                 }
187                 return target;
188             }
189         }
190         
191         /**
192          * Sets the "FormVersion" attribute
193          */
194         public void setFormVersion(java.lang.String formVersion)
195         {
196             synchronized (monitor())
197             {
198                 check_orphaned();
199                 org.apache.xmlbeans.SimpleValue target = null;
200                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$2);
201                 if (target == null)
202                 {
203                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$2);
204                 }
205                 target.setStringValue(formVersion);
206             }
207         }
208         
209         /**
210          * Sets (as xml) the "FormVersion" attribute
211          */
212         public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
213         {
214             synchronized (monitor())
215             {
216                 check_orphaned();
217                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
218                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$2);
219                 if (target == null)
220                 {
221                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$2);
222                 }
223                 target.set(formVersion);
224             }
225         }
226     }
227 }