/*
 * An XML attribute type.
 * Localname: metadataDescriptorLocation
 * Namespace: http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.resource.md.MetadataDescriptorLocationAttribute
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.md.impl;
/**
 * A document containing one metadataDescriptorLocation(@http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd) attribute.
 *
 * This is a complex type.
 */
public class MetadataDescriptorLocationAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.md.MetadataDescriptorLocationAttribute
{
    
    public MetadataDescriptorLocationAttributeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName METADATADESCRIPTORLOCATION$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd", "metadataDescriptorLocation");
    
    
    /**
     * Gets the "metadataDescriptorLocation" attribute
     */
    public java.util.List getMetadataDescriptorLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(METADATADESCRIPTORLOCATION$0);
            if (target == null)
            {
                return null;
            }
            return target.getListValue();
        }
    }
    
    /**
     * Gets (as xml) the "metadataDescriptorLocation" attribute
     */
    public org.activemq.ws.xmlbeans.resource.md.PairsOfURIType xgetMetadataDescriptorLocation()
    {
        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(METADATADESCRIPTORLOCATION$0);
            return target;
        }
    }
    
    /**
     * True if has "metadataDescriptorLocation" attribute
     */
    public boolean isSetMetadataDescriptorLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(METADATADESCRIPTORLOCATION$0) != null;
        }
    }
    
    /**
     * Sets the "metadataDescriptorLocation" attribute
     */
    public void setMetadataDescriptorLocation(java.util.List metadataDescriptorLocation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(METADATADESCRIPTORLOCATION$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(METADATADESCRIPTORLOCATION$0);
            }
            target.setListValue(metadataDescriptorLocation);
        }
    }
    
    /**
     * Sets (as xml) the "metadataDescriptorLocation" attribute
     */
    public void xsetMetadataDescriptorLocation(org.activemq.ws.xmlbeans.resource.md.PairsOfURIType metadataDescriptorLocation)
    {
        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(METADATADESCRIPTORLOCATION$0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.resource.md.PairsOfURIType)get_store().add_attribute_user(METADATADESCRIPTORLOCATION$0);
            }
            target.set(metadataDescriptorLocation);
        }
    }
    
    /**
     * Unsets the "metadataDescriptorLocation" attribute
     */
    public void unsetMetadataDescriptorLocation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(METADATADESCRIPTORLOCATION$0);
        }
    }
}
