/*
 * An XML document type.
 * Localname: ServiceBrokerControlProperties
 * Namespace: http://www.bea.com/wli/control/dynamicProperties
 * Java type: com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument
 *
 * Automatically generated - do not modify.
 */
package com.bea.wli.control.dynamicProperties.impl;
/**
 * A document containing one ServiceBrokerControlProperties(@http://www.bea.com/wli/control/dynamicProperties) element.
 *
 * This is a complex type.
 */
public class ServiceBrokerControlPropertiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument
{
    
    public ServiceBrokerControlPropertiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SERVICEBROKERCONTROLPROPERTIES$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "ServiceBrokerControlProperties");
    
    
    /**
     * Gets the "ServiceBrokerControlProperties" element
     */
    public com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties getServiceBrokerControlProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties target = null;
            target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties)get_store().find_element_user(SERVICEBROKERCONTROLPROPERTIES$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "ServiceBrokerControlProperties" element
     */
    public void setServiceBrokerControlProperties(com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties serviceBrokerControlProperties)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties target = null;
            target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties)get_store().find_element_user(SERVICEBROKERCONTROLPROPERTIES$0, 0);
            if (target == null)
            {
                target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties)get_store().add_element_user(SERVICEBROKERCONTROLPROPERTIES$0);
            }
            target.set(serviceBrokerControlProperties);
        }
    }
    
    /**
     * Appends and returns a new empty "ServiceBrokerControlProperties" element
     */
    public com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties addNewServiceBrokerControlProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties target = null;
            target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties)get_store().add_element_user(SERVICEBROKERCONTROLPROPERTIES$0);
            return target;
        }
    }
    /**
     * An XML ServiceBrokerControlProperties(@http://www.bea.com/wli/control/dynamicProperties).
     *
     * This is a complex type.
     */
    public static class ServiceBrokerControlPropertiesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties
    {
        
        public ServiceBrokerControlPropertiesImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName ENDPOINT$0 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "endpoint");
        private static final javax.xml.namespace.QName PROTOCOL$2 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "protocol");
        private static final javax.xml.namespace.QName CLIENTCERTIFICATE$4 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "clientCertificate");
        private static final javax.xml.namespace.QName BASICAUTHENTICATION$6 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "basicAuthentication");
        
        
        /**
         * Gets the "endpoint" element
         */
        public java.lang.String getEndpoint()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENDPOINT$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "endpoint" element
         */
        public org.apache.xmlbeans.XmlString xgetEndpoint()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ENDPOINT$0, 0);
                return target;
            }
        }
        
        /**
         * True if has "endpoint" element
         */
        public boolean isSetEndpoint()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(ENDPOINT$0) != 0;
            }
        }
        
        /**
         * Sets the "endpoint" element
         */
        public void setEndpoint(java.lang.String endpoint)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENDPOINT$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENDPOINT$0);
                }
                target.setStringValue(endpoint);
            }
        }
        
        /**
         * Sets (as xml) the "endpoint" element
         */
        public void xsetEndpoint(org.apache.xmlbeans.XmlString endpoint)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ENDPOINT$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ENDPOINT$0);
                }
                target.set(endpoint);
            }
        }
        
        /**
         * Unsets the "endpoint" element
         */
        public void unsetEndpoint()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(ENDPOINT$0, 0);
            }
        }
        
        /**
         * Gets the "protocol" element
         */
        public com.bea.wli.control.dynamicProperties.ProtocolType.Enum getProtocol()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROTOCOL$2, 0);
                if (target == null)
                {
                    return null;
                }
                return (com.bea.wli.control.dynamicProperties.ProtocolType.Enum)target.getEnumValue();
            }
        }
        
        /**
         * Gets (as xml) the "protocol" element
         */
        public com.bea.wli.control.dynamicProperties.ProtocolType xgetProtocol()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.ProtocolType target = null;
                target = (com.bea.wli.control.dynamicProperties.ProtocolType)get_store().find_element_user(PROTOCOL$2, 0);
                return target;
            }
        }
        
        /**
         * True if has "protocol" element
         */
        public boolean isSetProtocol()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(PROTOCOL$2) != 0;
            }
        }
        
        /**
         * Sets the "protocol" element
         */
        public void setProtocol(com.bea.wli.control.dynamicProperties.ProtocolType.Enum protocol)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROTOCOL$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROTOCOL$2);
                }
                target.setEnumValue(protocol);
            }
        }
        
        /**
         * Sets (as xml) the "protocol" element
         */
        public void xsetProtocol(com.bea.wli.control.dynamicProperties.ProtocolType protocol)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.ProtocolType target = null;
                target = (com.bea.wli.control.dynamicProperties.ProtocolType)get_store().find_element_user(PROTOCOL$2, 0);
                if (target == null)
                {
                    target = (com.bea.wli.control.dynamicProperties.ProtocolType)get_store().add_element_user(PROTOCOL$2);
                }
                target.set(protocol);
            }
        }
        
        /**
         * Unsets the "protocol" element
         */
        public void unsetProtocol()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(PROTOCOL$2, 0);
            }
        }
        
        /**
         * Gets the "clientCertificate" element
         */
        public com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate getClientCertificate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate target = null;
                target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate)get_store().find_element_user(CLIENTCERTIFICATE$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "clientCertificate" element
         */
        public boolean isSetClientCertificate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(CLIENTCERTIFICATE$4) != 0;
            }
        }
        
        /**
         * Sets the "clientCertificate" element
         */
        public void setClientCertificate(com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate clientCertificate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate target = null;
                target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate)get_store().find_element_user(CLIENTCERTIFICATE$4, 0);
                if (target == null)
                {
                    target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate)get_store().add_element_user(CLIENTCERTIFICATE$4);
                }
                target.set(clientCertificate);
            }
        }
        
        /**
         * Appends and returns a new empty "clientCertificate" element
         */
        public com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate addNewClientCertificate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate target = null;
                target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate)get_store().add_element_user(CLIENTCERTIFICATE$4);
                return target;
            }
        }
        
        /**
         * Unsets the "clientCertificate" element
         */
        public void unsetClientCertificate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(CLIENTCERTIFICATE$4, 0);
            }
        }
        
        /**
         * Gets the "basicAuthentication" element
         */
        public com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication getBasicAuthentication()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication target = null;
                target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication)get_store().find_element_user(BASICAUTHENTICATION$6, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "basicAuthentication" element
         */
        public boolean isSetBasicAuthentication()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(BASICAUTHENTICATION$6) != 0;
            }
        }
        
        /**
         * Sets the "basicAuthentication" element
         */
        public void setBasicAuthentication(com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication basicAuthentication)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication target = null;
                target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication)get_store().find_element_user(BASICAUTHENTICATION$6, 0);
                if (target == null)
                {
                    target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication)get_store().add_element_user(BASICAUTHENTICATION$6);
                }
                target.set(basicAuthentication);
            }
        }
        
        /**
         * Appends and returns a new empty "basicAuthentication" element
         */
        public com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication addNewBasicAuthentication()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication target = null;
                target = (com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication)get_store().add_element_user(BASICAUTHENTICATION$6);
                return target;
            }
        }
        
        /**
         * Unsets the "basicAuthentication" element
         */
        public void unsetBasicAuthentication()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(BASICAUTHENTICATION$6, 0);
            }
        }
        /**
         * An XML clientCertificate(@http://www.bea.com/wli/control/dynamicProperties).
         *
         * This is a complex type.
         */
        public static class ClientCertificateImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.ClientCertificate
        {
            
            public ClientCertificateImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType);
            }
            
            private static final javax.xml.namespace.QName KEYALIAS$0 = 
                new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "keyAlias");
            private static final javax.xml.namespace.QName KEYPASSWORD$2 = 
                new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "keyPassword");
            private static final javax.xml.namespace.QName KEYSTORELOCATION$4 = 
                new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "keystoreLocation");
            private static final javax.xml.namespace.QName KEYSTOREPASSWORD$6 = 
                new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "keystorePassword");
            private static final javax.xml.namespace.QName KEYSTORETYPE$8 = 
                new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "keystoreType");
            
            
            /**
             * Gets the "keyAlias" element
             */
            public java.lang.String getKeyAlias()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYALIAS$0, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "keyAlias" element
             */
            public org.apache.xmlbeans.XmlString xgetKeyAlias()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYALIAS$0, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "keyAlias" element
             */
            public void setKeyAlias(java.lang.String keyAlias)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYALIAS$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(KEYALIAS$0);
                    }
                    target.setStringValue(keyAlias);
                }
            }
            
            /**
             * Sets (as xml) the "keyAlias" element
             */
            public void xsetKeyAlias(org.apache.xmlbeans.XmlString keyAlias)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYALIAS$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(KEYALIAS$0);
                    }
                    target.set(keyAlias);
                }
            }
            
            /**
             * Gets the "keyPassword" element
             */
            public java.lang.String getKeyPassword()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYPASSWORD$2, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "keyPassword" element
             */
            public org.apache.xmlbeans.XmlString xgetKeyPassword()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYPASSWORD$2, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "keyPassword" element
             */
            public void setKeyPassword(java.lang.String keyPassword)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYPASSWORD$2, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(KEYPASSWORD$2);
                    }
                    target.setStringValue(keyPassword);
                }
            }
            
            /**
             * Sets (as xml) the "keyPassword" element
             */
            public void xsetKeyPassword(org.apache.xmlbeans.XmlString keyPassword)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYPASSWORD$2, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(KEYPASSWORD$2);
                    }
                    target.set(keyPassword);
                }
            }
            
            /**
             * Gets the "keystoreLocation" element
             */
            public java.lang.String getKeystoreLocation()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYSTORELOCATION$4, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "keystoreLocation" element
             */
            public org.apache.xmlbeans.XmlString xgetKeystoreLocation()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYSTORELOCATION$4, 0);
                    return target;
                }
            }
            
            /**
             * True if has "keystoreLocation" element
             */
            public boolean isSetKeystoreLocation()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    return get_store().count_elements(KEYSTORELOCATION$4) != 0;
                }
            }
            
            /**
             * Sets the "keystoreLocation" element
             */
            public void setKeystoreLocation(java.lang.String keystoreLocation)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYSTORELOCATION$4, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(KEYSTORELOCATION$4);
                    }
                    target.setStringValue(keystoreLocation);
                }
            }
            
            /**
             * Sets (as xml) the "keystoreLocation" element
             */
            public void xsetKeystoreLocation(org.apache.xmlbeans.XmlString keystoreLocation)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYSTORELOCATION$4, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(KEYSTORELOCATION$4);
                    }
                    target.set(keystoreLocation);
                }
            }
            
            /**
             * Unsets the "keystoreLocation" element
             */
            public void unsetKeystoreLocation()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    get_store().remove_element(KEYSTORELOCATION$4, 0);
                }
            }
            
            /**
             * Gets the "keystorePassword" element
             */
            public java.lang.String getKeystorePassword()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYSTOREPASSWORD$6, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "keystorePassword" element
             */
            public org.apache.xmlbeans.XmlString xgetKeystorePassword()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYSTOREPASSWORD$6, 0);
                    return target;
                }
            }
            
            /**
             * True if has "keystorePassword" element
             */
            public boolean isSetKeystorePassword()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    return get_store().count_elements(KEYSTOREPASSWORD$6) != 0;
                }
            }
            
            /**
             * Sets the "keystorePassword" element
             */
            public void setKeystorePassword(java.lang.String keystorePassword)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYSTOREPASSWORD$6, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(KEYSTOREPASSWORD$6);
                    }
                    target.setStringValue(keystorePassword);
                }
            }
            
            /**
             * Sets (as xml) the "keystorePassword" element
             */
            public void xsetKeystorePassword(org.apache.xmlbeans.XmlString keystorePassword)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYSTOREPASSWORD$6, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(KEYSTOREPASSWORD$6);
                    }
                    target.set(keystorePassword);
                }
            }
            
            /**
             * Unsets the "keystorePassword" element
             */
            public void unsetKeystorePassword()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    get_store().remove_element(KEYSTOREPASSWORD$6, 0);
                }
            }
            
            /**
             * Gets the "keystoreType" element
             */
            public java.lang.String getKeystoreType()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYSTORETYPE$8, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "keystoreType" element
             */
            public org.apache.xmlbeans.XmlString xgetKeystoreType()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYSTORETYPE$8, 0);
                    return target;
                }
            }
            
            /**
             * True if has "keystoreType" element
             */
            public boolean isSetKeystoreType()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    return get_store().count_elements(KEYSTORETYPE$8) != 0;
                }
            }
            
            /**
             * Sets the "keystoreType" element
             */
            public void setKeystoreType(java.lang.String keystoreType)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYSTORETYPE$8, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(KEYSTORETYPE$8);
                    }
                    target.setStringValue(keystoreType);
                }
            }
            
            /**
             * Sets (as xml) the "keystoreType" element
             */
            public void xsetKeystoreType(org.apache.xmlbeans.XmlString keystoreType)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYSTORETYPE$8, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(KEYSTORETYPE$8);
                    }
                    target.set(keystoreType);
                }
            }
            
            /**
             * Unsets the "keystoreType" element
             */
            public void unsetKeystoreType()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    get_store().remove_element(KEYSTORETYPE$8, 0);
                }
            }
        }
        /**
         * An XML basicAuthentication(@http://www.bea.com/wli/control/dynamicProperties).
         *
         * This is a complex type.
         */
        public static class BasicAuthenticationImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.ServiceBrokerControlPropertiesDocument.ServiceBrokerControlProperties.BasicAuthentication
        {
            
            public BasicAuthenticationImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType);
            }
            
            private static final javax.xml.namespace.QName USERNAME$0 = 
                new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "username");
            private static final javax.xml.namespace.QName PASSWORD$2 = 
                new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "password");
            
            
            /**
             * Gets the "username" element
             */
            public java.lang.String getUsername()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERNAME$0, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "username" element
             */
            public org.apache.xmlbeans.XmlString xgetUsername()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USERNAME$0, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "username" element
             */
            public void setUsername(java.lang.String username)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERNAME$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERNAME$0);
                    }
                    target.setStringValue(username);
                }
            }
            
            /**
             * Sets (as xml) the "username" element
             */
            public void xsetUsername(org.apache.xmlbeans.XmlString username)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USERNAME$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(USERNAME$0);
                    }
                    target.set(username);
                }
            }
            
            /**
             * Gets the "password" element
             */
            public java.lang.String getPassword()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PASSWORD$2, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "password" element
             */
            public org.apache.xmlbeans.XmlString xgetPassword()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PASSWORD$2, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "password" element
             */
            public void setPassword(java.lang.String password)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PASSWORD$2, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PASSWORD$2);
                    }
                    target.setStringValue(password);
                }
            }
            
            /**
             * Sets (as xml) the "password" element
             */
            public void xsetPassword(org.apache.xmlbeans.XmlString password)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PASSWORD$2, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PASSWORD$2);
                    }
                    target.set(password);
                }
            }
        }
    }
}
