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