/*
 * An XML document type.
 * Localname: ProcessControlProperties
 * Namespace: http://www.bea.com/wli/control/dynamicProperties
 * Java type: com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument
 *
 * Automatically generated - do not modify.
 */
package com.bea.wli.control.dynamicProperties.impl;
/**
 * A document containing one ProcessControlProperties(@http://www.bea.com/wli/control/dynamicProperties) element.
 *
 * This is a complex type.
 */
public class ProcessControlPropertiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument
{
    
    public ProcessControlPropertiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PROCESSCONTROLPROPERTIES$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "ProcessControlProperties");
    
    
    /**
     * Gets the "ProcessControlProperties" element
     */
    public com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties getProcessControlProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties target = null;
            target = (com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties)get_store().find_element_user(PROCESSCONTROLPROPERTIES$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "ProcessControlProperties" element
     */
    public void setProcessControlProperties(com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties processControlProperties)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties target = null;
            target = (com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties)get_store().find_element_user(PROCESSCONTROLPROPERTIES$0, 0);
            if (target == null)
            {
                target = (com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties)get_store().add_element_user(PROCESSCONTROLPROPERTIES$0);
            }
            target.set(processControlProperties);
        }
    }
    
    /**
     * Appends and returns a new empty "ProcessControlProperties" element
     */
    public com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties addNewProcessControlProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties target = null;
            target = (com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties)get_store().add_element_user(PROCESSCONTROLPROPERTIES$0);
            return target;
        }
    }
    /**
     * An XML ProcessControlProperties(@http://www.bea.com/wli/control/dynamicProperties).
     *
     * This is a complex type.
     */
    public static class ProcessControlPropertiesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.ProcessControlPropertiesDocument.ProcessControlProperties
    {
        
        public ProcessControlPropertiesImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName TARGETURI$0 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "targetURI");
        private static final javax.xml.namespace.QName USERNAME$2 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "username");
        private static final javax.xml.namespace.QName PASSWORD$4 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "password");
        
        
        /**
         * Gets the "targetURI" element
         */
        public java.lang.String getTargetURI()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TARGETURI$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "targetURI" element
         */
        public org.apache.xmlbeans.XmlString xgetTargetURI()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TARGETURI$0, 0);
                return target;
            }
        }
        
        /**
         * True if has "targetURI" element
         */
        public boolean isSetTargetURI()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(TARGETURI$0) != 0;
            }
        }
        
        /**
         * Sets the "targetURI" element
         */
        public void setTargetURI(java.lang.String targetURI)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TARGETURI$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TARGETURI$0);
                }
                target.setStringValue(targetURI);
            }
        }
        
        /**
         * Sets (as xml) the "targetURI" element
         */
        public void xsetTargetURI(org.apache.xmlbeans.XmlString targetURI)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TARGETURI$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TARGETURI$0);
                }
                target.set(targetURI);
            }
        }
        
        /**
         * Unsets the "targetURI" element
         */
        public void unsetTargetURI()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(TARGETURI$0, 0);
            }
        }
        
        /**
         * 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$2, 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$2, 0);
                return target;
            }
        }
        
        /**
         * True if has "username" element
         */
        public boolean isSetUsername()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(USERNAME$2) != 0;
            }
        }
        
        /**
         * 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$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERNAME$2);
                }
                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$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(USERNAME$2);
                }
                target.set(username);
            }
        }
        
        /**
         * Unsets the "username" element
         */
        public void unsetUsername()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(USERNAME$2, 0);
            }
        }
        
        /**
         * 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$4, 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$4, 0);
                return target;
            }
        }
        
        /**
         * True if has "password" element
         */
        public boolean isSetPassword()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(PASSWORD$4) != 0;
            }
        }
        
        /**
         * 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$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PASSWORD$4);
                }
                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$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PASSWORD$4);
                }
                target.set(password);
            }
        }
        
        /**
         * Unsets the "password" element
         */
        public void unsetPassword()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(PASSWORD$4, 0);
            }
        }
    }
}
