001 /*
002 * XML Type: moduleType
003 * Namespace: http://geronimo.apache.org/xml/ns/j2ee/application-2.0
004 * Java type: org.apache.geronimo.xbeans.geronimo.j2ee.GerModuleType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.j2ee.impl;
009 /**
010 * An XML moduleType(@http://geronimo.apache.org/xml/ns/j2ee/application-2.0).
011 *
012 * This is a complex type.
013 */
014 public class GerModuleTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.j2ee.GerModuleType
015 {
016
017 public GerModuleTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName CONNECTOR$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "connector");
024 private static final javax.xml.namespace.QName EJB$2 =
025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "ejb");
026 private static final javax.xml.namespace.QName JAVA$4 =
027 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "java");
028 private static final javax.xml.namespace.QName WEB$6 =
029 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "web");
030 private static final javax.xml.namespace.QName ALTDD$8 =
031 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "alt-dd");
032
033
034 /**
035 * Gets the "connector" element
036 */
037 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType getConnector()
038 {
039 synchronized (monitor())
040 {
041 check_orphaned();
042 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
043 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(CONNECTOR$0, 0);
044 if (target == null)
045 {
046 return null;
047 }
048 return target;
049 }
050 }
051
052 /**
053 * True if has "connector" element
054 */
055 public boolean isSetConnector()
056 {
057 synchronized (monitor())
058 {
059 check_orphaned();
060 return get_store().count_elements(CONNECTOR$0) != 0;
061 }
062 }
063
064 /**
065 * Sets the "connector" element
066 */
067 public void setConnector(org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType connector)
068 {
069 synchronized (monitor())
070 {
071 check_orphaned();
072 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
073 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(CONNECTOR$0, 0);
074 if (target == null)
075 {
076 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(CONNECTOR$0);
077 }
078 target.set(connector);
079 }
080 }
081
082 /**
083 * Appends and returns a new empty "connector" element
084 */
085 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType addNewConnector()
086 {
087 synchronized (monitor())
088 {
089 check_orphaned();
090 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
091 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(CONNECTOR$0);
092 return target;
093 }
094 }
095
096 /**
097 * Unsets the "connector" element
098 */
099 public void unsetConnector()
100 {
101 synchronized (monitor())
102 {
103 check_orphaned();
104 get_store().remove_element(CONNECTOR$0, 0);
105 }
106 }
107
108 /**
109 * Gets the "ejb" element
110 */
111 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType getEjb()
112 {
113 synchronized (monitor())
114 {
115 check_orphaned();
116 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
117 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(EJB$2, 0);
118 if (target == null)
119 {
120 return null;
121 }
122 return target;
123 }
124 }
125
126 /**
127 * True if has "ejb" element
128 */
129 public boolean isSetEjb()
130 {
131 synchronized (monitor())
132 {
133 check_orphaned();
134 return get_store().count_elements(EJB$2) != 0;
135 }
136 }
137
138 /**
139 * Sets the "ejb" element
140 */
141 public void setEjb(org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType ejb)
142 {
143 synchronized (monitor())
144 {
145 check_orphaned();
146 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
147 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(EJB$2, 0);
148 if (target == null)
149 {
150 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(EJB$2);
151 }
152 target.set(ejb);
153 }
154 }
155
156 /**
157 * Appends and returns a new empty "ejb" element
158 */
159 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType addNewEjb()
160 {
161 synchronized (monitor())
162 {
163 check_orphaned();
164 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
165 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(EJB$2);
166 return target;
167 }
168 }
169
170 /**
171 * Unsets the "ejb" element
172 */
173 public void unsetEjb()
174 {
175 synchronized (monitor())
176 {
177 check_orphaned();
178 get_store().remove_element(EJB$2, 0);
179 }
180 }
181
182 /**
183 * Gets the "java" element
184 */
185 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType getJava()
186 {
187 synchronized (monitor())
188 {
189 check_orphaned();
190 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
191 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(JAVA$4, 0);
192 if (target == null)
193 {
194 return null;
195 }
196 return target;
197 }
198 }
199
200 /**
201 * True if has "java" element
202 */
203 public boolean isSetJava()
204 {
205 synchronized (monitor())
206 {
207 check_orphaned();
208 return get_store().count_elements(JAVA$4) != 0;
209 }
210 }
211
212 /**
213 * Sets the "java" element
214 */
215 public void setJava(org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType java)
216 {
217 synchronized (monitor())
218 {
219 check_orphaned();
220 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
221 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(JAVA$4, 0);
222 if (target == null)
223 {
224 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(JAVA$4);
225 }
226 target.set(java);
227 }
228 }
229
230 /**
231 * Appends and returns a new empty "java" element
232 */
233 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType addNewJava()
234 {
235 synchronized (monitor())
236 {
237 check_orphaned();
238 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
239 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(JAVA$4);
240 return target;
241 }
242 }
243
244 /**
245 * Unsets the "java" element
246 */
247 public void unsetJava()
248 {
249 synchronized (monitor())
250 {
251 check_orphaned();
252 get_store().remove_element(JAVA$4, 0);
253 }
254 }
255
256 /**
257 * Gets the "web" element
258 */
259 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType getWeb()
260 {
261 synchronized (monitor())
262 {
263 check_orphaned();
264 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
265 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(WEB$6, 0);
266 if (target == null)
267 {
268 return null;
269 }
270 return target;
271 }
272 }
273
274 /**
275 * True if has "web" element
276 */
277 public boolean isSetWeb()
278 {
279 synchronized (monitor())
280 {
281 check_orphaned();
282 return get_store().count_elements(WEB$6) != 0;
283 }
284 }
285
286 /**
287 * Sets the "web" element
288 */
289 public void setWeb(org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType web)
290 {
291 synchronized (monitor())
292 {
293 check_orphaned();
294 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
295 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(WEB$6, 0);
296 if (target == null)
297 {
298 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(WEB$6);
299 }
300 target.set(web);
301 }
302 }
303
304 /**
305 * Appends and returns a new empty "web" element
306 */
307 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType addNewWeb()
308 {
309 synchronized (monitor())
310 {
311 check_orphaned();
312 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
313 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(WEB$6);
314 return target;
315 }
316 }
317
318 /**
319 * Unsets the "web" element
320 */
321 public void unsetWeb()
322 {
323 synchronized (monitor())
324 {
325 check_orphaned();
326 get_store().remove_element(WEB$6, 0);
327 }
328 }
329
330 /**
331 * Gets the "alt-dd" element
332 */
333 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType getAltDd()
334 {
335 synchronized (monitor())
336 {
337 check_orphaned();
338 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
339 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(ALTDD$8, 0);
340 if (target == null)
341 {
342 return null;
343 }
344 return target;
345 }
346 }
347
348 /**
349 * True if has "alt-dd" element
350 */
351 public boolean isSetAltDd()
352 {
353 synchronized (monitor())
354 {
355 check_orphaned();
356 return get_store().count_elements(ALTDD$8) != 0;
357 }
358 }
359
360 /**
361 * Sets the "alt-dd" element
362 */
363 public void setAltDd(org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType altDd)
364 {
365 synchronized (monitor())
366 {
367 check_orphaned();
368 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
369 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().find_element_user(ALTDD$8, 0);
370 if (target == null)
371 {
372 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(ALTDD$8);
373 }
374 target.set(altDd);
375 }
376 }
377
378 /**
379 * Appends and returns a new empty "alt-dd" element
380 */
381 public org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType addNewAltDd()
382 {
383 synchronized (monitor())
384 {
385 check_orphaned();
386 org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType target = null;
387 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerPathType)get_store().add_element_user(ALTDD$8);
388 return target;
389 }
390 }
391
392 /**
393 * Unsets the "alt-dd" element
394 */
395 public void unsetAltDd()
396 {
397 synchronized (monitor())
398 {
399 check_orphaned();
400 get_store().remove_element(ALTDD$8, 0);
401 }
402 }
403 }