View Javadoc
1   /*
2    * An XML document type.
3    * Localname: COPS_Sh_ApplicationAttachment
4    * Namespace: http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0
5    * Java type: gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.copsShApplicationAttachmentV10.impl;
10  /**
11   * A document containing one COPS_Sh_ApplicationAttachment(@http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0) element.
12   *
13   * This is a complex type.
14   */
15  public class COPSShApplicationAttachmentDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public COPSShApplicationAttachmentDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName COPSSHAPPLICATIONATTACHMENT$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0", "COPS_Sh_ApplicationAttachment");
26      
27      
28      /**
29       * Gets the "COPS_Sh_ApplicationAttachment" element
30       */
31      public gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment getCOPSShApplicationAttachment()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment target = null;
37              target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment)get_store().find_element_user(COPSSHAPPLICATIONATTACHMENT$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "COPS_Sh_ApplicationAttachment" element
48       */
49      public void setCOPSShApplicationAttachment(gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment copsShApplicationAttachment)
50      {
51          generatedSetterHelperImpl(copsShApplicationAttachment, COPSSHAPPLICATIONATTACHMENT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
52      }
53      
54      /**
55       * Appends and returns a new empty "COPS_Sh_ApplicationAttachment" element
56       */
57      public gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment addNewCOPSShApplicationAttachment()
58      {
59          synchronized (monitor())
60          {
61              check_orphaned();
62              gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment target = null;
63              target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment)get_store().add_element_user(COPSSHAPPLICATIONATTACHMENT$0);
64              return target;
65          }
66      }
67      /**
68       * An XML COPS_Sh_ApplicationAttachment(@http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0).
69       *
70       * This is a complex type.
71       */
72      public static class COPSShApplicationAttachmentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment
73      {
74          private static final long serialVersionUID = 1L;
75          
76          public COPSShApplicationAttachmentImpl(org.apache.xmlbeans.SchemaType sType)
77          {
78              super(sType);
79          }
80          
81          private static final javax.xml.namespace.QName PROGRAMSELECTION$0 = 
82              new javax.xml.namespace.QName("http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0", "ProgramSelection");
83          private static final javax.xml.namespace.QName ORINUMBER$2 = 
84              new javax.xml.namespace.QName("http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0", "ORINumber");
85          private static final javax.xml.namespace.QName ORIVERIFICATION$4 = 
86              new javax.xml.namespace.QName("http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0", "ORIVerification");
87          private static final javax.xml.namespace.QName FORMVERSION$6 = 
88              new javax.xml.namespace.QName("http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0", "FormVersion");
89          
90          
91          /**
92           * Gets the "ProgramSelection" element
93           */
94          public gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection.Enum getProgramSelection()
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(PROGRAMSELECTION$0, 0);
101                 if (target == null)
102                 {
103                     return null;
104                 }
105                 return (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection.Enum)target.getEnumValue();
106             }
107         }
108         
109         /**
110          * Gets (as xml) the "ProgramSelection" element
111          */
112         public gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection xgetProgramSelection()
113         {
114             synchronized (monitor())
115             {
116                 check_orphaned();
117                 gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection target = null;
118                 target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection)get_store().find_element_user(PROGRAMSELECTION$0, 0);
119                 return target;
120             }
121         }
122         
123         /**
124          * Sets the "ProgramSelection" element
125          */
126         public void setProgramSelection(gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection.Enum programSelection)
127         {
128             synchronized (monitor())
129             {
130                 check_orphaned();
131                 org.apache.xmlbeans.SimpleValue target = null;
132                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROGRAMSELECTION$0, 0);
133                 if (target == null)
134                 {
135                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROGRAMSELECTION$0);
136                 }
137                 target.setEnumValue(programSelection);
138             }
139         }
140         
141         /**
142          * Sets (as xml) the "ProgramSelection" element
143          */
144         public void xsetProgramSelection(gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection programSelection)
145         {
146             synchronized (monitor())
147             {
148                 check_orphaned();
149                 gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection target = null;
150                 target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection)get_store().find_element_user(PROGRAMSELECTION$0, 0);
151                 if (target == null)
152                 {
153                     target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection)get_store().add_element_user(PROGRAMSELECTION$0);
154                 }
155                 target.set(programSelection);
156             }
157         }
158         
159         /**
160          * Gets the "ORINumber" element
161          */
162         public java.lang.String getORINumber()
163         {
164             synchronized (monitor())
165             {
166                 check_orphaned();
167                 org.apache.xmlbeans.SimpleValue target = null;
168                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORINUMBER$2, 0);
169                 if (target == null)
170                 {
171                     return null;
172                 }
173                 return target.getStringValue();
174             }
175         }
176         
177         /**
178          * Gets (as xml) the "ORINumber" element
179          */
180         public gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORINumber xgetORINumber()
181         {
182             synchronized (monitor())
183             {
184                 check_orphaned();
185                 gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORINumber target = null;
186                 target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORINumber)get_store().find_element_user(ORINUMBER$2, 0);
187                 return target;
188             }
189         }
190         
191         /**
192          * Sets the "ORINumber" element
193          */
194         public void setORINumber(java.lang.String oriNumber)
195         {
196             synchronized (monitor())
197             {
198                 check_orphaned();
199                 org.apache.xmlbeans.SimpleValue target = null;
200                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORINUMBER$2, 0);
201                 if (target == null)
202                 {
203                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORINUMBER$2);
204                 }
205                 target.setStringValue(oriNumber);
206             }
207         }
208         
209         /**
210          * Sets (as xml) the "ORINumber" element
211          */
212         public void xsetORINumber(gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORINumber oriNumber)
213         {
214             synchronized (monitor())
215             {
216                 check_orphaned();
217                 gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORINumber target = null;
218                 target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORINumber)get_store().find_element_user(ORINUMBER$2, 0);
219                 if (target == null)
220                 {
221                     target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORINumber)get_store().add_element_user(ORINUMBER$2);
222                 }
223                 target.set(oriNumber);
224             }
225         }
226         
227         /**
228          * Gets the "ORIVerification" element
229          */
230         public java.lang.String getORIVerification()
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(ORIVERIFICATION$4, 0);
237                 if (target == null)
238                 {
239                     return null;
240                 }
241                 return target.getStringValue();
242             }
243         }
244         
245         /**
246          * Gets (as xml) the "ORIVerification" element
247          */
248         public gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORIVerification xgetORIVerification()
249         {
250             synchronized (monitor())
251             {
252                 check_orphaned();
253                 gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORIVerification target = null;
254                 target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORIVerification)get_store().find_element_user(ORIVERIFICATION$4, 0);
255                 return target;
256             }
257         }
258         
259         /**
260          * Sets the "ORIVerification" element
261          */
262         public void setORIVerification(java.lang.String oriVerification)
263         {
264             synchronized (monitor())
265             {
266                 check_orphaned();
267                 org.apache.xmlbeans.SimpleValue target = null;
268                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORIVERIFICATION$4, 0);
269                 if (target == null)
270                 {
271                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORIVERIFICATION$4);
272                 }
273                 target.setStringValue(oriVerification);
274             }
275         }
276         
277         /**
278          * Sets (as xml) the "ORIVerification" element
279          */
280         public void xsetORIVerification(gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORIVerification oriVerification)
281         {
282             synchronized (monitor())
283             {
284                 check_orphaned();
285                 gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORIVerification target = null;
286                 target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORIVerification)get_store().find_element_user(ORIVERIFICATION$4, 0);
287                 if (target == null)
288                 {
289                     target = (gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORIVerification)get_store().add_element_user(ORIVERIFICATION$4);
290                 }
291                 target.set(oriVerification);
292             }
293         }
294         
295         /**
296          * Gets the "FormVersion" attribute
297          */
298         public java.lang.String getFormVersion()
299         {
300             synchronized (monitor())
301             {
302                 check_orphaned();
303                 org.apache.xmlbeans.SimpleValue target = null;
304                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$6);
305                 if (target == null)
306                 {
307                     target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$6);
308                 }
309                 if (target == null)
310                 {
311                     return null;
312                 }
313                 return target.getStringValue();
314             }
315         }
316         
317         /**
318          * Gets (as xml) the "FormVersion" attribute
319          */
320         public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
321         {
322             synchronized (monitor())
323             {
324                 check_orphaned();
325                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
326                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$6);
327                 if (target == null)
328                 {
329                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$6);
330                 }
331                 return target;
332             }
333         }
334         
335         /**
336          * Sets the "FormVersion" attribute
337          */
338         public void setFormVersion(java.lang.String formVersion)
339         {
340             synchronized (monitor())
341             {
342                 check_orphaned();
343                 org.apache.xmlbeans.SimpleValue target = null;
344                 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$6);
345                 if (target == null)
346                 {
347                     target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$6);
348                 }
349                 target.setStringValue(formVersion);
350             }
351         }
352         
353         /**
354          * Sets (as xml) the "FormVersion" attribute
355          */
356         public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
357         {
358             synchronized (monitor())
359             {
360                 check_orphaned();
361                 gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
362                 target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$6);
363                 if (target == null)
364                 {
365                     target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$6);
366                 }
367                 target.set(formVersion);
368             }
369         }
370         /**
371          * An XML ProgramSelection(@http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0).
372          *
373          * This is an atomic type that is a restriction of gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument$COPSShApplicationAttachment$ProgramSelection.
374          */
375         public static class ProgramSelectionImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ProgramSelection
376         {
377             private static final long serialVersionUID = 1L;
378             
379             public ProgramSelectionImpl(org.apache.xmlbeans.SchemaType sType)
380             {
381                 super(sType, false);
382             }
383             
384             protected ProgramSelectionImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
385             {
386                 super(sType, b);
387             }
388         }
389         /**
390          * An XML ORINumber(@http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0).
391          *
392          * This is an atomic type that is a restriction of gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument$COPSShApplicationAttachment$ORINumber.
393          */
394         public static class ORINumberImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORINumber
395         {
396             private static final long serialVersionUID = 1L;
397             
398             public ORINumberImpl(org.apache.xmlbeans.SchemaType sType)
399             {
400                 super(sType, false);
401             }
402             
403             protected ORINumberImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
404             {
405                 super(sType, b);
406             }
407         }
408         /**
409          * An XML ORIVerification(@http://apply.grants.gov/forms/COPS_Sh_ApplicationAttachment-V1.0).
410          *
411          * This is an atomic type that is a restriction of gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument$COPSShApplicationAttachment$ORIVerification.
412          */
413         public static class ORIVerificationImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.forms.copsShApplicationAttachmentV10.COPSShApplicationAttachmentDocument.COPSShApplicationAttachment.ORIVerification
414         {
415             private static final long serialVersionUID = 1L;
416             
417             public ORIVerificationImpl(org.apache.xmlbeans.SchemaType sType)
418             {
419                 super(sType, false);
420             }
421             
422             protected ORIVerificationImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
423             {
424                 super(sType, b);
425             }
426         }
427     }
428 }