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