/*
 * An XML attribute type.
 * Localname: ResourceProperties
 * Namespace: http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.resource.properties.ResourcePropertiesAttribute
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.properties.impl;
/**
 * A document containing one ResourceProperties(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd) attribute.
 *
 * This is a complex type.
 */
public class ResourcePropertiesAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.properties.ResourcePropertiesAttribute
{
    
    public ResourcePropertiesAttributeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RESOURCEPROPERTIES$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd", "ResourceProperties");
    
    
    /**
     * Gets the "ResourceProperties" attribute
     */
    public javax.xml.namespace.QName getResourceProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(RESOURCEPROPERTIES$0);
            if (target == null)
            {
                return null;
            }
            return target.getQNameValue();
        }
    }
    
    /**
     * Gets (as xml) the "ResourceProperties" attribute
     */
    public org.apache.xmlbeans.XmlQName xgetResourceProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(RESOURCEPROPERTIES$0);
            return target;
        }
    }
    
    /**
     * True if has "ResourceProperties" attribute
     */
    public boolean isSetResourceProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(RESOURCEPROPERTIES$0) != null;
        }
    }
    
    /**
     * Sets the "ResourceProperties" attribute
     */
    public void setResourceProperties(javax.xml.namespace.QName resourceProperties)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(RESOURCEPROPERTIES$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(RESOURCEPROPERTIES$0);
            }
            target.setQNameValue(resourceProperties);
        }
    }
    
    /**
     * Sets (as xml) the "ResourceProperties" attribute
     */
    public void xsetResourceProperties(org.apache.xmlbeans.XmlQName resourceProperties)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(RESOURCEPROPERTIES$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(RESOURCEPROPERTIES$0);
            }
            target.set(resourceProperties);
        }
    }
    
    /**
     * Unsets the "ResourceProperties" attribute
     */
    public void unsetResourceProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(RESOURCEPROPERTIES$0);
        }
    }
}
