/*
 * An XML attribute type.
 * Localname: metadataDescriptor
 * Namespace: http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.resource.md.MetadataDescriptorAttribute
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.md.impl;
/**
 * A document containing one metadataDescriptor(@http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd) attribute.
 *
 * This is a complex type.
 */
public class MetadataDescriptorAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.md.MetadataDescriptorAttribute
{
    
    public MetadataDescriptorAttributeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName METADATADESCRIPTOR$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd", "metadataDescriptor");
    
    
    /**
     * Gets the "metadataDescriptor" attribute
     */
    public javax.xml.namespace.QName getMetadataDescriptor()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(METADATADESCRIPTOR$0);
            if (target == null)
            {
                return null;
            }
            return target.getQNameValue();
        }
    }
    
    /**
     * Gets (as xml) the "metadataDescriptor" attribute
     */
    public org.apache.xmlbeans.XmlQName xgetMetadataDescriptor()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(METADATADESCRIPTOR$0);
            return target;
        }
    }
    
    /**
     * True if has "metadataDescriptor" attribute
     */
    public boolean isSetMetadataDescriptor()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(METADATADESCRIPTOR$0) != null;
        }
    }
    
    /**
     * Sets the "metadataDescriptor" attribute
     */
    public void setMetadataDescriptor(javax.xml.namespace.QName metadataDescriptor)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(METADATADESCRIPTOR$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(METADATADESCRIPTOR$0);
            }
            target.setQNameValue(metadataDescriptor);
        }
    }
    
    /**
     * Sets (as xml) the "metadataDescriptor" attribute
     */
    public void xsetMetadataDescriptor(org.apache.xmlbeans.XmlQName metadataDescriptor)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(METADATADESCRIPTOR$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(METADATADESCRIPTOR$0);
            }
            target.set(metadataDescriptor);
        }
    }
    
    /**
     * Unsets the "metadataDescriptor" attribute
     */
    public void unsetMetadataDescriptor()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(METADATADESCRIPTOR$0);
        }
    }
}
