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