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