001 /*
002 * XML Type: SECIOPType
003 * Namespace: http://openejb.apache.org/xml/ns/corba-css-config-2.1
004 * Java type: org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.corba.xbeans.csiv2.css.impl;
009 /**
010 * An XML SECIOPType(@http://openejb.apache.org/xml/ns/corba-css-config-2.1).
011 *
012 * This is a complex type.
013 */
014 public class CSSSECIOPTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType
015 {
016
017 public CSSSECIOPTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName DESCRIPTION$0 =
023 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "description");
024 private static final javax.xml.namespace.QName SUPPORTS$2 =
025 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "supports");
026 private static final javax.xml.namespace.QName REQUIRES$4 =
027 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "requires");
028 private static final javax.xml.namespace.QName TRUSTEVERYONE$6 =
029 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "trustEveryone");
030 private static final javax.xml.namespace.QName TRUSTNOONE$8 =
031 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "trustNoone");
032 private static final javax.xml.namespace.QName TRUSTLIST$10 =
033 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "trustList");
034 private static final javax.xml.namespace.QName MECHOID$12 =
035 new javax.xml.namespace.QName("", "mechOID");
036 private static final javax.xml.namespace.QName TARGETNAME$14 =
037 new javax.xml.namespace.QName("", "targetName");
038
039
040 /**
041 * Gets array of all "description" elements
042 */
043 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType[] getDescriptionArray()
044 {
045 synchronized (monitor())
046 {
047 check_orphaned();
048 java.util.List targetList = new java.util.ArrayList();
049 get_store().find_all_element_users(DESCRIPTION$0, targetList);
050 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType[] result = new org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType[targetList.size()];
051 targetList.toArray(result);
052 return result;
053 }
054 }
055
056 /**
057 * Gets ith "description" element
058 */
059 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType getDescriptionArray(int i)
060 {
061 synchronized (monitor())
062 {
063 check_orphaned();
064 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType target = null;
065 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType)get_store().find_element_user(DESCRIPTION$0, i);
066 if (target == null)
067 {
068 throw new IndexOutOfBoundsException();
069 }
070 return target;
071 }
072 }
073
074 /**
075 * Returns number of "description" element
076 */
077 public int sizeOfDescriptionArray()
078 {
079 synchronized (monitor())
080 {
081 check_orphaned();
082 return get_store().count_elements(DESCRIPTION$0);
083 }
084 }
085
086 /**
087 * Sets array of all "description" element
088 */
089 public void setDescriptionArray(org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType[] descriptionArray)
090 {
091 synchronized (monitor())
092 {
093 check_orphaned();
094 arraySetterHelper(descriptionArray, DESCRIPTION$0);
095 }
096 }
097
098 /**
099 * Sets ith "description" element
100 */
101 public void setDescriptionArray(int i, org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType description)
102 {
103 synchronized (monitor())
104 {
105 check_orphaned();
106 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType target = null;
107 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType)get_store().find_element_user(DESCRIPTION$0, i);
108 if (target == null)
109 {
110 throw new IndexOutOfBoundsException();
111 }
112 target.set(description);
113 }
114 }
115
116 /**
117 * Inserts and returns a new empty value (as xml) as the ith "description" element
118 */
119 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType insertNewDescription(int i)
120 {
121 synchronized (monitor())
122 {
123 check_orphaned();
124 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType target = null;
125 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType)get_store().insert_element_user(DESCRIPTION$0, i);
126 return target;
127 }
128 }
129
130 /**
131 * Appends and returns a new empty value (as xml) as the last "description" element
132 */
133 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType addNewDescription()
134 {
135 synchronized (monitor())
136 {
137 check_orphaned();
138 org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType target = null;
139 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType)get_store().add_element_user(DESCRIPTION$0);
140 return target;
141 }
142 }
143
144 /**
145 * Removes the ith "description" element
146 */
147 public void removeDescription(int i)
148 {
149 synchronized (monitor())
150 {
151 check_orphaned();
152 get_store().remove_element(DESCRIPTION$0, i);
153 }
154 }
155
156 /**
157 * Gets the "supports" element
158 */
159 public java.util.List getSupports()
160 {
161 synchronized (monitor())
162 {
163 check_orphaned();
164 org.apache.xmlbeans.SimpleValue target = null;
165 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUPPORTS$2, 0);
166 if (target == null)
167 {
168 return null;
169 }
170 return target.getListValue();
171 }
172 }
173
174 /**
175 * Gets (as xml) the "supports" element
176 */
177 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList xgetSupports()
178 {
179 synchronized (monitor())
180 {
181 check_orphaned();
182 org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList target = null;
183 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList)get_store().find_element_user(SUPPORTS$2, 0);
184 return target;
185 }
186 }
187
188 /**
189 * Sets the "supports" element
190 */
191 public void setSupports(java.util.List supports)
192 {
193 synchronized (monitor())
194 {
195 check_orphaned();
196 org.apache.xmlbeans.SimpleValue target = null;
197 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUPPORTS$2, 0);
198 if (target == null)
199 {
200 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUPPORTS$2);
201 }
202 target.setListValue(supports);
203 }
204 }
205
206 /**
207 * Sets (as xml) the "supports" element
208 */
209 public void xsetSupports(org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList supports)
210 {
211 synchronized (monitor())
212 {
213 check_orphaned();
214 org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList target = null;
215 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList)get_store().find_element_user(SUPPORTS$2, 0);
216 if (target == null)
217 {
218 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList)get_store().add_element_user(SUPPORTS$2);
219 }
220 target.set(supports);
221 }
222 }
223
224 /**
225 * Gets the "requires" element
226 */
227 public java.util.List getRequires()
228 {
229 synchronized (monitor())
230 {
231 check_orphaned();
232 org.apache.xmlbeans.SimpleValue target = null;
233 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUIRES$4, 0);
234 if (target == null)
235 {
236 return null;
237 }
238 return target.getListValue();
239 }
240 }
241
242 /**
243 * Gets (as xml) the "requires" element
244 */
245 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList xgetRequires()
246 {
247 synchronized (monitor())
248 {
249 check_orphaned();
250 org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList target = null;
251 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList)get_store().find_element_user(REQUIRES$4, 0);
252 return target;
253 }
254 }
255
256 /**
257 * Sets the "requires" element
258 */
259 public void setRequires(java.util.List requires)
260 {
261 synchronized (monitor())
262 {
263 check_orphaned();
264 org.apache.xmlbeans.SimpleValue target = null;
265 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUIRES$4, 0);
266 if (target == null)
267 {
268 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REQUIRES$4);
269 }
270 target.setListValue(requires);
271 }
272 }
273
274 /**
275 * Sets (as xml) the "requires" element
276 */
277 public void xsetRequires(org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList requires)
278 {
279 synchronized (monitor())
280 {
281 check_orphaned();
282 org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList target = null;
283 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList)get_store().find_element_user(REQUIRES$4, 0);
284 if (target == null)
285 {
286 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSAssociationOptionList)get_store().add_element_user(REQUIRES$4);
287 }
288 target.set(requires);
289 }
290 }
291
292 /**
293 * Gets the "trustEveryone" element
294 */
295 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType getTrustEveryone()
296 {
297 synchronized (monitor())
298 {
299 check_orphaned();
300 org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType target = null;
301 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType)get_store().find_element_user(TRUSTEVERYONE$6, 0);
302 if (target == null)
303 {
304 return null;
305 }
306 return target;
307 }
308 }
309
310 /**
311 * True if has "trustEveryone" element
312 */
313 public boolean isSetTrustEveryone()
314 {
315 synchronized (monitor())
316 {
317 check_orphaned();
318 return get_store().count_elements(TRUSTEVERYONE$6) != 0;
319 }
320 }
321
322 /**
323 * Sets the "trustEveryone" element
324 */
325 public void setTrustEveryone(org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType trustEveryone)
326 {
327 synchronized (monitor())
328 {
329 check_orphaned();
330 org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType target = null;
331 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType)get_store().find_element_user(TRUSTEVERYONE$6, 0);
332 if (target == null)
333 {
334 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType)get_store().add_element_user(TRUSTEVERYONE$6);
335 }
336 target.set(trustEveryone);
337 }
338 }
339
340 /**
341 * Appends and returns a new empty "trustEveryone" element
342 */
343 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType addNewTrustEveryone()
344 {
345 synchronized (monitor())
346 {
347 check_orphaned();
348 org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType target = null;
349 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustEveryoneType)get_store().add_element_user(TRUSTEVERYONE$6);
350 return target;
351 }
352 }
353
354 /**
355 * Unsets the "trustEveryone" element
356 */
357 public void unsetTrustEveryone()
358 {
359 synchronized (monitor())
360 {
361 check_orphaned();
362 get_store().remove_element(TRUSTEVERYONE$6, 0);
363 }
364 }
365
366 /**
367 * Gets the "trustNoone" element
368 */
369 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType getTrustNoone()
370 {
371 synchronized (monitor())
372 {
373 check_orphaned();
374 org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType target = null;
375 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType)get_store().find_element_user(TRUSTNOONE$8, 0);
376 if (target == null)
377 {
378 return null;
379 }
380 return target;
381 }
382 }
383
384 /**
385 * True if has "trustNoone" element
386 */
387 public boolean isSetTrustNoone()
388 {
389 synchronized (monitor())
390 {
391 check_orphaned();
392 return get_store().count_elements(TRUSTNOONE$8) != 0;
393 }
394 }
395
396 /**
397 * Sets the "trustNoone" element
398 */
399 public void setTrustNoone(org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType trustNoone)
400 {
401 synchronized (monitor())
402 {
403 check_orphaned();
404 org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType target = null;
405 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType)get_store().find_element_user(TRUSTNOONE$8, 0);
406 if (target == null)
407 {
408 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType)get_store().add_element_user(TRUSTNOONE$8);
409 }
410 target.set(trustNoone);
411 }
412 }
413
414 /**
415 * Appends and returns a new empty "trustNoone" element
416 */
417 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType addNewTrustNoone()
418 {
419 synchronized (monitor())
420 {
421 check_orphaned();
422 org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType target = null;
423 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSTrustNooneType)get_store().add_element_user(TRUSTNOONE$8);
424 return target;
425 }
426 }
427
428 /**
429 * Unsets the "trustNoone" element
430 */
431 public void unsetTrustNoone()
432 {
433 synchronized (monitor())
434 {
435 check_orphaned();
436 get_store().remove_element(TRUSTNOONE$8, 0);
437 }
438 }
439
440 /**
441 * Gets the "trustList" element
442 */
443 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList getTrustList()
444 {
445 synchronized (monitor())
446 {
447 check_orphaned();
448 org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList target = null;
449 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList)get_store().find_element_user(TRUSTLIST$10, 0);
450 if (target == null)
451 {
452 return null;
453 }
454 return target;
455 }
456 }
457
458 /**
459 * True if has "trustList" element
460 */
461 public boolean isSetTrustList()
462 {
463 synchronized (monitor())
464 {
465 check_orphaned();
466 return get_store().count_elements(TRUSTLIST$10) != 0;
467 }
468 }
469
470 /**
471 * Sets the "trustList" element
472 */
473 public void setTrustList(org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList trustList)
474 {
475 synchronized (monitor())
476 {
477 check_orphaned();
478 org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList target = null;
479 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList)get_store().find_element_user(TRUSTLIST$10, 0);
480 if (target == null)
481 {
482 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList)get_store().add_element_user(TRUSTLIST$10);
483 }
484 target.set(trustList);
485 }
486 }
487
488 /**
489 * Appends and returns a new empty "trustList" element
490 */
491 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList addNewTrustList()
492 {
493 synchronized (monitor())
494 {
495 check_orphaned();
496 org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList target = null;
497 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList)get_store().add_element_user(TRUSTLIST$10);
498 return target;
499 }
500 }
501
502 /**
503 * Unsets the "trustList" element
504 */
505 public void unsetTrustList()
506 {
507 synchronized (monitor())
508 {
509 check_orphaned();
510 get_store().remove_element(TRUSTLIST$10, 0);
511 }
512 }
513
514 /**
515 * Gets the "mechOID" attribute
516 */
517 public java.lang.String getMechOID()
518 {
519 synchronized (monitor())
520 {
521 check_orphaned();
522 org.apache.xmlbeans.SimpleValue target = null;
523 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MECHOID$12);
524 if (target == null)
525 {
526 return null;
527 }
528 return target.getStringValue();
529 }
530 }
531
532 /**
533 * Gets (as xml) the "mechOID" attribute
534 */
535 public org.apache.xmlbeans.XmlString xgetMechOID()
536 {
537 synchronized (monitor())
538 {
539 check_orphaned();
540 org.apache.xmlbeans.XmlString target = null;
541 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MECHOID$12);
542 return target;
543 }
544 }
545
546 /**
547 * True if has "mechOID" attribute
548 */
549 public boolean isSetMechOID()
550 {
551 synchronized (monitor())
552 {
553 check_orphaned();
554 return get_store().find_attribute_user(MECHOID$12) != null;
555 }
556 }
557
558 /**
559 * Sets the "mechOID" attribute
560 */
561 public void setMechOID(java.lang.String mechOID)
562 {
563 synchronized (monitor())
564 {
565 check_orphaned();
566 org.apache.xmlbeans.SimpleValue target = null;
567 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MECHOID$12);
568 if (target == null)
569 {
570 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MECHOID$12);
571 }
572 target.setStringValue(mechOID);
573 }
574 }
575
576 /**
577 * Sets (as xml) the "mechOID" attribute
578 */
579 public void xsetMechOID(org.apache.xmlbeans.XmlString mechOID)
580 {
581 synchronized (monitor())
582 {
583 check_orphaned();
584 org.apache.xmlbeans.XmlString target = null;
585 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MECHOID$12);
586 if (target == null)
587 {
588 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(MECHOID$12);
589 }
590 target.set(mechOID);
591 }
592 }
593
594 /**
595 * Unsets the "mechOID" attribute
596 */
597 public void unsetMechOID()
598 {
599 synchronized (monitor())
600 {
601 check_orphaned();
602 get_store().remove_attribute(MECHOID$12);
603 }
604 }
605
606 /**
607 * Gets the "targetName" attribute
608 */
609 public java.lang.String getTargetName()
610 {
611 synchronized (monitor())
612 {
613 check_orphaned();
614 org.apache.xmlbeans.SimpleValue target = null;
615 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TARGETNAME$14);
616 if (target == null)
617 {
618 return null;
619 }
620 return target.getStringValue();
621 }
622 }
623
624 /**
625 * Gets (as xml) the "targetName" attribute
626 */
627 public org.apache.xmlbeans.XmlString xgetTargetName()
628 {
629 synchronized (monitor())
630 {
631 check_orphaned();
632 org.apache.xmlbeans.XmlString target = null;
633 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TARGETNAME$14);
634 return target;
635 }
636 }
637
638 /**
639 * True if has "targetName" attribute
640 */
641 public boolean isSetTargetName()
642 {
643 synchronized (monitor())
644 {
645 check_orphaned();
646 return get_store().find_attribute_user(TARGETNAME$14) != null;
647 }
648 }
649
650 /**
651 * Sets the "targetName" attribute
652 */
653 public void setTargetName(java.lang.String targetName)
654 {
655 synchronized (monitor())
656 {
657 check_orphaned();
658 org.apache.xmlbeans.SimpleValue target = null;
659 target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TARGETNAME$14);
660 if (target == null)
661 {
662 target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TARGETNAME$14);
663 }
664 target.setStringValue(targetName);
665 }
666 }
667
668 /**
669 * Sets (as xml) the "targetName" attribute
670 */
671 public void xsetTargetName(org.apache.xmlbeans.XmlString targetName)
672 {
673 synchronized (monitor())
674 {
675 check_orphaned();
676 org.apache.xmlbeans.XmlString target = null;
677 target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TARGETNAME$14);
678 if (target == null)
679 {
680 target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TARGETNAME$14);
681 }
682 target.set(targetName);
683 }
684 }
685
686 /**
687 * Unsets the "targetName" attribute
688 */
689 public void unsetTargetName()
690 {
691 synchronized (monitor())
692 {
693 check_orphaned();
694 get_store().remove_attribute(TARGETNAME$14);
695 }
696 }
697 /**
698 * An XML trustList(@http://openejb.apache.org/xml/ns/corba-css-config-2.1).
699 *
700 * This is a complex type.
701 */
702 public static class TrustListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.corba.xbeans.csiv2.css.CSSSECIOPType.TrustList
703 {
704
705 public TrustListImpl(org.apache.xmlbeans.SchemaType sType)
706 {
707 super(sType);
708 }
709
710 private static final javax.xml.namespace.QName ENTITY$0 =
711 new javax.xml.namespace.QName("http://openejb.apache.org/xml/ns/corba-css-config-2.1", "entity");
712
713
714 /**
715 * Gets array of all "entity" elements
716 */
717 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType[] getEntityArray()
718 {
719 synchronized (monitor())
720 {
721 check_orphaned();
722 java.util.List targetList = new java.util.ArrayList();
723 get_store().find_all_element_users(ENTITY$0, targetList);
724 org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType[] result = new org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType[targetList.size()];
725 targetList.toArray(result);
726 return result;
727 }
728 }
729
730 /**
731 * Gets ith "entity" element
732 */
733 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType getEntityArray(int i)
734 {
735 synchronized (monitor())
736 {
737 check_orphaned();
738 org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType target = null;
739 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType)get_store().find_element_user(ENTITY$0, i);
740 if (target == null)
741 {
742 throw new IndexOutOfBoundsException();
743 }
744 return target;
745 }
746 }
747
748 /**
749 * Returns number of "entity" element
750 */
751 public int sizeOfEntityArray()
752 {
753 synchronized (monitor())
754 {
755 check_orphaned();
756 return get_store().count_elements(ENTITY$0);
757 }
758 }
759
760 /**
761 * Sets array of all "entity" element
762 */
763 public void setEntityArray(org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType[] entityArray)
764 {
765 synchronized (monitor())
766 {
767 check_orphaned();
768 arraySetterHelper(entityArray, ENTITY$0);
769 }
770 }
771
772 /**
773 * Sets ith "entity" element
774 */
775 public void setEntityArray(int i, org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType entity)
776 {
777 synchronized (monitor())
778 {
779 check_orphaned();
780 org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType target = null;
781 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType)get_store().find_element_user(ENTITY$0, i);
782 if (target == null)
783 {
784 throw new IndexOutOfBoundsException();
785 }
786 target.set(entity);
787 }
788 }
789
790 /**
791 * Inserts and returns a new empty value (as xml) as the ith "entity" element
792 */
793 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType insertNewEntity(int i)
794 {
795 synchronized (monitor())
796 {
797 check_orphaned();
798 org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType target = null;
799 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType)get_store().insert_element_user(ENTITY$0, i);
800 return target;
801 }
802 }
803
804 /**
805 * Appends and returns a new empty value (as xml) as the last "entity" element
806 */
807 public org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType addNewEntity()
808 {
809 synchronized (monitor())
810 {
811 check_orphaned();
812 org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType target = null;
813 target = (org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType)get_store().add_element_user(ENTITY$0);
814 return target;
815 }
816 }
817
818 /**
819 * Removes the ith "entity" element
820 */
821 public void removeEntity(int i)
822 {
823 synchronized (monitor())
824 {
825 check_orphaned();
826 get_store().remove_element(ENTITY$0, i);
827 }
828 }
829 }
830 }