001    /*
002     * XML Type:  resource-refType
003     * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2
004     * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.geronimo.naming.impl;
009    /**
010     * An XML resource-refType(@http://geronimo.apache.org/xml/ns/naming-1.2).
011     *
012     * This is a complex type.
013     */
014    public class GerResourceRefTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.naming.GerResourceRefType
015    {
016        
017        public GerResourceRefTypeImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName REFNAME$0 = 
023            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "ref-name");
024        private static final javax.xml.namespace.QName PATTERN$2 = 
025            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "pattern");
026        private static final javax.xml.namespace.QName RESOURCELINK$4 = 
027            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "resource-link");
028        private static final javax.xml.namespace.QName URL$6 = 
029            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "url");
030        
031        
032        /**
033         * Gets the "ref-name" element
034         */
035        public java.lang.String getRefName()
036        {
037            synchronized (monitor())
038            {
039                check_orphaned();
040                org.apache.xmlbeans.SimpleValue target = null;
041                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFNAME$0, 0);
042                if (target == null)
043                {
044                    return null;
045                }
046                return target.getStringValue();
047            }
048        }
049        
050        /**
051         * Gets (as xml) the "ref-name" element
052         */
053        public org.apache.xmlbeans.XmlString xgetRefName()
054        {
055            synchronized (monitor())
056            {
057                check_orphaned();
058                org.apache.xmlbeans.XmlString target = null;
059                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFNAME$0, 0);
060                return target;
061            }
062        }
063        
064        /**
065         * Sets the "ref-name" element
066         */
067        public void setRefName(java.lang.String refName)
068        {
069            synchronized (monitor())
070            {
071                check_orphaned();
072                org.apache.xmlbeans.SimpleValue target = null;
073                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFNAME$0, 0);
074                if (target == null)
075                {
076                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFNAME$0);
077                }
078                target.setStringValue(refName);
079            }
080        }
081        
082        /**
083         * Sets (as xml) the "ref-name" element
084         */
085        public void xsetRefName(org.apache.xmlbeans.XmlString refName)
086        {
087            synchronized (monitor())
088            {
089                check_orphaned();
090                org.apache.xmlbeans.XmlString target = null;
091                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFNAME$0, 0);
092                if (target == null)
093                {
094                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REFNAME$0);
095                }
096                target.set(refName);
097            }
098        }
099        
100        /**
101         * Gets the "pattern" element
102         */
103        public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType getPattern()
104        {
105            synchronized (monitor())
106            {
107                check_orphaned();
108                org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
109                target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$2, 0);
110                if (target == null)
111                {
112                    return null;
113                }
114                return target;
115            }
116        }
117        
118        /**
119         * True if has "pattern" element
120         */
121        public boolean isSetPattern()
122        {
123            synchronized (monitor())
124            {
125                check_orphaned();
126                return get_store().count_elements(PATTERN$2) != 0;
127            }
128        }
129        
130        /**
131         * Sets the "pattern" element
132         */
133        public void setPattern(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType pattern)
134        {
135            synchronized (monitor())
136            {
137                check_orphaned();
138                org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
139                target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().find_element_user(PATTERN$2, 0);
140                if (target == null)
141                {
142                    target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$2);
143                }
144                target.set(pattern);
145            }
146        }
147        
148        /**
149         * Appends and returns a new empty "pattern" element
150         */
151        public org.apache.geronimo.xbeans.geronimo.naming.GerPatternType addNewPattern()
152        {
153            synchronized (monitor())
154            {
155                check_orphaned();
156                org.apache.geronimo.xbeans.geronimo.naming.GerPatternType target = null;
157                target = (org.apache.geronimo.xbeans.geronimo.naming.GerPatternType)get_store().add_element_user(PATTERN$2);
158                return target;
159            }
160        }
161        
162        /**
163         * Unsets the "pattern" element
164         */
165        public void unsetPattern()
166        {
167            synchronized (monitor())
168            {
169                check_orphaned();
170                get_store().remove_element(PATTERN$2, 0);
171            }
172        }
173        
174        /**
175         * Gets the "resource-link" element
176         */
177        public java.lang.String getResourceLink()
178        {
179            synchronized (monitor())
180            {
181                check_orphaned();
182                org.apache.xmlbeans.SimpleValue target = null;
183                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESOURCELINK$4, 0);
184                if (target == null)
185                {
186                    return null;
187                }
188                return target.getStringValue();
189            }
190        }
191        
192        /**
193         * Gets (as xml) the "resource-link" element
194         */
195        public org.apache.xmlbeans.XmlString xgetResourceLink()
196        {
197            synchronized (monitor())
198            {
199                check_orphaned();
200                org.apache.xmlbeans.XmlString target = null;
201                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RESOURCELINK$4, 0);
202                return target;
203            }
204        }
205        
206        /**
207         * True if has "resource-link" element
208         */
209        public boolean isSetResourceLink()
210        {
211            synchronized (monitor())
212            {
213                check_orphaned();
214                return get_store().count_elements(RESOURCELINK$4) != 0;
215            }
216        }
217        
218        /**
219         * Sets the "resource-link" element
220         */
221        public void setResourceLink(java.lang.String resourceLink)
222        {
223            synchronized (monitor())
224            {
225                check_orphaned();
226                org.apache.xmlbeans.SimpleValue target = null;
227                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESOURCELINK$4, 0);
228                if (target == null)
229                {
230                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RESOURCELINK$4);
231                }
232                target.setStringValue(resourceLink);
233            }
234        }
235        
236        /**
237         * Sets (as xml) the "resource-link" element
238         */
239        public void xsetResourceLink(org.apache.xmlbeans.XmlString resourceLink)
240        {
241            synchronized (monitor())
242            {
243                check_orphaned();
244                org.apache.xmlbeans.XmlString target = null;
245                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RESOURCELINK$4, 0);
246                if (target == null)
247                {
248                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RESOURCELINK$4);
249                }
250                target.set(resourceLink);
251            }
252        }
253        
254        /**
255         * Unsets the "resource-link" element
256         */
257        public void unsetResourceLink()
258        {
259            synchronized (monitor())
260            {
261                check_orphaned();
262                get_store().remove_element(RESOURCELINK$4, 0);
263            }
264        }
265        
266        /**
267         * Gets the "url" element
268         */
269        public java.lang.String getUrl()
270        {
271            synchronized (monitor())
272            {
273                check_orphaned();
274                org.apache.xmlbeans.SimpleValue target = null;
275                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URL$6, 0);
276                if (target == null)
277                {
278                    return null;
279                }
280                return target.getStringValue();
281            }
282        }
283        
284        /**
285         * Gets (as xml) the "url" element
286         */
287        public org.apache.xmlbeans.XmlString xgetUrl()
288        {
289            synchronized (monitor())
290            {
291                check_orphaned();
292                org.apache.xmlbeans.XmlString target = null;
293                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URL$6, 0);
294                return target;
295            }
296        }
297        
298        /**
299         * True if has "url" element
300         */
301        public boolean isSetUrl()
302        {
303            synchronized (monitor())
304            {
305                check_orphaned();
306                return get_store().count_elements(URL$6) != 0;
307            }
308        }
309        
310        /**
311         * Sets the "url" element
312         */
313        public void setUrl(java.lang.String url)
314        {
315            synchronized (monitor())
316            {
317                check_orphaned();
318                org.apache.xmlbeans.SimpleValue target = null;
319                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URL$6, 0);
320                if (target == null)
321                {
322                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(URL$6);
323                }
324                target.setStringValue(url);
325            }
326        }
327        
328        /**
329         * Sets (as xml) the "url" element
330         */
331        public void xsetUrl(org.apache.xmlbeans.XmlString url)
332        {
333            synchronized (monitor())
334            {
335                check_orphaned();
336                org.apache.xmlbeans.XmlString target = null;
337                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URL$6, 0);
338                if (target == null)
339                {
340                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(URL$6);
341                }
342                target.set(url);
343            }
344        }
345        
346        /**
347         * Unsets the "url" element
348         */
349        public void unsetUrl()
350        {
351            synchronized (monitor())
352            {
353                check_orphaned();
354                get_store().remove_element(URL$6, 0);
355            }
356        }
357    }