001 /*
002 * XML Type: geronimo-ejb-jarType
003 * Namespace: http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0
004 * Java type: org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbGeronimoEjbJarType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.openejb.xbeans.ejbjar.impl;
009 /**
010 * An XML geronimo-ejb-jarType(@http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0).
011 *
012 * This is a complex type.
013 */
014 public class OpenejbGeronimoEjbJarTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbGeronimoEjbJarType
015 {
016 private static final long serialVersionUID = 1L;
017
018 public OpenejbGeronimoEjbJarTypeImpl(org.apache.xmlbeans.SchemaType sType)
019 {
020 super(sType);
021 }
022
023 private static final javax.xml.namespace.QName ENVIRONMENT$0 =
024 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "environment");
025 private static final javax.xml.namespace.QName OPENEJBJAR$2 =
026 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0", "openejb-jar");
027 private static final javax.xml.namespace.QName ABSTRACTNAMINGENTRY$4 =
028 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry");
029 private static final org.apache.xmlbeans.QNameSet ABSTRACTNAMINGENTRY$5 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] {
030 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "gbean-ref"),
031 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-context-ref"),
032 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "persistence-unit-ref"),
033 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "abstract-naming-entry"),
034 });
035 private static final javax.xml.namespace.QName ENVENTRY$6 =
036 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "env-entry");
037 private static final javax.xml.namespace.QName EJBREF$8 =
038 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ejb-ref");
039 private static final javax.xml.namespace.QName EJBLOCALREF$10 =
040 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ejb-local-ref");
041 private static final javax.xml.namespace.QName SERVICEREF$12 =
042 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "service-ref");
043 private static final javax.xml.namespace.QName RESOURCEREF$14 =
044 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-ref");
045 private static final javax.xml.namespace.QName RESOURCEENVREF$16 =
046 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-env-ref");
047 private static final javax.xml.namespace.QName MESSAGEDESTINATION$18 =
048 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "message-destination");
049 private static final javax.xml.namespace.QName TSSLINK$20 =
050 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0", "tss-link");
051 private static final javax.xml.namespace.QName WEBSERVICEBINDING$22 =
052 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0", "web-service-binding");
053 private static final javax.xml.namespace.QName SECURITY$24 =
054 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/application-2.0", "security");
055 private static final javax.xml.namespace.QName SERVICE$26 =
056 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service");
057 private static final org.apache.xmlbeans.QNameSet SERVICE$27 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] {
058 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "service"),
059 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "gbean"),
060 });
061 private static final javax.xml.namespace.QName PERSISTENCE$28 =
062 new javax.xml.namespace.QName("http://java.sun.com/xml/ns/persistence", "persistence");
063
064
065 /**
066 * Gets the "environment" element
067 */
068 public org.apache.geronimo.deployment.xbeans.EnvironmentType getEnvironment()
069 {
070 synchronized (monitor())
071 {
072 check_orphaned();
073 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null;
074 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(ENVIRONMENT$0, 0);
075 if (target == null)
076 {
077 return null;
078 }
079 return target;
080 }
081 }
082
083 /**
084 * True if has "environment" element
085 */
086 public boolean isSetEnvironment()
087 {
088 synchronized (monitor())
089 {
090 check_orphaned();
091 return get_store().count_elements(ENVIRONMENT$0) != 0;
092 }
093 }
094
095 /**
096 * Sets the "environment" element
097 */
098 public void setEnvironment(org.apache.geronimo.deployment.xbeans.EnvironmentType environment)
099 {
100 synchronized (monitor())
101 {
102 check_orphaned();
103 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null;
104 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(ENVIRONMENT$0, 0);
105 if (target == null)
106 {
107 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(ENVIRONMENT$0);
108 }
109 target.set(environment);
110 }
111 }
112
113 /**
114 * Appends and returns a new empty "environment" element
115 */
116 public org.apache.geronimo.deployment.xbeans.EnvironmentType addNewEnvironment()
117 {
118 synchronized (monitor())
119 {
120 check_orphaned();
121 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null;
122 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(ENVIRONMENT$0);
123 return target;
124 }
125 }
126
127 /**
128 * Unsets the "environment" element
129 */
130 public void unsetEnvironment()
131 {
132 synchronized (monitor())
133 {
134 check_orphaned();
135 get_store().remove_element(ENVIRONMENT$0, 0);
136 }
137 }
138
139 /**
140 * Gets the "openejb-jar" element
141 */
142 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType getOpenejbJar()
143 {
144 synchronized (monitor())
145 {
146 check_orphaned();
147 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType target = null;
148 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType)get_store().find_element_user(OPENEJBJAR$2, 0);
149 if (target == null)
150 {
151 return null;
152 }
153 return target;
154 }
155 }
156
157 /**
158 * True if has "openejb-jar" element
159 */
160 public boolean isSetOpenejbJar()
161 {
162 synchronized (monitor())
163 {
164 check_orphaned();
165 return get_store().count_elements(OPENEJBJAR$2) != 0;
166 }
167 }
168
169 /**
170 * Sets the "openejb-jar" element
171 */
172 public void setOpenejbJar(org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType openejbJar)
173 {
174 synchronized (monitor())
175 {
176 check_orphaned();
177 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType target = null;
178 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType)get_store().find_element_user(OPENEJBJAR$2, 0);
179 if (target == null)
180 {
181 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType)get_store().add_element_user(OPENEJBJAR$2);
182 }
183 target.set(openejbJar);
184 }
185 }
186
187 /**
188 * Appends and returns a new empty "openejb-jar" element
189 */
190 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType addNewOpenejbJar()
191 {
192 synchronized (monitor())
193 {
194 check_orphaned();
195 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType target = null;
196 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbOpenejbJarType)get_store().add_element_user(OPENEJBJAR$2);
197 return target;
198 }
199 }
200
201 /**
202 * Unsets the "openejb-jar" element
203 */
204 public void unsetOpenejbJar()
205 {
206 synchronized (monitor())
207 {
208 check_orphaned();
209 get_store().remove_element(OPENEJBJAR$2, 0);
210 }
211 }
212
213 /**
214 * Gets array of all "abstract-naming-entry" elements
215 */
216 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] getAbstractNamingEntryArray()
217 {
218 synchronized (monitor())
219 {
220 check_orphaned();
221 java.util.List targetList = new java.util.ArrayList();
222 get_store().find_all_element_users(ABSTRACTNAMINGENTRY$5, targetList);
223 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[targetList.size()];
224 targetList.toArray(result);
225 return result;
226 }
227 }
228
229 /**
230 * Gets ith "abstract-naming-entry" element
231 */
232 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType getAbstractNamingEntryArray(int i)
233 {
234 synchronized (monitor())
235 {
236 check_orphaned();
237 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
238 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$5, i);
239 if (target == null)
240 {
241 throw new IndexOutOfBoundsException();
242 }
243 return target;
244 }
245 }
246
247 /**
248 * Returns number of "abstract-naming-entry" element
249 */
250 public int sizeOfAbstractNamingEntryArray()
251 {
252 synchronized (monitor())
253 {
254 check_orphaned();
255 return get_store().count_elements(ABSTRACTNAMINGENTRY$5);
256 }
257 }
258
259 /**
260 * Sets array of all "abstract-naming-entry" element
261 */
262 public void setAbstractNamingEntryArray(org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType[] abstractNamingEntryArray)
263 {
264 synchronized (monitor())
265 {
266 check_orphaned();
267 arraySetterHelper(abstractNamingEntryArray, ABSTRACTNAMINGENTRY$4, ABSTRACTNAMINGENTRY$5);
268 }
269 }
270
271 /**
272 * Sets ith "abstract-naming-entry" element
273 */
274 public void setAbstractNamingEntryArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType abstractNamingEntry)
275 {
276 synchronized (monitor())
277 {
278 check_orphaned();
279 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
280 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().find_element_user(ABSTRACTNAMINGENTRY$5, i);
281 if (target == null)
282 {
283 throw new IndexOutOfBoundsException();
284 }
285 target.set(abstractNamingEntry);
286 }
287 }
288
289 /**
290 * Inserts and returns a new empty value (as xml) as the ith "abstract-naming-entry" element
291 */
292 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType insertNewAbstractNamingEntry(int i)
293 {
294 synchronized (monitor())
295 {
296 check_orphaned();
297 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
298 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().insert_element_user(ABSTRACTNAMINGENTRY$5, ABSTRACTNAMINGENTRY$4, i);
299 return target;
300 }
301 }
302
303 /**
304 * Appends and returns a new empty value (as xml) as the last "abstract-naming-entry" element
305 */
306 public org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType addNewAbstractNamingEntry()
307 {
308 synchronized (monitor())
309 {
310 check_orphaned();
311 org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType target = null;
312 target = (org.apache.geronimo.xbeans.geronimo.naming.GerAbstractNamingEntryType)get_store().add_element_user(ABSTRACTNAMINGENTRY$4);
313 return target;
314 }
315 }
316
317 /**
318 * Removes the ith "abstract-naming-entry" element
319 */
320 public void removeAbstractNamingEntry(int i)
321 {
322 synchronized (monitor())
323 {
324 check_orphaned();
325 get_store().remove_element(ABSTRACTNAMINGENTRY$5, i);
326 }
327 }
328
329 /**
330 * Gets array of all "env-entry" elements
331 */
332 public org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType[] getEnvEntryArray()
333 {
334 synchronized (monitor())
335 {
336 check_orphaned();
337 java.util.List targetList = new java.util.ArrayList();
338 get_store().find_all_element_users(ENVENTRY$6, targetList);
339 org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType[targetList.size()];
340 targetList.toArray(result);
341 return result;
342 }
343 }
344
345 /**
346 * Gets ith "env-entry" element
347 */
348 public org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType getEnvEntryArray(int i)
349 {
350 synchronized (monitor())
351 {
352 check_orphaned();
353 org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType target = null;
354 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType)get_store().find_element_user(ENVENTRY$6, i);
355 if (target == null)
356 {
357 throw new IndexOutOfBoundsException();
358 }
359 return target;
360 }
361 }
362
363 /**
364 * Returns number of "env-entry" element
365 */
366 public int sizeOfEnvEntryArray()
367 {
368 synchronized (monitor())
369 {
370 check_orphaned();
371 return get_store().count_elements(ENVENTRY$6);
372 }
373 }
374
375 /**
376 * Sets array of all "env-entry" element
377 */
378 public void setEnvEntryArray(org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType[] envEntryArray)
379 {
380 synchronized (monitor())
381 {
382 check_orphaned();
383 arraySetterHelper(envEntryArray, ENVENTRY$6);
384 }
385 }
386
387 /**
388 * Sets ith "env-entry" element
389 */
390 public void setEnvEntryArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType envEntry)
391 {
392 synchronized (monitor())
393 {
394 check_orphaned();
395 org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType target = null;
396 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType)get_store().find_element_user(ENVENTRY$6, i);
397 if (target == null)
398 {
399 throw new IndexOutOfBoundsException();
400 }
401 target.set(envEntry);
402 }
403 }
404
405 /**
406 * Inserts and returns a new empty value (as xml) as the ith "env-entry" element
407 */
408 public org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType insertNewEnvEntry(int i)
409 {
410 synchronized (monitor())
411 {
412 check_orphaned();
413 org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType target = null;
414 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType)get_store().insert_element_user(ENVENTRY$6, i);
415 return target;
416 }
417 }
418
419 /**
420 * Appends and returns a new empty value (as xml) as the last "env-entry" element
421 */
422 public org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType addNewEnvEntry()
423 {
424 synchronized (monitor())
425 {
426 check_orphaned();
427 org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType target = null;
428 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEnvEntryType)get_store().add_element_user(ENVENTRY$6);
429 return target;
430 }
431 }
432
433 /**
434 * Removes the ith "env-entry" element
435 */
436 public void removeEnvEntry(int i)
437 {
438 synchronized (monitor())
439 {
440 check_orphaned();
441 get_store().remove_element(ENVENTRY$6, i);
442 }
443 }
444
445 /**
446 * Gets array of all "ejb-ref" elements
447 */
448 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] getEjbRefArray()
449 {
450 synchronized (monitor())
451 {
452 check_orphaned();
453 java.util.List targetList = new java.util.ArrayList();
454 get_store().find_all_element_users(EJBREF$8, targetList);
455 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[targetList.size()];
456 targetList.toArray(result);
457 return result;
458 }
459 }
460
461 /**
462 * Gets ith "ejb-ref" element
463 */
464 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType getEjbRefArray(int i)
465 {
466 synchronized (monitor())
467 {
468 check_orphaned();
469 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null;
470 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$8, i);
471 if (target == null)
472 {
473 throw new IndexOutOfBoundsException();
474 }
475 return target;
476 }
477 }
478
479 /**
480 * Returns number of "ejb-ref" element
481 */
482 public int sizeOfEjbRefArray()
483 {
484 synchronized (monitor())
485 {
486 check_orphaned();
487 return get_store().count_elements(EJBREF$8);
488 }
489 }
490
491 /**
492 * Sets array of all "ejb-ref" element
493 */
494 public void setEjbRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType[] ejbRefArray)
495 {
496 synchronized (monitor())
497 {
498 check_orphaned();
499 arraySetterHelper(ejbRefArray, EJBREF$8);
500 }
501 }
502
503 /**
504 * Sets ith "ejb-ref" element
505 */
506 public void setEjbRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType ejbRef)
507 {
508 synchronized (monitor())
509 {
510 check_orphaned();
511 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null;
512 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().find_element_user(EJBREF$8, i);
513 if (target == null)
514 {
515 throw new IndexOutOfBoundsException();
516 }
517 target.set(ejbRef);
518 }
519 }
520
521 /**
522 * Inserts and returns a new empty value (as xml) as the ith "ejb-ref" element
523 */
524 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType insertNewEjbRef(int i)
525 {
526 synchronized (monitor())
527 {
528 check_orphaned();
529 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null;
530 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().insert_element_user(EJBREF$8, i);
531 return target;
532 }
533 }
534
535 /**
536 * Appends and returns a new empty value (as xml) as the last "ejb-ref" element
537 */
538 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType addNewEjbRef()
539 {
540 synchronized (monitor())
541 {
542 check_orphaned();
543 org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType target = null;
544 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbRefType)get_store().add_element_user(EJBREF$8);
545 return target;
546 }
547 }
548
549 /**
550 * Removes the ith "ejb-ref" element
551 */
552 public void removeEjbRef(int i)
553 {
554 synchronized (monitor())
555 {
556 check_orphaned();
557 get_store().remove_element(EJBREF$8, i);
558 }
559 }
560
561 /**
562 * Gets array of all "ejb-local-ref" elements
563 */
564 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] getEjbLocalRefArray()
565 {
566 synchronized (monitor())
567 {
568 check_orphaned();
569 java.util.List targetList = new java.util.ArrayList();
570 get_store().find_all_element_users(EJBLOCALREF$10, targetList);
571 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[targetList.size()];
572 targetList.toArray(result);
573 return result;
574 }
575 }
576
577 /**
578 * Gets ith "ejb-local-ref" element
579 */
580 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType getEjbLocalRefArray(int i)
581 {
582 synchronized (monitor())
583 {
584 check_orphaned();
585 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;
586 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().find_element_user(EJBLOCALREF$10, i);
587 if (target == null)
588 {
589 throw new IndexOutOfBoundsException();
590 }
591 return target;
592 }
593 }
594
595 /**
596 * Returns number of "ejb-local-ref" element
597 */
598 public int sizeOfEjbLocalRefArray()
599 {
600 synchronized (monitor())
601 {
602 check_orphaned();
603 return get_store().count_elements(EJBLOCALREF$10);
604 }
605 }
606
607 /**
608 * Sets array of all "ejb-local-ref" element
609 */
610 public void setEjbLocalRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType[] ejbLocalRefArray)
611 {
612 synchronized (monitor())
613 {
614 check_orphaned();
615 arraySetterHelper(ejbLocalRefArray, EJBLOCALREF$10);
616 }
617 }
618
619 /**
620 * Sets ith "ejb-local-ref" element
621 */
622 public void setEjbLocalRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType ejbLocalRef)
623 {
624 synchronized (monitor())
625 {
626 check_orphaned();
627 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;
628 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().find_element_user(EJBLOCALREF$10, i);
629 if (target == null)
630 {
631 throw new IndexOutOfBoundsException();
632 }
633 target.set(ejbLocalRef);
634 }
635 }
636
637 /**
638 * Inserts and returns a new empty value (as xml) as the ith "ejb-local-ref" element
639 */
640 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType insertNewEjbLocalRef(int i)
641 {
642 synchronized (monitor())
643 {
644 check_orphaned();
645 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;
646 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().insert_element_user(EJBLOCALREF$10, i);
647 return target;
648 }
649 }
650
651 /**
652 * Appends and returns a new empty value (as xml) as the last "ejb-local-ref" element
653 */
654 public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType addNewEjbLocalRef()
655 {
656 synchronized (monitor())
657 {
658 check_orphaned();
659 org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;
660 target = (org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType)get_store().add_element_user(EJBLOCALREF$10);
661 return target;
662 }
663 }
664
665 /**
666 * Removes the ith "ejb-local-ref" element
667 */
668 public void removeEjbLocalRef(int i)
669 {
670 synchronized (monitor())
671 {
672 check_orphaned();
673 get_store().remove_element(EJBLOCALREF$10, i);
674 }
675 }
676
677 /**
678 * Gets array of all "service-ref" elements
679 */
680 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] getServiceRefArray()
681 {
682 synchronized (monitor())
683 {
684 check_orphaned();
685 java.util.List targetList = new java.util.ArrayList();
686 get_store().find_all_element_users(SERVICEREF$12, targetList);
687 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[targetList.size()];
688 targetList.toArray(result);
689 return result;
690 }
691 }
692
693 /**
694 * Gets ith "service-ref" element
695 */
696 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType getServiceRefArray(int i)
697 {
698 synchronized (monitor())
699 {
700 check_orphaned();
701 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null;
702 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$12, i);
703 if (target == null)
704 {
705 throw new IndexOutOfBoundsException();
706 }
707 return target;
708 }
709 }
710
711 /**
712 * Returns number of "service-ref" element
713 */
714 public int sizeOfServiceRefArray()
715 {
716 synchronized (monitor())
717 {
718 check_orphaned();
719 return get_store().count_elements(SERVICEREF$12);
720 }
721 }
722
723 /**
724 * Sets array of all "service-ref" element
725 */
726 public void setServiceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType[] serviceRefArray)
727 {
728 synchronized (monitor())
729 {
730 check_orphaned();
731 arraySetterHelper(serviceRefArray, SERVICEREF$12);
732 }
733 }
734
735 /**
736 * Sets ith "service-ref" element
737 */
738 public void setServiceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType serviceRef)
739 {
740 synchronized (monitor())
741 {
742 check_orphaned();
743 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null;
744 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().find_element_user(SERVICEREF$12, i);
745 if (target == null)
746 {
747 throw new IndexOutOfBoundsException();
748 }
749 target.set(serviceRef);
750 }
751 }
752
753 /**
754 * Inserts and returns a new empty value (as xml) as the ith "service-ref" element
755 */
756 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType insertNewServiceRef(int i)
757 {
758 synchronized (monitor())
759 {
760 check_orphaned();
761 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null;
762 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().insert_element_user(SERVICEREF$12, i);
763 return target;
764 }
765 }
766
767 /**
768 * Appends and returns a new empty value (as xml) as the last "service-ref" element
769 */
770 public org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType addNewServiceRef()
771 {
772 synchronized (monitor())
773 {
774 check_orphaned();
775 org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType target = null;
776 target = (org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType)get_store().add_element_user(SERVICEREF$12);
777 return target;
778 }
779 }
780
781 /**
782 * Removes the ith "service-ref" element
783 */
784 public void removeServiceRef(int i)
785 {
786 synchronized (monitor())
787 {
788 check_orphaned();
789 get_store().remove_element(SERVICEREF$12, i);
790 }
791 }
792
793 /**
794 * Gets array of all "resource-ref" elements
795 */
796 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] getResourceRefArray()
797 {
798 synchronized (monitor())
799 {
800 check_orphaned();
801 java.util.List targetList = new java.util.ArrayList();
802 get_store().find_all_element_users(RESOURCEREF$14, targetList);
803 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[targetList.size()];
804 targetList.toArray(result);
805 return result;
806 }
807 }
808
809 /**
810 * Gets ith "resource-ref" element
811 */
812 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType getResourceRefArray(int i)
813 {
814 synchronized (monitor())
815 {
816 check_orphaned();
817 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null;
818 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$14, i);
819 if (target == null)
820 {
821 throw new IndexOutOfBoundsException();
822 }
823 return target;
824 }
825 }
826
827 /**
828 * Returns number of "resource-ref" element
829 */
830 public int sizeOfResourceRefArray()
831 {
832 synchronized (monitor())
833 {
834 check_orphaned();
835 return get_store().count_elements(RESOURCEREF$14);
836 }
837 }
838
839 /**
840 * Sets array of all "resource-ref" element
841 */
842 public void setResourceRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType[] resourceRefArray)
843 {
844 synchronized (monitor())
845 {
846 check_orphaned();
847 arraySetterHelper(resourceRefArray, RESOURCEREF$14);
848 }
849 }
850
851 /**
852 * Sets ith "resource-ref" element
853 */
854 public void setResourceRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType resourceRef)
855 {
856 synchronized (monitor())
857 {
858 check_orphaned();
859 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null;
860 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().find_element_user(RESOURCEREF$14, i);
861 if (target == null)
862 {
863 throw new IndexOutOfBoundsException();
864 }
865 target.set(resourceRef);
866 }
867 }
868
869 /**
870 * Inserts and returns a new empty value (as xml) as the ith "resource-ref" element
871 */
872 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType insertNewResourceRef(int i)
873 {
874 synchronized (monitor())
875 {
876 check_orphaned();
877 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null;
878 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().insert_element_user(RESOURCEREF$14, i);
879 return target;
880 }
881 }
882
883 /**
884 * Appends and returns a new empty value (as xml) as the last "resource-ref" element
885 */
886 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType addNewResourceRef()
887 {
888 synchronized (monitor())
889 {
890 check_orphaned();
891 org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType target = null;
892 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType)get_store().add_element_user(RESOURCEREF$14);
893 return target;
894 }
895 }
896
897 /**
898 * Removes the ith "resource-ref" element
899 */
900 public void removeResourceRef(int i)
901 {
902 synchronized (monitor())
903 {
904 check_orphaned();
905 get_store().remove_element(RESOURCEREF$14, i);
906 }
907 }
908
909 /**
910 * Gets array of all "resource-env-ref" elements
911 */
912 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] getResourceEnvRefArray()
913 {
914 synchronized (monitor())
915 {
916 check_orphaned();
917 java.util.List targetList = new java.util.ArrayList();
918 get_store().find_all_element_users(RESOURCEENVREF$16, targetList);
919 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[targetList.size()];
920 targetList.toArray(result);
921 return result;
922 }
923 }
924
925 /**
926 * Gets ith "resource-env-ref" element
927 */
928 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType getResourceEnvRefArray(int i)
929 {
930 synchronized (monitor())
931 {
932 check_orphaned();
933 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null;
934 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$16, i);
935 if (target == null)
936 {
937 throw new IndexOutOfBoundsException();
938 }
939 return target;
940 }
941 }
942
943 /**
944 * Returns number of "resource-env-ref" element
945 */
946 public int sizeOfResourceEnvRefArray()
947 {
948 synchronized (monitor())
949 {
950 check_orphaned();
951 return get_store().count_elements(RESOURCEENVREF$16);
952 }
953 }
954
955 /**
956 * Sets array of all "resource-env-ref" element
957 */
958 public void setResourceEnvRefArray(org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType[] resourceEnvRefArray)
959 {
960 synchronized (monitor())
961 {
962 check_orphaned();
963 arraySetterHelper(resourceEnvRefArray, RESOURCEENVREF$16);
964 }
965 }
966
967 /**
968 * Sets ith "resource-env-ref" element
969 */
970 public void setResourceEnvRefArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType resourceEnvRef)
971 {
972 synchronized (monitor())
973 {
974 check_orphaned();
975 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null;
976 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().find_element_user(RESOURCEENVREF$16, i);
977 if (target == null)
978 {
979 throw new IndexOutOfBoundsException();
980 }
981 target.set(resourceEnvRef);
982 }
983 }
984
985 /**
986 * Inserts and returns a new empty value (as xml) as the ith "resource-env-ref" element
987 */
988 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType insertNewResourceEnvRef(int i)
989 {
990 synchronized (monitor())
991 {
992 check_orphaned();
993 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null;
994 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().insert_element_user(RESOURCEENVREF$16, i);
995 return target;
996 }
997 }
998
999 /**
1000 * Appends and returns a new empty value (as xml) as the last "resource-env-ref" element
1001 */
1002 public org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType addNewResourceEnvRef()
1003 {
1004 synchronized (monitor())
1005 {
1006 check_orphaned();
1007 org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType target = null;
1008 target = (org.apache.geronimo.xbeans.geronimo.naming.GerResourceEnvRefType)get_store().add_element_user(RESOURCEENVREF$16);
1009 return target;
1010 }
1011 }
1012
1013 /**
1014 * Removes the ith "resource-env-ref" element
1015 */
1016 public void removeResourceEnvRef(int i)
1017 {
1018 synchronized (monitor())
1019 {
1020 check_orphaned();
1021 get_store().remove_element(RESOURCEENVREF$16, i);
1022 }
1023 }
1024
1025 /**
1026 * Gets array of all "message-destination" elements
1027 */
1028 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] getMessageDestinationArray()
1029 {
1030 synchronized (monitor())
1031 {
1032 check_orphaned();
1033 java.util.List targetList = new java.util.ArrayList();
1034 get_store().find_all_element_users(MESSAGEDESTINATION$18, targetList);
1035 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] result = new org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[targetList.size()];
1036 targetList.toArray(result);
1037 return result;
1038 }
1039 }
1040
1041 /**
1042 * Gets ith "message-destination" element
1043 */
1044 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType getMessageDestinationArray(int i)
1045 {
1046 synchronized (monitor())
1047 {
1048 check_orphaned();
1049 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null;
1050 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$18, i);
1051 if (target == null)
1052 {
1053 throw new IndexOutOfBoundsException();
1054 }
1055 return target;
1056 }
1057 }
1058
1059 /**
1060 * Returns number of "message-destination" element
1061 */
1062 public int sizeOfMessageDestinationArray()
1063 {
1064 synchronized (monitor())
1065 {
1066 check_orphaned();
1067 return get_store().count_elements(MESSAGEDESTINATION$18);
1068 }
1069 }
1070
1071 /**
1072 * Sets array of all "message-destination" element
1073 */
1074 public void setMessageDestinationArray(org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType[] messageDestinationArray)
1075 {
1076 synchronized (monitor())
1077 {
1078 check_orphaned();
1079 arraySetterHelper(messageDestinationArray, MESSAGEDESTINATION$18);
1080 }
1081 }
1082
1083 /**
1084 * Sets ith "message-destination" element
1085 */
1086 public void setMessageDestinationArray(int i, org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType messageDestination)
1087 {
1088 synchronized (monitor())
1089 {
1090 check_orphaned();
1091 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null;
1092 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().find_element_user(MESSAGEDESTINATION$18, i);
1093 if (target == null)
1094 {
1095 throw new IndexOutOfBoundsException();
1096 }
1097 target.set(messageDestination);
1098 }
1099 }
1100
1101 /**
1102 * Inserts and returns a new empty value (as xml) as the ith "message-destination" element
1103 */
1104 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType insertNewMessageDestination(int i)
1105 {
1106 synchronized (monitor())
1107 {
1108 check_orphaned();
1109 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null;
1110 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().insert_element_user(MESSAGEDESTINATION$18, i);
1111 return target;
1112 }
1113 }
1114
1115 /**
1116 * Appends and returns a new empty value (as xml) as the last "message-destination" element
1117 */
1118 public org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType addNewMessageDestination()
1119 {
1120 synchronized (monitor())
1121 {
1122 check_orphaned();
1123 org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType target = null;
1124 target = (org.apache.geronimo.xbeans.geronimo.naming.GerMessageDestinationType)get_store().add_element_user(MESSAGEDESTINATION$18);
1125 return target;
1126 }
1127 }
1128
1129 /**
1130 * Removes the ith "message-destination" element
1131 */
1132 public void removeMessageDestination(int i)
1133 {
1134 synchronized (monitor())
1135 {
1136 check_orphaned();
1137 get_store().remove_element(MESSAGEDESTINATION$18, i);
1138 }
1139 }
1140
1141 /**
1142 * Gets array of all "tss-link" elements
1143 */
1144 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType[] getTssLinkArray()
1145 {
1146 synchronized (monitor())
1147 {
1148 check_orphaned();
1149 java.util.List targetList = new java.util.ArrayList();
1150 get_store().find_all_element_users(TSSLINK$20, targetList);
1151 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType[] result = new org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType[targetList.size()];
1152 targetList.toArray(result);
1153 return result;
1154 }
1155 }
1156
1157 /**
1158 * Gets ith "tss-link" element
1159 */
1160 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType getTssLinkArray(int i)
1161 {
1162 synchronized (monitor())
1163 {
1164 check_orphaned();
1165 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType target = null;
1166 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType)get_store().find_element_user(TSSLINK$20, i);
1167 if (target == null)
1168 {
1169 throw new IndexOutOfBoundsException();
1170 }
1171 return target;
1172 }
1173 }
1174
1175 /**
1176 * Returns number of "tss-link" element
1177 */
1178 public int sizeOfTssLinkArray()
1179 {
1180 synchronized (monitor())
1181 {
1182 check_orphaned();
1183 return get_store().count_elements(TSSLINK$20);
1184 }
1185 }
1186
1187 /**
1188 * Sets array of all "tss-link" element
1189 */
1190 public void setTssLinkArray(org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType[] tssLinkArray)
1191 {
1192 synchronized (monitor())
1193 {
1194 check_orphaned();
1195 arraySetterHelper(tssLinkArray, TSSLINK$20);
1196 }
1197 }
1198
1199 /**
1200 * Sets ith "tss-link" element
1201 */
1202 public void setTssLinkArray(int i, org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType tssLink)
1203 {
1204 synchronized (monitor())
1205 {
1206 check_orphaned();
1207 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType target = null;
1208 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType)get_store().find_element_user(TSSLINK$20, i);
1209 if (target == null)
1210 {
1211 throw new IndexOutOfBoundsException();
1212 }
1213 target.set(tssLink);
1214 }
1215 }
1216
1217 /**
1218 * Inserts and returns a new empty value (as xml) as the ith "tss-link" element
1219 */
1220 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType insertNewTssLink(int i)
1221 {
1222 synchronized (monitor())
1223 {
1224 check_orphaned();
1225 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType target = null;
1226 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType)get_store().insert_element_user(TSSLINK$20, i);
1227 return target;
1228 }
1229 }
1230
1231 /**
1232 * Appends and returns a new empty value (as xml) as the last "tss-link" element
1233 */
1234 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType addNewTssLink()
1235 {
1236 synchronized (monitor())
1237 {
1238 check_orphaned();
1239 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType target = null;
1240 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTssLinkType)get_store().add_element_user(TSSLINK$20);
1241 return target;
1242 }
1243 }
1244
1245 /**
1246 * Removes the ith "tss-link" element
1247 */
1248 public void removeTssLink(int i)
1249 {
1250 synchronized (monitor())
1251 {
1252 check_orphaned();
1253 get_store().remove_element(TSSLINK$20, i);
1254 }
1255 }
1256
1257 /**
1258 * Gets array of all "web-service-binding" elements
1259 */
1260 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType[] getWebServiceBindingArray()
1261 {
1262 synchronized (monitor())
1263 {
1264 check_orphaned();
1265 java.util.List targetList = new java.util.ArrayList();
1266 get_store().find_all_element_users(WEBSERVICEBINDING$22, targetList);
1267 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType[] result = new org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType[targetList.size()];
1268 targetList.toArray(result);
1269 return result;
1270 }
1271 }
1272
1273 /**
1274 * Gets ith "web-service-binding" element
1275 */
1276 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType getWebServiceBindingArray(int i)
1277 {
1278 synchronized (monitor())
1279 {
1280 check_orphaned();
1281 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType target = null;
1282 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType)get_store().find_element_user(WEBSERVICEBINDING$22, i);
1283 if (target == null)
1284 {
1285 throw new IndexOutOfBoundsException();
1286 }
1287 return target;
1288 }
1289 }
1290
1291 /**
1292 * Returns number of "web-service-binding" element
1293 */
1294 public int sizeOfWebServiceBindingArray()
1295 {
1296 synchronized (monitor())
1297 {
1298 check_orphaned();
1299 return get_store().count_elements(WEBSERVICEBINDING$22);
1300 }
1301 }
1302
1303 /**
1304 * Sets array of all "web-service-binding" element
1305 */
1306 public void setWebServiceBindingArray(org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType[] webServiceBindingArray)
1307 {
1308 synchronized (monitor())
1309 {
1310 check_orphaned();
1311 arraySetterHelper(webServiceBindingArray, WEBSERVICEBINDING$22);
1312 }
1313 }
1314
1315 /**
1316 * Sets ith "web-service-binding" element
1317 */
1318 public void setWebServiceBindingArray(int i, org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType webServiceBinding)
1319 {
1320 synchronized (monitor())
1321 {
1322 check_orphaned();
1323 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType target = null;
1324 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType)get_store().find_element_user(WEBSERVICEBINDING$22, i);
1325 if (target == null)
1326 {
1327 throw new IndexOutOfBoundsException();
1328 }
1329 target.set(webServiceBinding);
1330 }
1331 }
1332
1333 /**
1334 * Inserts and returns a new empty value (as xml) as the ith "web-service-binding" element
1335 */
1336 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType insertNewWebServiceBinding(int i)
1337 {
1338 synchronized (monitor())
1339 {
1340 check_orphaned();
1341 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType target = null;
1342 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType)get_store().insert_element_user(WEBSERVICEBINDING$22, i);
1343 return target;
1344 }
1345 }
1346
1347 /**
1348 * Appends and returns a new empty value (as xml) as the last "web-service-binding" element
1349 */
1350 public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType addNewWebServiceBinding()
1351 {
1352 synchronized (monitor())
1353 {
1354 check_orphaned();
1355 org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType target = null;
1356 target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceBindingType)get_store().add_element_user(WEBSERVICEBINDING$22);
1357 return target;
1358 }
1359 }
1360
1361 /**
1362 * Removes the ith "web-service-binding" element
1363 */
1364 public void removeWebServiceBinding(int i)
1365 {
1366 synchronized (monitor())
1367 {
1368 check_orphaned();
1369 get_store().remove_element(WEBSERVICEBINDING$22, i);
1370 }
1371 }
1372
1373 /**
1374 * Gets the "security" element
1375 */
1376 public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType getSecurity()
1377 {
1378 synchronized (monitor())
1379 {
1380 check_orphaned();
1381 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null;
1382 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().find_element_user(SECURITY$24, 0);
1383 if (target == null)
1384 {
1385 return null;
1386 }
1387 return target;
1388 }
1389 }
1390
1391 /**
1392 * True if has "security" element
1393 */
1394 public boolean isSetSecurity()
1395 {
1396 synchronized (monitor())
1397 {
1398 check_orphaned();
1399 return get_store().count_elements(SECURITY$24) != 0;
1400 }
1401 }
1402
1403 /**
1404 * Sets the "security" element
1405 */
1406 public void setSecurity(org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType security)
1407 {
1408 synchronized (monitor())
1409 {
1410 check_orphaned();
1411 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null;
1412 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().find_element_user(SECURITY$24, 0);
1413 if (target == null)
1414 {
1415 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().add_element_user(SECURITY$24);
1416 }
1417 target.set(security);
1418 }
1419 }
1420
1421 /**
1422 * Appends and returns a new empty "security" element
1423 */
1424 public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType addNewSecurity()
1425 {
1426 synchronized (monitor())
1427 {
1428 check_orphaned();
1429 org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType target = null;
1430 target = (org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractSecurityType)get_store().add_element_user(SECURITY$24);
1431 return target;
1432 }
1433 }
1434
1435 /**
1436 * Unsets the "security" element
1437 */
1438 public void unsetSecurity()
1439 {
1440 synchronized (monitor())
1441 {
1442 check_orphaned();
1443 get_store().remove_element(SECURITY$24, 0);
1444 }
1445 }
1446
1447 /**
1448 * Gets array of all "service" elements
1449 */
1450 public org.apache.geronimo.deployment.xbeans.AbstractServiceType[] getServiceArray()
1451 {
1452 synchronized (monitor())
1453 {
1454 check_orphaned();
1455 java.util.List targetList = new java.util.ArrayList();
1456 get_store().find_all_element_users(SERVICE$27, targetList);
1457 org.apache.geronimo.deployment.xbeans.AbstractServiceType[] result = new org.apache.geronimo.deployment.xbeans.AbstractServiceType[targetList.size()];
1458 targetList.toArray(result);
1459 return result;
1460 }
1461 }
1462
1463 /**
1464 * Gets ith "service" element
1465 */
1466 public org.apache.geronimo.deployment.xbeans.AbstractServiceType getServiceArray(int i)
1467 {
1468 synchronized (monitor())
1469 {
1470 check_orphaned();
1471 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null;
1472 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$27, i);
1473 if (target == null)
1474 {
1475 throw new IndexOutOfBoundsException();
1476 }
1477 return target;
1478 }
1479 }
1480
1481 /**
1482 * Returns number of "service" element
1483 */
1484 public int sizeOfServiceArray()
1485 {
1486 synchronized (monitor())
1487 {
1488 check_orphaned();
1489 return get_store().count_elements(SERVICE$27);
1490 }
1491 }
1492
1493 /**
1494 * Sets array of all "service" element
1495 */
1496 public void setServiceArray(org.apache.geronimo.deployment.xbeans.AbstractServiceType[] serviceArray)
1497 {
1498 synchronized (monitor())
1499 {
1500 check_orphaned();
1501 arraySetterHelper(serviceArray, SERVICE$26, SERVICE$27);
1502 }
1503 }
1504
1505 /**
1506 * Sets ith "service" element
1507 */
1508 public void setServiceArray(int i, org.apache.geronimo.deployment.xbeans.AbstractServiceType service)
1509 {
1510 synchronized (monitor())
1511 {
1512 check_orphaned();
1513 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null;
1514 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().find_element_user(SERVICE$27, i);
1515 if (target == null)
1516 {
1517 throw new IndexOutOfBoundsException();
1518 }
1519 target.set(service);
1520 }
1521 }
1522
1523 /**
1524 * Inserts and returns a new empty value (as xml) as the ith "service" element
1525 */
1526 public org.apache.geronimo.deployment.xbeans.AbstractServiceType insertNewService(int i)
1527 {
1528 synchronized (monitor())
1529 {
1530 check_orphaned();
1531 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null;
1532 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().insert_element_user(SERVICE$27, SERVICE$26, i);
1533 return target;
1534 }
1535 }
1536
1537 /**
1538 * Appends and returns a new empty value (as xml) as the last "service" element
1539 */
1540 public org.apache.geronimo.deployment.xbeans.AbstractServiceType addNewService()
1541 {
1542 synchronized (monitor())
1543 {
1544 check_orphaned();
1545 org.apache.geronimo.deployment.xbeans.AbstractServiceType target = null;
1546 target = (org.apache.geronimo.deployment.xbeans.AbstractServiceType)get_store().add_element_user(SERVICE$26);
1547 return target;
1548 }
1549 }
1550
1551 /**
1552 * Removes the ith "service" element
1553 */
1554 public void removeService(int i)
1555 {
1556 synchronized (monitor())
1557 {
1558 check_orphaned();
1559 get_store().remove_element(SERVICE$27, i);
1560 }
1561 }
1562
1563 /**
1564 * Gets array of all "persistence" elements
1565 */
1566 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] getPersistenceArray()
1567 {
1568 synchronized (monitor())
1569 {
1570 check_orphaned();
1571 java.util.List targetList = new java.util.ArrayList();
1572 get_store().find_all_element_users(PERSISTENCE$28, targetList);
1573 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] result = new org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[targetList.size()];
1574 targetList.toArray(result);
1575 return result;
1576 }
1577 }
1578
1579 /**
1580 * Gets ith "persistence" element
1581 */
1582 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence getPersistenceArray(int i)
1583 {
1584 synchronized (monitor())
1585 {
1586 check_orphaned();
1587 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null;
1588 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().find_element_user(PERSISTENCE$28, i);
1589 if (target == null)
1590 {
1591 throw new IndexOutOfBoundsException();
1592 }
1593 return target;
1594 }
1595 }
1596
1597 /**
1598 * Returns number of "persistence" element
1599 */
1600 public int sizeOfPersistenceArray()
1601 {
1602 synchronized (monitor())
1603 {
1604 check_orphaned();
1605 return get_store().count_elements(PERSISTENCE$28);
1606 }
1607 }
1608
1609 /**
1610 * Sets array of all "persistence" element
1611 */
1612 public void setPersistenceArray(org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence[] persistenceArray)
1613 {
1614 synchronized (monitor())
1615 {
1616 check_orphaned();
1617 arraySetterHelper(persistenceArray, PERSISTENCE$28);
1618 }
1619 }
1620
1621 /**
1622 * Sets ith "persistence" element
1623 */
1624 public void setPersistenceArray(int i, org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence persistence)
1625 {
1626 synchronized (monitor())
1627 {
1628 check_orphaned();
1629 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null;
1630 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().find_element_user(PERSISTENCE$28, i);
1631 if (target == null)
1632 {
1633 throw new IndexOutOfBoundsException();
1634 }
1635 target.set(persistence);
1636 }
1637 }
1638
1639 /**
1640 * Inserts and returns a new empty value (as xml) as the ith "persistence" element
1641 */
1642 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence insertNewPersistence(int i)
1643 {
1644 synchronized (monitor())
1645 {
1646 check_orphaned();
1647 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null;
1648 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().insert_element_user(PERSISTENCE$28, i);
1649 return target;
1650 }
1651 }
1652
1653 /**
1654 * Appends and returns a new empty value (as xml) as the last "persistence" element
1655 */
1656 public org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence addNewPersistence()
1657 {
1658 synchronized (monitor())
1659 {
1660 check_orphaned();
1661 org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence target = null;
1662 target = (org.apache.geronimo.xbeans.persistence.PersistenceDocument.Persistence)get_store().add_element_user(PERSISTENCE$28);
1663 return target;
1664 }
1665 }
1666
1667 /**
1668 * Removes the ith "persistence" element
1669 */
1670 public void removePersistence(int i)
1671 {
1672 synchronized (monitor())
1673 {
1674 check_orphaned();
1675 get_store().remove_element(PERSISTENCE$28, i);
1676 }
1677 }
1678 }