001    /*
002     * XML Type:  tomcat-clustering-wadiType
003     * Namespace: http://geronimo.apache.org/xml/ns/tomcat-clustering-wadi-1.2
004     * Java type: org.apache.geronimo.xbeans.geronimo.GerTomcatClusteringWadiType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.geronimo.impl;
009    /**
010     * An XML tomcat-clustering-wadiType(@http://geronimo.apache.org/xml/ns/tomcat-clustering-wadi-1.2).
011     *
012     * This is a complex type.
013     */
014    public class GerTomcatClusteringWadiTypeImpl extends org.apache.geronimo.xbeans.geronimo.j2ee.impl.GerAbstractClusteringTypeImpl implements org.apache.geronimo.xbeans.geronimo.GerTomcatClusteringWadiType
015    {
016        
017        public GerTomcatClusteringWadiTypeImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName SWEEPINTERVAL$0 = 
023            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/tomcat-clustering-wadi-1.2", "sweepInterval");
024        private static final javax.xml.namespace.QName NUMPARTITIONS$2 = 
025            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/tomcat-clustering-wadi-1.2", "numPartitions");
026        private static final javax.xml.namespace.QName CLUSTER$4 = 
027            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/tomcat-clustering-wadi-1.2", "cluster");
028        private static final javax.xml.namespace.QName DISABLEREPLICATION$6 = 
029            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/tomcat-clustering-wadi-1.2", "disableReplication");
030        private static final javax.xml.namespace.QName DELTAREPLICATION$8 = 
031            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/tomcat-clustering-wadi-1.2", "deltaReplication");
032        private static final javax.xml.namespace.QName BACKINGSTRATEGYFACTORY$10 = 
033            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/tomcat-clustering-wadi-1.2", "backing-strategy-factory");
034        
035        
036        /**
037         * Gets the "sweepInterval" element
038         */
039        public java.math.BigInteger getSweepInterval()
040        {
041            synchronized (monitor())
042            {
043                check_orphaned();
044                org.apache.xmlbeans.SimpleValue target = null;
045                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SWEEPINTERVAL$0, 0);
046                if (target == null)
047                {
048                    return null;
049                }
050                return target.getBigIntegerValue();
051            }
052        }
053        
054        /**
055         * Gets (as xml) the "sweepInterval" element
056         */
057        public org.apache.xmlbeans.XmlInteger xgetSweepInterval()
058        {
059            synchronized (monitor())
060            {
061                check_orphaned();
062                org.apache.xmlbeans.XmlInteger target = null;
063                target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(SWEEPINTERVAL$0, 0);
064                return target;
065            }
066        }
067        
068        /**
069         * True if has "sweepInterval" element
070         */
071        public boolean isSetSweepInterval()
072        {
073            synchronized (monitor())
074            {
075                check_orphaned();
076                return get_store().count_elements(SWEEPINTERVAL$0) != 0;
077            }
078        }
079        
080        /**
081         * Sets the "sweepInterval" element
082         */
083        public void setSweepInterval(java.math.BigInteger sweepInterval)
084        {
085            synchronized (monitor())
086            {
087                check_orphaned();
088                org.apache.xmlbeans.SimpleValue target = null;
089                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SWEEPINTERVAL$0, 0);
090                if (target == null)
091                {
092                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SWEEPINTERVAL$0);
093                }
094                target.setBigIntegerValue(sweepInterval);
095            }
096        }
097        
098        /**
099         * Sets (as xml) the "sweepInterval" element
100         */
101        public void xsetSweepInterval(org.apache.xmlbeans.XmlInteger sweepInterval)
102        {
103            synchronized (monitor())
104            {
105                check_orphaned();
106                org.apache.xmlbeans.XmlInteger target = null;
107                target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(SWEEPINTERVAL$0, 0);
108                if (target == null)
109                {
110                    target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(SWEEPINTERVAL$0);
111                }
112                target.set(sweepInterval);
113            }
114        }
115        
116        /**
117         * Unsets the "sweepInterval" element
118         */
119        public void unsetSweepInterval()
120        {
121            synchronized (monitor())
122            {
123                check_orphaned();
124                get_store().remove_element(SWEEPINTERVAL$0, 0);
125            }
126        }
127        
128        /**
129         * Gets the "numPartitions" element
130         */
131        public java.math.BigInteger getNumPartitions()
132        {
133            synchronized (monitor())
134            {
135                check_orphaned();
136                org.apache.xmlbeans.SimpleValue target = null;
137                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NUMPARTITIONS$2, 0);
138                if (target == null)
139                {
140                    return null;
141                }
142                return target.getBigIntegerValue();
143            }
144        }
145        
146        /**
147         * Gets (as xml) the "numPartitions" element
148         */
149        public org.apache.xmlbeans.XmlInteger xgetNumPartitions()
150        {
151            synchronized (monitor())
152            {
153                check_orphaned();
154                org.apache.xmlbeans.XmlInteger target = null;
155                target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(NUMPARTITIONS$2, 0);
156                return target;
157            }
158        }
159        
160        /**
161         * True if has "numPartitions" element
162         */
163        public boolean isSetNumPartitions()
164        {
165            synchronized (monitor())
166            {
167                check_orphaned();
168                return get_store().count_elements(NUMPARTITIONS$2) != 0;
169            }
170        }
171        
172        /**
173         * Sets the "numPartitions" element
174         */
175        public void setNumPartitions(java.math.BigInteger numPartitions)
176        {
177            synchronized (monitor())
178            {
179                check_orphaned();
180                org.apache.xmlbeans.SimpleValue target = null;
181                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NUMPARTITIONS$2, 0);
182                if (target == null)
183                {
184                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NUMPARTITIONS$2);
185                }
186                target.setBigIntegerValue(numPartitions);
187            }
188        }
189        
190        /**
191         * Sets (as xml) the "numPartitions" element
192         */
193        public void xsetNumPartitions(org.apache.xmlbeans.XmlInteger numPartitions)
194        {
195            synchronized (monitor())
196            {
197                check_orphaned();
198                org.apache.xmlbeans.XmlInteger target = null;
199                target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(NUMPARTITIONS$2, 0);
200                if (target == null)
201                {
202                    target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(NUMPARTITIONS$2);
203                }
204                target.set(numPartitions);
205            }
206        }
207        
208        /**
209         * Unsets the "numPartitions" element
210         */
211        public void unsetNumPartitions()
212        {
213            synchronized (monitor())
214            {
215                check_orphaned();
216                get_store().remove_element(NUMPARTITIONS$2, 0);
217            }
218        }
219        
220        /**
221         * Gets the "cluster" element
222         */
223        public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType getCluster()
224        {
225            synchronized (monitor())
226            {
227                check_orphaned();
228                org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
229                target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(CLUSTER$4, 0);
230                if (target == null)
231                {
232                    return null;
233                }
234                return target;
235            }
236        }
237        
238        /**
239         * True if has "cluster" element
240         */
241        public boolean isSetCluster()
242        {
243            synchronized (monitor())
244            {
245                check_orphaned();
246                return get_store().count_elements(CLUSTER$4) != 0;
247            }
248        }
249        
250        /**
251         * Sets the "cluster" element
252         */
253        public void setCluster(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType cluster)
254        {
255            synchronized (monitor())
256            {
257                check_orphaned();
258                org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
259                target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(CLUSTER$4, 0);
260                if (target == null)
261                {
262                    target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(CLUSTER$4);
263                }
264                target.set(cluster);
265            }
266        }
267        
268        /**
269         * Appends and returns a new empty "cluster" element
270         */
271        public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType addNewCluster()
272        {
273            synchronized (monitor())
274            {
275                check_orphaned();
276                org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
277                target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(CLUSTER$4);
278                return target;
279            }
280        }
281        
282        /**
283         * Unsets the "cluster" element
284         */
285        public void unsetCluster()
286        {
287            synchronized (monitor())
288            {
289                check_orphaned();
290                get_store().remove_element(CLUSTER$4, 0);
291            }
292        }
293        
294        /**
295         * Gets the "disableReplication" element
296         */
297        public boolean getDisableReplication()
298        {
299            synchronized (monitor())
300            {
301                check_orphaned();
302                org.apache.xmlbeans.SimpleValue target = null;
303                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DISABLEREPLICATION$6, 0);
304                if (target == null)
305                {
306                    return false;
307                }
308                return target.getBooleanValue();
309            }
310        }
311        
312        /**
313         * Gets (as xml) the "disableReplication" element
314         */
315        public org.apache.xmlbeans.XmlBoolean xgetDisableReplication()
316        {
317            synchronized (monitor())
318            {
319                check_orphaned();
320                org.apache.xmlbeans.XmlBoolean target = null;
321                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(DISABLEREPLICATION$6, 0);
322                return target;
323            }
324        }
325        
326        /**
327         * True if has "disableReplication" element
328         */
329        public boolean isSetDisableReplication()
330        {
331            synchronized (monitor())
332            {
333                check_orphaned();
334                return get_store().count_elements(DISABLEREPLICATION$6) != 0;
335            }
336        }
337        
338        /**
339         * Sets the "disableReplication" element
340         */
341        public void setDisableReplication(boolean disableReplication)
342        {
343            synchronized (monitor())
344            {
345                check_orphaned();
346                org.apache.xmlbeans.SimpleValue target = null;
347                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DISABLEREPLICATION$6, 0);
348                if (target == null)
349                {
350                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DISABLEREPLICATION$6);
351                }
352                target.setBooleanValue(disableReplication);
353            }
354        }
355        
356        /**
357         * Sets (as xml) the "disableReplication" element
358         */
359        public void xsetDisableReplication(org.apache.xmlbeans.XmlBoolean disableReplication)
360        {
361            synchronized (monitor())
362            {
363                check_orphaned();
364                org.apache.xmlbeans.XmlBoolean target = null;
365                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(DISABLEREPLICATION$6, 0);
366                if (target == null)
367                {
368                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(DISABLEREPLICATION$6);
369                }
370                target.set(disableReplication);
371            }
372        }
373        
374        /**
375         * Unsets the "disableReplication" element
376         */
377        public void unsetDisableReplication()
378        {
379            synchronized (monitor())
380            {
381                check_orphaned();
382                get_store().remove_element(DISABLEREPLICATION$6, 0);
383            }
384        }
385        
386        /**
387         * Gets the "deltaReplication" element
388         */
389        public boolean getDeltaReplication()
390        {
391            synchronized (monitor())
392            {
393                check_orphaned();
394                org.apache.xmlbeans.SimpleValue target = null;
395                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DELTAREPLICATION$8, 0);
396                if (target == null)
397                {
398                    return false;
399                }
400                return target.getBooleanValue();
401            }
402        }
403        
404        /**
405         * Gets (as xml) the "deltaReplication" element
406         */
407        public org.apache.xmlbeans.XmlBoolean xgetDeltaReplication()
408        {
409            synchronized (monitor())
410            {
411                check_orphaned();
412                org.apache.xmlbeans.XmlBoolean target = null;
413                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(DELTAREPLICATION$8, 0);
414                return target;
415            }
416        }
417        
418        /**
419         * True if has "deltaReplication" element
420         */
421        public boolean isSetDeltaReplication()
422        {
423            synchronized (monitor())
424            {
425                check_orphaned();
426                return get_store().count_elements(DELTAREPLICATION$8) != 0;
427            }
428        }
429        
430        /**
431         * Sets the "deltaReplication" element
432         */
433        public void setDeltaReplication(boolean deltaReplication)
434        {
435            synchronized (monitor())
436            {
437                check_orphaned();
438                org.apache.xmlbeans.SimpleValue target = null;
439                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DELTAREPLICATION$8, 0);
440                if (target == null)
441                {
442                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DELTAREPLICATION$8);
443                }
444                target.setBooleanValue(deltaReplication);
445            }
446        }
447        
448        /**
449         * Sets (as xml) the "deltaReplication" element
450         */
451        public void xsetDeltaReplication(org.apache.xmlbeans.XmlBoolean deltaReplication)
452        {
453            synchronized (monitor())
454            {
455                check_orphaned();
456                org.apache.xmlbeans.XmlBoolean target = null;
457                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(DELTAREPLICATION$8, 0);
458                if (target == null)
459                {
460                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(DELTAREPLICATION$8);
461                }
462                target.set(deltaReplication);
463            }
464        }
465        
466        /**
467         * Unsets the "deltaReplication" element
468         */
469        public void unsetDeltaReplication()
470        {
471            synchronized (monitor())
472            {
473                check_orphaned();
474                get_store().remove_element(DELTAREPLICATION$8, 0);
475            }
476        }
477        
478        /**
479         * Gets the "backing-strategy-factory" element
480         */
481        public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType getBackingStrategyFactory()
482        {
483            synchronized (monitor())
484            {
485                check_orphaned();
486                org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
487                target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(BACKINGSTRATEGYFACTORY$10, 0);
488                if (target == null)
489                {
490                    return null;
491                }
492                return target;
493            }
494        }
495        
496        /**
497         * True if has "backing-strategy-factory" element
498         */
499        public boolean isSetBackingStrategyFactory()
500        {
501            synchronized (monitor())
502            {
503                check_orphaned();
504                return get_store().count_elements(BACKINGSTRATEGYFACTORY$10) != 0;
505            }
506        }
507        
508        /**
509         * Sets the "backing-strategy-factory" element
510         */
511        public void setBackingStrategyFactory(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType backingStrategyFactory)
512        {
513            synchronized (monitor())
514            {
515                check_orphaned();
516                org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
517                target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(BACKINGSTRATEGYFACTORY$10, 0);
518                if (target == null)
519                {
520                    target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(BACKINGSTRATEGYFACTORY$10);
521                }
522                target.set(backingStrategyFactory);
523            }
524        }
525        
526        /**
527         * Appends and returns a new empty "backing-strategy-factory" element
528         */
529        public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType addNewBackingStrategyFactory()
530        {
531            synchronized (monitor())
532            {
533                check_orphaned();
534                org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
535                target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(BACKINGSTRATEGYFACTORY$10);
536                return target;
537            }
538        }
539        
540        /**
541         * Unsets the "backing-strategy-factory" element
542         */
543        public void unsetBackingStrategyFactory()
544        {
545            synchronized (monitor())
546            {
547                check_orphaned();
548                get_store().remove_element(BACKINGSTRATEGYFACTORY$10, 0);
549            }
550        }
551    }