/*
 * An XML document type.
 * Localname: JMSControlProperties
 * Namespace: http://www.bea.com/wli/control/dynamicProperties
 * Java type: com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument
 *
 * Automatically generated - do not modify.
 */
package com.bea.wli.control.dynamicProperties.impl;
/**
 * A document containing one JMSControlProperties(@http://www.bea.com/wli/control/dynamicProperties) element.
 *
 * This is a complex type.
 */
public class JMSControlPropertiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument
{
    
    public JMSControlPropertiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName JMSCONTROLPROPERTIES$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "JMSControlProperties");
    
    
    /**
     * Gets the "JMSControlProperties" element
     */
    public com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties getJMSControlProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties target = null;
            target = (com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties)get_store().find_element_user(JMSCONTROLPROPERTIES$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "JMSControlProperties" element
     */
    public void setJMSControlProperties(com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties jmsControlProperties)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties target = null;
            target = (com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties)get_store().find_element_user(JMSCONTROLPROPERTIES$0, 0);
            if (target == null)
            {
                target = (com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties)get_store().add_element_user(JMSCONTROLPROPERTIES$0);
            }
            target.set(jmsControlProperties);
        }
    }
    
    /**
     * Appends and returns a new empty "JMSControlProperties" element
     */
    public com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties addNewJMSControlProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties target = null;
            target = (com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties)get_store().add_element_user(JMSCONTROLPROPERTIES$0);
            return target;
        }
    }
    /**
     * An XML JMSControlProperties(@http://www.bea.com/wli/control/dynamicProperties).
     *
     * This is a complex type.
     */
    public static class JMSControlPropertiesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties
    {
        
        public JMSControlPropertiesImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName PROPERTY$0 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "property");
        private static final javax.xml.namespace.QName SENDTYPE$2 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "send-type");
        private static final javax.xml.namespace.QName SENDJNDINAME$4 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "send-jndi-name");
        private static final javax.xml.namespace.QName SENDCORRELATIONPROPERTY$6 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "send-correlation-property");
        private static final javax.xml.namespace.QName SEPARATETRANSACTION$8 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "separate-transaction");
        private static final javax.xml.namespace.QName JMSCORRELATIONID$10 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "jmscorrelationid");
        private static final javax.xml.namespace.QName JMSTYPE$12 = 
            new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "jmstype");
        
        
        /**
         * Gets a List of "property" elements
         */
        public java.util.List<com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property> getPropertyList()
        {
            final class PropertyList extends java.util.AbstractList<com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property>
            {
                public com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property get(int i)
                    { return JMSControlPropertiesImpl.this.getPropertyArray(i); }
                
                public com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property set(int i, com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property o)
                {
                    com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property old = JMSControlPropertiesImpl.this.getPropertyArray(i);
                    JMSControlPropertiesImpl.this.setPropertyArray(i, o);
                    return old;
                }
                
                public void add(int i, com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property o)
                    { JMSControlPropertiesImpl.this.insertNewProperty(i).set(o); }
                
                public com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property remove(int i)
                {
                    com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property old = JMSControlPropertiesImpl.this.getPropertyArray(i);
                    JMSControlPropertiesImpl.this.removeProperty(i);
                    return old;
                }
                
                public int size()
                    { return JMSControlPropertiesImpl.this.sizeOfPropertyArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new PropertyList();
            }
        }
        
        /**
         * Gets array of all "property" elements
         */
        public com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property[] getPropertyArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(PROPERTY$0, targetList);
                com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property[] result = new com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "property" element
         */
        public com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property getPropertyArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property target = null;
                target = (com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property)get_store().find_element_user(PROPERTY$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "property" element
         */
        public int sizeOfPropertyArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(PROPERTY$0);
            }
        }
        
        /**
         * Sets array of all "property" element
         */
        public void setPropertyArray(com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property[] propertyArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(propertyArray, PROPERTY$0);
            }
        }
        
        /**
         * Sets ith "property" element
         */
        public void setPropertyArray(int i, com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property property)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property target = null;
                target = (com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property)get_store().find_element_user(PROPERTY$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(property);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "property" element
         */
        public com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property insertNewProperty(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property target = null;
                target = (com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property)get_store().insert_element_user(PROPERTY$0, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "property" element
         */
        public com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property addNewProperty()
        {
            synchronized (monitor())
            {
                check_orphaned();
                com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property target = null;
                target = (com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property)get_store().add_element_user(PROPERTY$0);
                return target;
            }
        }
        
        /**
         * Removes the ith "property" element
         */
        public void removeProperty(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(PROPERTY$0, i);
            }
        }
        
        /**
         * Gets the "send-type" element
         */
        public java.lang.String getSendType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDTYPE$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "send-type" element
         */
        public org.apache.xmlbeans.XmlString xgetSendType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDTYPE$2, 0);
                return target;
            }
        }
        
        /**
         * True if has "send-type" element
         */
        public boolean isSetSendType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SENDTYPE$2) != 0;
            }
        }
        
        /**
         * Sets the "send-type" element
         */
        public void setSendType(java.lang.String sendType)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDTYPE$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SENDTYPE$2);
                }
                target.setStringValue(sendType);
            }
        }
        
        /**
         * Sets (as xml) the "send-type" element
         */
        public void xsetSendType(org.apache.xmlbeans.XmlString sendType)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDTYPE$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SENDTYPE$2);
                }
                target.set(sendType);
            }
        }
        
        /**
         * Unsets the "send-type" element
         */
        public void unsetSendType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SENDTYPE$2, 0);
            }
        }
        
        /**
         * Gets the "send-jndi-name" element
         */
        public java.lang.String getSendJndiName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDJNDINAME$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "send-jndi-name" element
         */
        public org.apache.xmlbeans.XmlString xgetSendJndiName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDJNDINAME$4, 0);
                return target;
            }
        }
        
        /**
         * True if has "send-jndi-name" element
         */
        public boolean isSetSendJndiName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SENDJNDINAME$4) != 0;
            }
        }
        
        /**
         * Sets the "send-jndi-name" element
         */
        public void setSendJndiName(java.lang.String sendJndiName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDJNDINAME$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SENDJNDINAME$4);
                }
                target.setStringValue(sendJndiName);
            }
        }
        
        /**
         * Sets (as xml) the "send-jndi-name" element
         */
        public void xsetSendJndiName(org.apache.xmlbeans.XmlString sendJndiName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDJNDINAME$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SENDJNDINAME$4);
                }
                target.set(sendJndiName);
            }
        }
        
        /**
         * Unsets the "send-jndi-name" element
         */
        public void unsetSendJndiName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SENDJNDINAME$4, 0);
            }
        }
        
        /**
         * Gets the "send-correlation-property" element
         */
        public java.lang.String getSendCorrelationProperty()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDCORRELATIONPROPERTY$6, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "send-correlation-property" element
         */
        public org.apache.xmlbeans.XmlString xgetSendCorrelationProperty()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDCORRELATIONPROPERTY$6, 0);
                return target;
            }
        }
        
        /**
         * True if has "send-correlation-property" element
         */
        public boolean isSetSendCorrelationProperty()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SENDCORRELATIONPROPERTY$6) != 0;
            }
        }
        
        /**
         * Sets the "send-correlation-property" element
         */
        public void setSendCorrelationProperty(java.lang.String sendCorrelationProperty)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDCORRELATIONPROPERTY$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SENDCORRELATIONPROPERTY$6);
                }
                target.setStringValue(sendCorrelationProperty);
            }
        }
        
        /**
         * Sets (as xml) the "send-correlation-property" element
         */
        public void xsetSendCorrelationProperty(org.apache.xmlbeans.XmlString sendCorrelationProperty)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDCORRELATIONPROPERTY$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SENDCORRELATIONPROPERTY$6);
                }
                target.set(sendCorrelationProperty);
            }
        }
        
        /**
         * Unsets the "send-correlation-property" element
         */
        public void unsetSendCorrelationProperty()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SENDCORRELATIONPROPERTY$6, 0);
            }
        }
        
        /**
         * Gets the "separate-transaction" element
         */
        public java.lang.String getSeparateTransaction()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SEPARATETRANSACTION$8, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "separate-transaction" element
         */
        public org.apache.xmlbeans.XmlString xgetSeparateTransaction()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SEPARATETRANSACTION$8, 0);
                return target;
            }
        }
        
        /**
         * True if has "separate-transaction" element
         */
        public boolean isSetSeparateTransaction()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SEPARATETRANSACTION$8) != 0;
            }
        }
        
        /**
         * Sets the "separate-transaction" element
         */
        public void setSeparateTransaction(java.lang.String separateTransaction)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SEPARATETRANSACTION$8, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SEPARATETRANSACTION$8);
                }
                target.setStringValue(separateTransaction);
            }
        }
        
        /**
         * Sets (as xml) the "separate-transaction" element
         */
        public void xsetSeparateTransaction(org.apache.xmlbeans.XmlString separateTransaction)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SEPARATETRANSACTION$8, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SEPARATETRANSACTION$8);
                }
                target.set(separateTransaction);
            }
        }
        
        /**
         * Unsets the "separate-transaction" element
         */
        public void unsetSeparateTransaction()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SEPARATETRANSACTION$8, 0);
            }
        }
        
        /**
         * Gets the "jmscorrelationid" element
         */
        public java.lang.String getJmscorrelationid()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JMSCORRELATIONID$10, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "jmscorrelationid" element
         */
        public org.apache.xmlbeans.XmlString xgetJmscorrelationid()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(JMSCORRELATIONID$10, 0);
                return target;
            }
        }
        
        /**
         * True if has "jmscorrelationid" element
         */
        public boolean isSetJmscorrelationid()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(JMSCORRELATIONID$10) != 0;
            }
        }
        
        /**
         * Sets the "jmscorrelationid" element
         */
        public void setJmscorrelationid(java.lang.String jmscorrelationid)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JMSCORRELATIONID$10, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JMSCORRELATIONID$10);
                }
                target.setStringValue(jmscorrelationid);
            }
        }
        
        /**
         * Sets (as xml) the "jmscorrelationid" element
         */
        public void xsetJmscorrelationid(org.apache.xmlbeans.XmlString jmscorrelationid)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(JMSCORRELATIONID$10, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(JMSCORRELATIONID$10);
                }
                target.set(jmscorrelationid);
            }
        }
        
        /**
         * Unsets the "jmscorrelationid" element
         */
        public void unsetJmscorrelationid()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(JMSCORRELATIONID$10, 0);
            }
        }
        
        /**
         * Gets the "jmstype" element
         */
        public java.lang.String getJmstype()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JMSTYPE$12, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "jmstype" element
         */
        public org.apache.xmlbeans.XmlString xgetJmstype()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(JMSTYPE$12, 0);
                return target;
            }
        }
        
        /**
         * True if has "jmstype" element
         */
        public boolean isSetJmstype()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(JMSTYPE$12) != 0;
            }
        }
        
        /**
         * Sets the "jmstype" element
         */
        public void setJmstype(java.lang.String jmstype)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JMSTYPE$12, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JMSTYPE$12);
                }
                target.setStringValue(jmstype);
            }
        }
        
        /**
         * Sets (as xml) the "jmstype" element
         */
        public void xsetJmstype(org.apache.xmlbeans.XmlString jmstype)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(JMSTYPE$12, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(JMSTYPE$12);
                }
                target.set(jmstype);
            }
        }
        
        /**
         * Unsets the "jmstype" element
         */
        public void unsetJmstype()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(JMSTYPE$12, 0);
            }
        }
        /**
         * An XML property(@http://www.bea.com/wli/control/dynamicProperties).
         *
         * This is a complex type.
         */
        public static class PropertyImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.JMSControlPropertiesDocument.JMSControlProperties.Property
        {
            
            public PropertyImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType);
            }
            
            private static final javax.xml.namespace.QName NAME$0 = 
                new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "Name");
            private static final javax.xml.namespace.QName VALUE$2 = 
                new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "Value");
            
            
            /**
             * Gets the "Name" element
             */
            public java.lang.String getName()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "Name" element
             */
            public org.apache.xmlbeans.XmlString xgetName()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "Name" element
             */
            public void setName(java.lang.String name)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
                    }
                    target.setStringValue(name);
                }
            }
            
            /**
             * Sets (as xml) the "Name" element
             */
            public void xsetName(org.apache.xmlbeans.XmlString name)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);
                    }
                    target.set(name);
                }
            }
            
            /**
             * Gets the "Value" element
             */
            public java.lang.String getValue()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "Value" element
             */
            public org.apache.xmlbeans.XmlString xgetValue()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$2, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "Value" element
             */
            public void setValue(java.lang.String value)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$2);
                    }
                    target.setStringValue(value);
                }
            }
            
            /**
             * Sets (as xml) the "Value" element
             */
            public void xsetValue(org.apache.xmlbeans.XmlString value)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$2, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALUE$2);
                    }
                    target.set(value);
                }
            }
        }
    }
}
