/*
 * An XML document type.
 * Localname: extended-property-set
 * Namespace: http://www.bea.com/2003/03/wli/tpm
 * Java type: com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument
 *
 * Automatically generated - do not modify.
 */
package com.bea.x2003.x03.wli.tpm.impl;
/**
 * A document containing one extended-property-set(@http://www.bea.com/2003/03/wli/tpm) element.
 *
 * This is a complex type.
 */
public class ExtendedPropertySetDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument
{
    
    public ExtendedPropertySetDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EXTENDEDPROPERTYSET$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/2003/03/wli/tpm", "extended-property-set");
    
    
    /**
     * Gets the "extended-property-set" element
     */
    public com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet getExtendedPropertySet()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet target = null;
            target = (com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet)get_store().find_element_user(EXTENDEDPROPERTYSET$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "extended-property-set" element
     */
    public void setExtendedPropertySet(com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet extendedPropertySet)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet target = null;
            target = (com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet)get_store().find_element_user(EXTENDEDPROPERTYSET$0, 0);
            if (target == null)
            {
                target = (com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet)get_store().add_element_user(EXTENDEDPROPERTYSET$0);
            }
            target.set(extendedPropertySet);
        }
    }
    
    /**
     * Appends and returns a new empty "extended-property-set" element
     */
    public com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet addNewExtendedPropertySet()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet target = null;
            target = (com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet)get_store().add_element_user(EXTENDEDPROPERTYSET$0);
            return target;
        }
    }
    /**
     * An XML extended-property-set(@http://www.bea.com/2003/03/wli/tpm).
     *
     * This is a complex type.
     */
    public static class ExtendedPropertySetImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.x2003.x03.wli.tpm.ExtendedPropertySetDocument.ExtendedPropertySet
    {
        
        public ExtendedPropertySetImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName NAME$0 = 
            new javax.xml.namespace.QName("", "name");
        private static final javax.xml.namespace.QName DESCRIPTION$2 = 
            new javax.xml.namespace.QName("", "description");
        private static final javax.xml.namespace.QName NOTES$4 = 
            new javax.xml.namespace.QName("", "notes");
        
        
        /**
         * Gets the "name" attribute
         */
        public java.lang.String getName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "name" attribute
         */
        public org.apache.xmlbeans.XmlString xgetName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0);
                return target;
            }
        }
        
        /**
         * Sets the "name" attribute
         */
        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_attribute_user(NAME$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
                }
                target.setStringValue(name);
            }
        }
        
        /**
         * Sets (as xml) the "name" attribute
         */
        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_attribute_user(NAME$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$0);
                }
                target.set(name);
            }
        }
        
        /**
         * Gets the "description" attribute
         */
        public java.lang.String getDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$2);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "description" attribute
         */
        public org.apache.xmlbeans.XmlString xgetDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$2);
                return target;
            }
        }
        
        /**
         * True if has "description" attribute
         */
        public boolean isSetDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(DESCRIPTION$2) != null;
            }
        }
        
        /**
         * Sets the "description" attribute
         */
        public void setDescription(java.lang.String description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$2);
                }
                target.setStringValue(description);
            }
        }
        
        /**
         * Sets (as xml) the "description" attribute
         */
        public void xsetDescription(org.apache.xmlbeans.XmlString description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESCRIPTION$2);
                }
                target.set(description);
            }
        }
        
        /**
         * Unsets the "description" attribute
         */
        public void unsetDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(DESCRIPTION$2);
            }
        }
        
        /**
         * Gets the "notes" attribute
         */
        public java.lang.String getNotes()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NOTES$4);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "notes" attribute
         */
        public org.apache.xmlbeans.XmlString xgetNotes()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NOTES$4);
                return target;
            }
        }
        
        /**
         * True if has "notes" attribute
         */
        public boolean isSetNotes()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(NOTES$4) != null;
            }
        }
        
        /**
         * Sets the "notes" attribute
         */
        public void setNotes(java.lang.String notes)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NOTES$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NOTES$4);
                }
                target.setStringValue(notes);
            }
        }
        
        /**
         * Sets (as xml) the "notes" attribute
         */
        public void xsetNotes(org.apache.xmlbeans.XmlString notes)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NOTES$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NOTES$4);
                }
                target.set(notes);
            }
        }
        
        /**
         * Unsets the "notes" attribute
         */
        public void unsetNotes()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(NOTES$4);
            }
        }
    }
}
