/*
 * XML Type:  MetadataDescriptorRefType
 * Namespace: http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.resource.md.MetadataDescriptorRefType
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.md.impl;
/**
 * An XML MetadataDescriptorRefType(@http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd).
 *
 * This is a complex type.
 */
public class MetadataDescriptorRefTypeImpl extends org.activemq.ws.xmlbeans.resource.md.impl.DocumentedTypeImpl implements org.activemq.ws.xmlbeans.resource.md.MetadataDescriptorRefType
{
    
    public MetadataDescriptorRefTypeImpl(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 METADATADESCIRPTORLOCATION$2 = 
        new javax.xml.namespace.QName("", "metadataDescirptorLocation");
    
    
    /**
     * Gets the "name" attribute
     */
    public javax.xml.namespace.QName 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.getQNameValue();
        }
    }
    
    /**
     * Gets (as xml) the "name" attribute
     */
    public org.apache.xmlbeans.XmlQName xgetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(NAME$0);
            return target;
        }
    }
    
    /**
     * Sets the "name" attribute
     */
    public void setName(javax.xml.namespace.QName 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.setQNameValue(name);
        }
    }
    
    /**
     * Sets (as xml) the "name" attribute
     */
    public void xsetName(org.apache.xmlbeans.XmlQName name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(NAME$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(NAME$0);
            }
            target.set(name);
        }
    }
    
    /**
     * Gets the "metadataDescirptorLocation" attribute
     */
    public java.util.List getMetadataDescirptorLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(METADATADESCIRPTORLOCATION$2);
            if (target == null)
            {
                return null;
            }
            return target.getListValue();
        }
    }
    
    /**
     * Gets (as xml) the "metadataDescirptorLocation" attribute
     */
    public org.activemq.ws.xmlbeans.resource.md.PairsOfURIType xgetMetadataDescirptorLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.PairsOfURIType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.PairsOfURIType)get_store().find_attribute_user(METADATADESCIRPTORLOCATION$2);
            return target;
        }
    }
    
    /**
     * True if has "metadataDescirptorLocation" attribute
     */
    public boolean isSetMetadataDescirptorLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(METADATADESCIRPTORLOCATION$2) != null;
        }
    }
    
    /**
     * Sets the "metadataDescirptorLocation" attribute
     */
    public void setMetadataDescirptorLocation(java.util.List metadataDescirptorLocation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(METADATADESCIRPTORLOCATION$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(METADATADESCIRPTORLOCATION$2);
            }
            target.setListValue(metadataDescirptorLocation);
        }
    }
    
    /**
     * Sets (as xml) the "metadataDescirptorLocation" attribute
     */
    public void xsetMetadataDescirptorLocation(org.activemq.ws.xmlbeans.resource.md.PairsOfURIType metadataDescirptorLocation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.PairsOfURIType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.PairsOfURIType)get_store().find_attribute_user(METADATADESCIRPTORLOCATION$2);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.resource.md.PairsOfURIType)get_store().add_attribute_user(METADATADESCIRPTORLOCATION$2);
            }
            target.set(metadataDescirptorLocation);
        }
    }
    
    /**
     * Unsets the "metadataDescirptorLocation" attribute
     */
    public void unsetMetadataDescirptorLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(METADATADESCIRPTORLOCATION$2);
        }
    }
}
