/*
 * An XML document type.
 * Localname: QueryResourceProperties
 * 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.QueryResourcePropertiesDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.properties.impl;
/**
 * A document containing one QueryResourceProperties(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class QueryResourcePropertiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument
{
    
    public QueryResourcePropertiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName QUERYRESOURCEPROPERTIES$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd", "QueryResourceProperties");
    
    
    /**
     * Gets the "QueryResourceProperties" element
     */
    public org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties getQueryResourceProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties target = null;
            target = (org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties)get_store().find_element_user(QUERYRESOURCEPROPERTIES$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "QueryResourceProperties" element
     */
    public void setQueryResourceProperties(org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties queryResourceProperties)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties target = null;
            target = (org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties)get_store().find_element_user(QUERYRESOURCEPROPERTIES$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties)get_store().add_element_user(QUERYRESOURCEPROPERTIES$0);
            }
            target.set(queryResourceProperties);
        }
    }
    
    /**
     * Appends and returns a new empty "QueryResourceProperties" element
     */
    public org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties addNewQueryResourceProperties()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties target = null;
            target = (org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties)get_store().add_element_user(QUERYRESOURCEPROPERTIES$0);
            return target;
        }
    }
    /**
     * An XML QueryResourceProperties(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd).
     *
     * This is a complex type.
     */
    public static class QueryResourcePropertiesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.properties.QueryResourcePropertiesDocument.QueryResourceProperties
    {
        
        public QueryResourcePropertiesImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName QUERYEXPRESSION$0 = 
            new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd", "QueryExpression");
        
        
        /**
         * Gets the "QueryExpression" element
         */
        public org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType getQueryExpression()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType target = null;
                target = (org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType)get_store().find_element_user(QUERYEXPRESSION$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "QueryExpression" element
         */
        public void setQueryExpression(org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType queryExpression)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType target = null;
                target = (org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType)get_store().find_element_user(QUERYEXPRESSION$0, 0);
                if (target == null)
                {
                    target = (org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType)get_store().add_element_user(QUERYEXPRESSION$0);
                }
                target.set(queryExpression);
            }
        }
        
        /**
         * Appends and returns a new empty "QueryExpression" element
         */
        public org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType addNewQueryExpression()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType target = null;
                target = (org.activemq.ws.xmlbeans.resource.properties.QueryExpressionType)get_store().add_element_user(QUERYEXPRESSION$0);
                return target;
            }
        }
    }
}
