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