001    /*
002     * XML Type:  web-service-securityType
003     * Namespace: http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0
004     * Java type: org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceSecurityType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.openejb.xbeans.ejbjar.impl;
009    /**
010     * An XML web-service-securityType(@http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0).
011     *
012     * This is a complex type.
013     */
014    public class OpenejbWebServiceSecurityTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbWebServiceSecurityType
015    {
016        private static final long serialVersionUID = 1L;
017        
018        public OpenejbWebServiceSecurityTypeImpl(org.apache.xmlbeans.SchemaType sType)
019        {
020            super(sType);
021        }
022        
023        private static final javax.xml.namespace.QName SECURITYREALMNAME$0 = 
024            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0", "security-realm-name");
025        private static final javax.xml.namespace.QName REALMNAME$2 = 
026            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0", "realm-name");
027        private static final javax.xml.namespace.QName TRANSPORTGUARANTEE$4 = 
028            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0", "transport-guarantee");
029        private static final javax.xml.namespace.QName AUTHMETHOD$6 = 
030            new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0", "auth-method");
031        
032        
033        /**
034         * Gets the "security-realm-name" element
035         */
036        public java.lang.String getSecurityRealmName()
037        {
038            synchronized (monitor())
039            {
040                check_orphaned();
041                org.apache.xmlbeans.SimpleValue target = null;
042                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECURITYREALMNAME$0, 0);
043                if (target == null)
044                {
045                    return null;
046                }
047                return target.getStringValue();
048            }
049        }
050        
051        /**
052         * Gets (as xml) the "security-realm-name" element
053         */
054        public org.apache.xmlbeans.XmlString xgetSecurityRealmName()
055        {
056            synchronized (monitor())
057            {
058                check_orphaned();
059                org.apache.xmlbeans.XmlString target = null;
060                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECURITYREALMNAME$0, 0);
061                return target;
062            }
063        }
064        
065        /**
066         * Sets the "security-realm-name" element
067         */
068        public void setSecurityRealmName(java.lang.String securityRealmName)
069        {
070            synchronized (monitor())
071            {
072                check_orphaned();
073                org.apache.xmlbeans.SimpleValue target = null;
074                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECURITYREALMNAME$0, 0);
075                if (target == null)
076                {
077                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SECURITYREALMNAME$0);
078                }
079                target.setStringValue(securityRealmName);
080            }
081        }
082        
083        /**
084         * Sets (as xml) the "security-realm-name" element
085         */
086        public void xsetSecurityRealmName(org.apache.xmlbeans.XmlString securityRealmName)
087        {
088            synchronized (monitor())
089            {
090                check_orphaned();
091                org.apache.xmlbeans.XmlString target = null;
092                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECURITYREALMNAME$0, 0);
093                if (target == null)
094                {
095                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SECURITYREALMNAME$0);
096                }
097                target.set(securityRealmName);
098            }
099        }
100        
101        /**
102         * Gets the "realm-name" element
103         */
104        public java.lang.String getRealmName()
105        {
106            synchronized (monitor())
107            {
108                check_orphaned();
109                org.apache.xmlbeans.SimpleValue target = null;
110                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REALMNAME$2, 0);
111                if (target == null)
112                {
113                    return null;
114                }
115                return target.getStringValue();
116            }
117        }
118        
119        /**
120         * Gets (as xml) the "realm-name" element
121         */
122        public org.apache.xmlbeans.XmlString xgetRealmName()
123        {
124            synchronized (monitor())
125            {
126                check_orphaned();
127                org.apache.xmlbeans.XmlString target = null;
128                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REALMNAME$2, 0);
129                return target;
130            }
131        }
132        
133        /**
134         * True if has "realm-name" element
135         */
136        public boolean isSetRealmName()
137        {
138            synchronized (monitor())
139            {
140                check_orphaned();
141                return get_store().count_elements(REALMNAME$2) != 0;
142            }
143        }
144        
145        /**
146         * Sets the "realm-name" element
147         */
148        public void setRealmName(java.lang.String realmName)
149        {
150            synchronized (monitor())
151            {
152                check_orphaned();
153                org.apache.xmlbeans.SimpleValue target = null;
154                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REALMNAME$2, 0);
155                if (target == null)
156                {
157                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REALMNAME$2);
158                }
159                target.setStringValue(realmName);
160            }
161        }
162        
163        /**
164         * Sets (as xml) the "realm-name" element
165         */
166        public void xsetRealmName(org.apache.xmlbeans.XmlString realmName)
167        {
168            synchronized (monitor())
169            {
170                check_orphaned();
171                org.apache.xmlbeans.XmlString target = null;
172                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REALMNAME$2, 0);
173                if (target == null)
174                {
175                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REALMNAME$2);
176                }
177                target.set(realmName);
178            }
179        }
180        
181        /**
182         * Unsets the "realm-name" element
183         */
184        public void unsetRealmName()
185        {
186            synchronized (monitor())
187            {
188                check_orphaned();
189                get_store().remove_element(REALMNAME$2, 0);
190            }
191        }
192        
193        /**
194         * Gets the "transport-guarantee" element
195         */
196        public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType.Enum getTransportGuarantee()
197        {
198            synchronized (monitor())
199            {
200                check_orphaned();
201                org.apache.xmlbeans.SimpleValue target = null;
202                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRANSPORTGUARANTEE$4, 0);
203                if (target == null)
204                {
205                    return null;
206                }
207                return (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType.Enum)target.getEnumValue();
208            }
209        }
210        
211        /**
212         * Gets (as xml) the "transport-guarantee" element
213         */
214        public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType xgetTransportGuarantee()
215        {
216            synchronized (monitor())
217            {
218                check_orphaned();
219                org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType target = null;
220                target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType)get_store().find_element_user(TRANSPORTGUARANTEE$4, 0);
221                return target;
222            }
223        }
224        
225        /**
226         * Sets the "transport-guarantee" element
227         */
228        public void setTransportGuarantee(org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType.Enum transportGuarantee)
229        {
230            synchronized (monitor())
231            {
232                check_orphaned();
233                org.apache.xmlbeans.SimpleValue target = null;
234                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TRANSPORTGUARANTEE$4, 0);
235                if (target == null)
236                {
237                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TRANSPORTGUARANTEE$4);
238                }
239                target.setEnumValue(transportGuarantee);
240            }
241        }
242        
243        /**
244         * Sets (as xml) the "transport-guarantee" element
245         */
246        public void xsetTransportGuarantee(org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType transportGuarantee)
247        {
248            synchronized (monitor())
249            {
250                check_orphaned();
251                org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType target = null;
252                target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType)get_store().find_element_user(TRANSPORTGUARANTEE$4, 0);
253                if (target == null)
254                {
255                    target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbTransportGuaranteeType)get_store().add_element_user(TRANSPORTGUARANTEE$4);
256                }
257                target.set(transportGuarantee);
258            }
259        }
260        
261        /**
262         * Gets the "auth-method" element
263         */
264        public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType.Enum getAuthMethod()
265        {
266            synchronized (monitor())
267            {
268                check_orphaned();
269                org.apache.xmlbeans.SimpleValue target = null;
270                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUTHMETHOD$6, 0);
271                if (target == null)
272                {
273                    return null;
274                }
275                return (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType.Enum)target.getEnumValue();
276            }
277        }
278        
279        /**
280         * Gets (as xml) the "auth-method" element
281         */
282        public org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType xgetAuthMethod()
283        {
284            synchronized (monitor())
285            {
286                check_orphaned();
287                org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType target = null;
288                target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType)get_store().find_element_user(AUTHMETHOD$6, 0);
289                return target;
290            }
291        }
292        
293        /**
294         * Sets the "auth-method" element
295         */
296        public void setAuthMethod(org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType.Enum authMethod)
297        {
298            synchronized (monitor())
299            {
300                check_orphaned();
301                org.apache.xmlbeans.SimpleValue target = null;
302                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUTHMETHOD$6, 0);
303                if (target == null)
304                {
305                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AUTHMETHOD$6);
306                }
307                target.setEnumValue(authMethod);
308            }
309        }
310        
311        /**
312         * Sets (as xml) the "auth-method" element
313         */
314        public void xsetAuthMethod(org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType authMethod)
315        {
316            synchronized (monitor())
317            {
318                check_orphaned();
319                org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType target = null;
320                target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType)get_store().find_element_user(AUTHMETHOD$6, 0);
321                if (target == null)
322                {
323                    target = (org.apache.geronimo.openejb.xbeans.ejbjar.OpenejbAuthMethodType)get_store().add_element_user(AUTHMETHOD$6);
324                }
325                target.set(authMethod);
326            }
327        }
328    }