/*
 * An XML document type.
 * Localname: rosettanet-service-defaults
 * Namespace: http://www.bea.com/2003/03/wli/tpm
 * Java type: com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument
 *
 * Automatically generated - do not modify.
 */
package com.bea.x2003.x03.wli.tpm.impl;
/**
 * A document containing one rosettanet-service-defaults(@http://www.bea.com/2003/03/wli/tpm) element.
 *
 * This is a complex type.
 */
public class RosettanetServiceDefaultsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument
{
    
    public RosettanetServiceDefaultsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ROSETTANETSERVICEDEFAULTS$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "rosettanet-service-defaults");
    
    
    /**
     * Gets the "rosettanet-service-defaults" element
     */
    public com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults getRosettanetServiceDefaults()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults target = null;
            target = (com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults)get_store().find_element_user(ROSETTANETSERVICEDEFAULTS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "rosettanet-service-defaults" element
     */
    public void setRosettanetServiceDefaults(com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults rosettanetServiceDefaults)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults target = null;
            target = (com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults)get_store().find_element_user(ROSETTANETSERVICEDEFAULTS$0, 0);
            if (target == null)
            {
                target = (com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults)get_store().add_element_user(ROSETTANETSERVICEDEFAULTS$0);
            }
            target.set(rosettanetServiceDefaults);
        }
    }
    
    /**
     * Appends and returns a new empty "rosettanet-service-defaults" element
     */
    public com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults addNewRosettanetServiceDefaults()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults target = null;
            target = (com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults)get_store().add_element_user(ROSETTANETSERVICEDEFAULTS$0);
            return target;
        }
    }
    /**
     * An XML rosettanet-service-defaults(@http://www.bea.com/2003/03/wli/tpm).
     *
     * This is a complex type.
     */
    public static class RosettanetServiceDefaultsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.x2003.x03.wli.tpm.RosettanetServiceDefaultsDocument.RosettanetServiceDefaults
    {
        
        public RosettanetServiceDefaultsImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName SERVICECONTENTSCHEMA$0 = 
            new javax.xml.namespace.QName("", "service-content-schema");
        private static final javax.xml.namespace.QName USEDTDVALIDATION$2 = 
            new javax.xml.namespace.QName("", "use-dtd-validation");
        private static final javax.xml.namespace.QName VALIDATESERVICECONTENT$4 = 
            new javax.xml.namespace.QName("", "validate-service-content");
        private static final javax.xml.namespace.QName VALIDATESERVICEHEADER$6 = 
            new javax.xml.namespace.QName("", "validate-service-header");
        
        
        /**
         * Gets the "service-content-schema" attribute
         */
        public java.lang.String getServiceContentSchema()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERVICECONTENTSCHEMA$0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "service-content-schema" attribute
         */
        public org.apache.xmlbeans.XmlString xgetServiceContentSchema()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SERVICECONTENTSCHEMA$0);
                return target;
            }
        }
        
        /**
         * True if has "service-content-schema" attribute
         */
        public boolean isSetServiceContentSchema()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(SERVICECONTENTSCHEMA$0) != null;
            }
        }
        
        /**
         * Sets the "service-content-schema" attribute
         */
        public void setServiceContentSchema(java.lang.String serviceContentSchema)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERVICECONTENTSCHEMA$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SERVICECONTENTSCHEMA$0);
                }
                target.setStringValue(serviceContentSchema);
            }
        }
        
        /**
         * Sets (as xml) the "service-content-schema" attribute
         */
        public void xsetServiceContentSchema(org.apache.xmlbeans.XmlString serviceContentSchema)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SERVICECONTENTSCHEMA$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(SERVICECONTENTSCHEMA$0);
                }
                target.set(serviceContentSchema);
            }
        }
        
        /**
         * Unsets the "service-content-schema" attribute
         */
        public void unsetServiceContentSchema()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(SERVICECONTENTSCHEMA$0);
            }
        }
        
        /**
         * Gets the "use-dtd-validation" attribute
         */
        public boolean getUseDtdValidation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USEDTDVALIDATION$2);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "use-dtd-validation" attribute
         */
        public org.apache.xmlbeans.XmlBoolean xgetUseDtdValidation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(USEDTDVALIDATION$2);
                return target;
            }
        }
        
        /**
         * True if has "use-dtd-validation" attribute
         */
        public boolean isSetUseDtdValidation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(USEDTDVALIDATION$2) != null;
            }
        }
        
        /**
         * Sets the "use-dtd-validation" attribute
         */
        public void setUseDtdValidation(boolean useDtdValidation)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USEDTDVALIDATION$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(USEDTDVALIDATION$2);
                }
                target.setBooleanValue(useDtdValidation);
            }
        }
        
        /**
         * Sets (as xml) the "use-dtd-validation" attribute
         */
        public void xsetUseDtdValidation(org.apache.xmlbeans.XmlBoolean useDtdValidation)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(USEDTDVALIDATION$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(USEDTDVALIDATION$2);
                }
                target.set(useDtdValidation);
            }
        }
        
        /**
         * Unsets the "use-dtd-validation" attribute
         */
        public void unsetUseDtdValidation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(USEDTDVALIDATION$2);
            }
        }
        
        /**
         * Gets the "validate-service-content" attribute
         */
        public boolean getValidateServiceContent()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALIDATESERVICECONTENT$4);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "validate-service-content" attribute
         */
        public org.apache.xmlbeans.XmlBoolean xgetValidateServiceContent()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(VALIDATESERVICECONTENT$4);
                return target;
            }
        }
        
        /**
         * True if has "validate-service-content" attribute
         */
        public boolean isSetValidateServiceContent()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(VALIDATESERVICECONTENT$4) != null;
            }
        }
        
        /**
         * Sets the "validate-service-content" attribute
         */
        public void setValidateServiceContent(boolean validateServiceContent)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALIDATESERVICECONTENT$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALIDATESERVICECONTENT$4);
                }
                target.setBooleanValue(validateServiceContent);
            }
        }
        
        /**
         * Sets (as xml) the "validate-service-content" attribute
         */
        public void xsetValidateServiceContent(org.apache.xmlbeans.XmlBoolean validateServiceContent)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(VALIDATESERVICECONTENT$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(VALIDATESERVICECONTENT$4);
                }
                target.set(validateServiceContent);
            }
        }
        
        /**
         * Unsets the "validate-service-content" attribute
         */
        public void unsetValidateServiceContent()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(VALIDATESERVICECONTENT$4);
            }
        }
        
        /**
         * Gets the "validate-service-header" attribute
         */
        public boolean getValidateServiceHeader()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALIDATESERVICEHEADER$6);
                if (target == null)
                {
                    return false;
                }
                return target.getBooleanValue();
            }
        }
        
        /**
         * Gets (as xml) the "validate-service-header" attribute
         */
        public org.apache.xmlbeans.XmlBoolean xgetValidateServiceHeader()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(VALIDATESERVICEHEADER$6);
                return target;
            }
        }
        
        /**
         * True if has "validate-service-header" attribute
         */
        public boolean isSetValidateServiceHeader()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(VALIDATESERVICEHEADER$6) != null;
            }
        }
        
        /**
         * Sets the "validate-service-header" attribute
         */
        public void setValidateServiceHeader(boolean validateServiceHeader)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALIDATESERVICEHEADER$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALIDATESERVICEHEADER$6);
                }
                target.setBooleanValue(validateServiceHeader);
            }
        }
        
        /**
         * Sets (as xml) the "validate-service-header" attribute
         */
        public void xsetValidateServiceHeader(org.apache.xmlbeans.XmlBoolean validateServiceHeader)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(VALIDATESERVICEHEADER$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(VALIDATESERVICEHEADER$6);
                }
                target.set(validateServiceHeader);
            }
        }
        
        /**
         * Unsets the "validate-service-header" attribute
         */
        public void unsetValidateServiceHeader()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(VALIDATESERVICEHEADER$6);
            }
        }
    }
}
