001    /*
002     * XML Type:  tomcat-configType
003     * Namespace: http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0
004     * Java type: org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerTomcatConfigType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.geronimo.web.tomcat.config.impl;
009    /**
010     * An XML tomcat-configType(@http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0).
011     *
012     * This is a complex type.
013     */
014    public class GerTomcatConfigTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerTomcatConfigType
015    {
016        
017        public GerTomcatConfigTypeImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName HOST$0 = 
023            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0", "host");
024        private static final javax.xml.namespace.QName CROSSCONTEXT$2 = 
025            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0", "cross-context");
026        private static final javax.xml.namespace.QName DISABLECOOKIES$4 = 
027            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0", "disable-cookies");
028        private static final javax.xml.namespace.QName VALVECHAIN$6 = 
029            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0", "valve-chain");
030        private static final javax.xml.namespace.QName LISTENERCHAIN$8 = 
031            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0", "listener-chain");
032        private static final javax.xml.namespace.QName TOMCATREALM$10 = 
033            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0", "tomcat-realm");
034        private static final javax.xml.namespace.QName MANAGER$12 = 
035            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0", "manager");
036        private static final javax.xml.namespace.QName CLUSTER$14 = 
037            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0", "cluster");
038        
039        
040        /**
041         * Gets the "host" element
042         */
043        public java.lang.String getHost()
044        {
045            synchronized (monitor())
046            {
047                check_orphaned();
048                org.apache.xmlbeans.SimpleValue target = null;
049                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$0, 0);
050                if (target == null)
051                {
052                    return null;
053                }
054                return target.getStringValue();
055            }
056        }
057        
058        /**
059         * Gets (as xml) the "host" element
060         */
061        public org.apache.xmlbeans.XmlString xgetHost()
062        {
063            synchronized (monitor())
064            {
065                check_orphaned();
066                org.apache.xmlbeans.XmlString target = null;
067                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$0, 0);
068                return target;
069            }
070        }
071        
072        /**
073         * True if has "host" element
074         */
075        public boolean isSetHost()
076        {
077            synchronized (monitor())
078            {
079                check_orphaned();
080                return get_store().count_elements(HOST$0) != 0;
081            }
082        }
083        
084        /**
085         * Sets the "host" element
086         */
087        public void setHost(java.lang.String host)
088        {
089            synchronized (monitor())
090            {
091                check_orphaned();
092                org.apache.xmlbeans.SimpleValue target = null;
093                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HOST$0, 0);
094                if (target == null)
095                {
096                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HOST$0);
097                }
098                target.setStringValue(host);
099            }
100        }
101        
102        /**
103         * Sets (as xml) the "host" element
104         */
105        public void xsetHost(org.apache.xmlbeans.XmlString host)
106        {
107            synchronized (monitor())
108            {
109                check_orphaned();
110                org.apache.xmlbeans.XmlString target = null;
111                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HOST$0, 0);
112                if (target == null)
113                {
114                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(HOST$0);
115                }
116                target.set(host);
117            }
118        }
119        
120        /**
121         * Unsets the "host" element
122         */
123        public void unsetHost()
124        {
125            synchronized (monitor())
126            {
127                check_orphaned();
128                get_store().remove_element(HOST$0, 0);
129            }
130        }
131        
132        /**
133         * Gets the "cross-context" element
134         */
135        public org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType getCrossContext()
136        {
137            synchronized (monitor())
138            {
139                check_orphaned();
140                org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType target = null;
141                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType)get_store().find_element_user(CROSSCONTEXT$2, 0);
142                if (target == null)
143                {
144                    return null;
145                }
146                return target;
147            }
148        }
149        
150        /**
151         * True if has "cross-context" element
152         */
153        public boolean isSetCrossContext()
154        {
155            synchronized (monitor())
156            {
157                check_orphaned();
158                return get_store().count_elements(CROSSCONTEXT$2) != 0;
159            }
160        }
161        
162        /**
163         * Sets the "cross-context" element
164         */
165        public void setCrossContext(org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType crossContext)
166        {
167            synchronized (monitor())
168            {
169                check_orphaned();
170                org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType target = null;
171                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType)get_store().find_element_user(CROSSCONTEXT$2, 0);
172                if (target == null)
173                {
174                    target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType)get_store().add_element_user(CROSSCONTEXT$2);
175                }
176                target.set(crossContext);
177            }
178        }
179        
180        /**
181         * Appends and returns a new empty "cross-context" element
182         */
183        public org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType addNewCrossContext()
184        {
185            synchronized (monitor())
186            {
187                check_orphaned();
188                org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType target = null;
189                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType)get_store().add_element_user(CROSSCONTEXT$2);
190                return target;
191            }
192        }
193        
194        /**
195         * Unsets the "cross-context" element
196         */
197        public void unsetCrossContext()
198        {
199            synchronized (monitor())
200            {
201                check_orphaned();
202                get_store().remove_element(CROSSCONTEXT$2, 0);
203            }
204        }
205        
206        /**
207         * Gets the "disable-cookies" element
208         */
209        public org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType getDisableCookies()
210        {
211            synchronized (monitor())
212            {
213                check_orphaned();
214                org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType target = null;
215                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType)get_store().find_element_user(DISABLECOOKIES$4, 0);
216                if (target == null)
217                {
218                    return null;
219                }
220                return target;
221            }
222        }
223        
224        /**
225         * True if has "disable-cookies" element
226         */
227        public boolean isSetDisableCookies()
228        {
229            synchronized (monitor())
230            {
231                check_orphaned();
232                return get_store().count_elements(DISABLECOOKIES$4) != 0;
233            }
234        }
235        
236        /**
237         * Sets the "disable-cookies" element
238         */
239        public void setDisableCookies(org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType disableCookies)
240        {
241            synchronized (monitor())
242            {
243                check_orphaned();
244                org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType target = null;
245                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType)get_store().find_element_user(DISABLECOOKIES$4, 0);
246                if (target == null)
247                {
248                    target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType)get_store().add_element_user(DISABLECOOKIES$4);
249                }
250                target.set(disableCookies);
251            }
252        }
253        
254        /**
255         * Appends and returns a new empty "disable-cookies" element
256         */
257        public org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType addNewDisableCookies()
258        {
259            synchronized (monitor())
260            {
261                check_orphaned();
262                org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType target = null;
263                target = (org.apache.geronimo.xbeans.geronimo.web.tomcat.config.GerEmptyType)get_store().add_element_user(DISABLECOOKIES$4);
264                return target;
265            }
266        }
267        
268        /**
269         * Unsets the "disable-cookies" element
270         */
271        public void unsetDisableCookies()
272        {
273            synchronized (monitor())
274            {
275                check_orphaned();
276                get_store().remove_element(DISABLECOOKIES$4, 0);
277            }
278        }
279        
280        /**
281         * Gets the "valve-chain" element
282         */
283        public java.lang.String getValveChain()
284        {
285            synchronized (monitor())
286            {
287                check_orphaned();
288                org.apache.xmlbeans.SimpleValue target = null;
289                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALVECHAIN$6, 0);
290                if (target == null)
291                {
292                    return null;
293                }
294                return target.getStringValue();
295            }
296        }
297        
298        /**
299         * Gets (as xml) the "valve-chain" element
300         */
301        public org.apache.xmlbeans.XmlString xgetValveChain()
302        {
303            synchronized (monitor())
304            {
305                check_orphaned();
306                org.apache.xmlbeans.XmlString target = null;
307                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALVECHAIN$6, 0);
308                return target;
309            }
310        }
311        
312        /**
313         * True if has "valve-chain" element
314         */
315        public boolean isSetValveChain()
316        {
317            synchronized (monitor())
318            {
319                check_orphaned();
320                return get_store().count_elements(VALVECHAIN$6) != 0;
321            }
322        }
323        
324        /**
325         * Sets the "valve-chain" element
326         */
327        public void setValveChain(java.lang.String valveChain)
328        {
329            synchronized (monitor())
330            {
331                check_orphaned();
332                org.apache.xmlbeans.SimpleValue target = null;
333                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALVECHAIN$6, 0);
334                if (target == null)
335                {
336                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALVECHAIN$6);
337                }
338                target.setStringValue(valveChain);
339            }
340        }
341        
342        /**
343         * Sets (as xml) the "valve-chain" element
344         */
345        public void xsetValveChain(org.apache.xmlbeans.XmlString valveChain)
346        {
347            synchronized (monitor())
348            {
349                check_orphaned();
350                org.apache.xmlbeans.XmlString target = null;
351                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALVECHAIN$6, 0);
352                if (target == null)
353                {
354                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALVECHAIN$6);
355                }
356                target.set(valveChain);
357            }
358        }
359        
360        /**
361         * Unsets the "valve-chain" element
362         */
363        public void unsetValveChain()
364        {
365            synchronized (monitor())
366            {
367                check_orphaned();
368                get_store().remove_element(VALVECHAIN$6, 0);
369            }
370        }
371        
372        /**
373         * Gets the "listener-chain" element
374         */
375        public java.lang.String getListenerChain()
376        {
377            synchronized (monitor())
378            {
379                check_orphaned();
380                org.apache.xmlbeans.SimpleValue target = null;
381                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LISTENERCHAIN$8, 0);
382                if (target == null)
383                {
384                    return null;
385                }
386                return target.getStringValue();
387            }
388        }
389        
390        /**
391         * Gets (as xml) the "listener-chain" element
392         */
393        public org.apache.xmlbeans.XmlString xgetListenerChain()
394        {
395            synchronized (monitor())
396            {
397                check_orphaned();
398                org.apache.xmlbeans.XmlString target = null;
399                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LISTENERCHAIN$8, 0);
400                return target;
401            }
402        }
403        
404        /**
405         * True if has "listener-chain" element
406         */
407        public boolean isSetListenerChain()
408        {
409            synchronized (monitor())
410            {
411                check_orphaned();
412                return get_store().count_elements(LISTENERCHAIN$8) != 0;
413            }
414        }
415        
416        /**
417         * Sets the "listener-chain" element
418         */
419        public void setListenerChain(java.lang.String listenerChain)
420        {
421            synchronized (monitor())
422            {
423                check_orphaned();
424                org.apache.xmlbeans.SimpleValue target = null;
425                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LISTENERCHAIN$8, 0);
426                if (target == null)
427                {
428                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LISTENERCHAIN$8);
429                }
430                target.setStringValue(listenerChain);
431            }
432        }
433        
434        /**
435         * Sets (as xml) the "listener-chain" element
436         */
437        public void xsetListenerChain(org.apache.xmlbeans.XmlString listenerChain)
438        {
439            synchronized (monitor())
440            {
441                check_orphaned();
442                org.apache.xmlbeans.XmlString target = null;
443                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LISTENERCHAIN$8, 0);
444                if (target == null)
445                {
446                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LISTENERCHAIN$8);
447                }
448                target.set(listenerChain);
449            }
450        }
451        
452        /**
453         * Unsets the "listener-chain" element
454         */
455        public void unsetListenerChain()
456        {
457            synchronized (monitor())
458            {
459                check_orphaned();
460                get_store().remove_element(LISTENERCHAIN$8, 0);
461            }
462        }
463        
464        /**
465         * Gets the "tomcat-realm" element
466         */
467        public java.lang.String getTomcatRealm()
468        {
469            synchronized (monitor())
470            {
471                check_orphaned();
472                org.apache.xmlbeans.SimpleValue target = null;
473                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOMCATREALM$10, 0);
474                if (target == null)
475                {
476                    return null;
477                }
478                return target.getStringValue();
479            }
480        }
481        
482        /**
483         * Gets (as xml) the "tomcat-realm" element
484         */
485        public org.apache.xmlbeans.XmlString xgetTomcatRealm()
486        {
487            synchronized (monitor())
488            {
489                check_orphaned();
490                org.apache.xmlbeans.XmlString target = null;
491                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TOMCATREALM$10, 0);
492                return target;
493            }
494        }
495        
496        /**
497         * True if has "tomcat-realm" element
498         */
499        public boolean isSetTomcatRealm()
500        {
501            synchronized (monitor())
502            {
503                check_orphaned();
504                return get_store().count_elements(TOMCATREALM$10) != 0;
505            }
506        }
507        
508        /**
509         * Sets the "tomcat-realm" element
510         */
511        public void setTomcatRealm(java.lang.String tomcatRealm)
512        {
513            synchronized (monitor())
514            {
515                check_orphaned();
516                org.apache.xmlbeans.SimpleValue target = null;
517                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOMCATREALM$10, 0);
518                if (target == null)
519                {
520                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOMCATREALM$10);
521                }
522                target.setStringValue(tomcatRealm);
523            }
524        }
525        
526        /**
527         * Sets (as xml) the "tomcat-realm" element
528         */
529        public void xsetTomcatRealm(org.apache.xmlbeans.XmlString tomcatRealm)
530        {
531            synchronized (monitor())
532            {
533                check_orphaned();
534                org.apache.xmlbeans.XmlString target = null;
535                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TOMCATREALM$10, 0);
536                if (target == null)
537                {
538                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TOMCATREALM$10);
539                }
540                target.set(tomcatRealm);
541            }
542        }
543        
544        /**
545         * Unsets the "tomcat-realm" element
546         */
547        public void unsetTomcatRealm()
548        {
549            synchronized (monitor())
550            {
551                check_orphaned();
552                get_store().remove_element(TOMCATREALM$10, 0);
553            }
554        }
555        
556        /**
557         * Gets the "manager" element
558         */
559        public java.lang.String getManager()
560        {
561            synchronized (monitor())
562            {
563                check_orphaned();
564                org.apache.xmlbeans.SimpleValue target = null;
565                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MANAGER$12, 0);
566                if (target == null)
567                {
568                    return null;
569                }
570                return target.getStringValue();
571            }
572        }
573        
574        /**
575         * Gets (as xml) the "manager" element
576         */
577        public org.apache.xmlbeans.XmlString xgetManager()
578        {
579            synchronized (monitor())
580            {
581                check_orphaned();
582                org.apache.xmlbeans.XmlString target = null;
583                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MANAGER$12, 0);
584                return target;
585            }
586        }
587        
588        /**
589         * True if has "manager" element
590         */
591        public boolean isSetManager()
592        {
593            synchronized (monitor())
594            {
595                check_orphaned();
596                return get_store().count_elements(MANAGER$12) != 0;
597            }
598        }
599        
600        /**
601         * Sets the "manager" element
602         */
603        public void setManager(java.lang.String manager)
604        {
605            synchronized (monitor())
606            {
607                check_orphaned();
608                org.apache.xmlbeans.SimpleValue target = null;
609                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MANAGER$12, 0);
610                if (target == null)
611                {
612                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MANAGER$12);
613                }
614                target.setStringValue(manager);
615            }
616        }
617        
618        /**
619         * Sets (as xml) the "manager" element
620         */
621        public void xsetManager(org.apache.xmlbeans.XmlString manager)
622        {
623            synchronized (monitor())
624            {
625                check_orphaned();
626                org.apache.xmlbeans.XmlString target = null;
627                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MANAGER$12, 0);
628                if (target == null)
629                {
630                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MANAGER$12);
631                }
632                target.set(manager);
633            }
634        }
635        
636        /**
637         * Unsets the "manager" element
638         */
639        public void unsetManager()
640        {
641            synchronized (monitor())
642            {
643                check_orphaned();
644                get_store().remove_element(MANAGER$12, 0);
645            }
646        }
647        
648        /**
649         * Gets the "cluster" element
650         */
651        public java.lang.String getCluster()
652        {
653            synchronized (monitor())
654            {
655                check_orphaned();
656                org.apache.xmlbeans.SimpleValue target = null;
657                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLUSTER$14, 0);
658                if (target == null)
659                {
660                    return null;
661                }
662                return target.getStringValue();
663            }
664        }
665        
666        /**
667         * Gets (as xml) the "cluster" element
668         */
669        public org.apache.xmlbeans.XmlString xgetCluster()
670        {
671            synchronized (monitor())
672            {
673                check_orphaned();
674                org.apache.xmlbeans.XmlString target = null;
675                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CLUSTER$14, 0);
676                return target;
677            }
678        }
679        
680        /**
681         * True if has "cluster" element
682         */
683        public boolean isSetCluster()
684        {
685            synchronized (monitor())
686            {
687                check_orphaned();
688                return get_store().count_elements(CLUSTER$14) != 0;
689            }
690        }
691        
692        /**
693         * Sets the "cluster" element
694         */
695        public void setCluster(java.lang.String cluster)
696        {
697            synchronized (monitor())
698            {
699                check_orphaned();
700                org.apache.xmlbeans.SimpleValue target = null;
701                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CLUSTER$14, 0);
702                if (target == null)
703                {
704                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CLUSTER$14);
705                }
706                target.setStringValue(cluster);
707            }
708        }
709        
710        /**
711         * Sets (as xml) the "cluster" element
712         */
713        public void xsetCluster(org.apache.xmlbeans.XmlString cluster)
714        {
715            synchronized (monitor())
716            {
717                check_orphaned();
718                org.apache.xmlbeans.XmlString target = null;
719                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CLUSTER$14, 0);
720                if (target == null)
721                {
722                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CLUSTER$14);
723                }
724                target.set(cluster);
725            }
726        }
727        
728        /**
729         * Unsets the "cluster" element
730         */
731        public void unsetCluster()
732        {
733            synchronized (monitor())
734            {
735                check_orphaned();
736                get_store().remove_element(CLUSTER$14, 0);
737            }
738        }
739    }