/*
 * An XML document type.
 * Localname: QueryExpression
 * 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.QueryExpressionDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.properties.impl;
/**
 * A document containing one QueryExpression(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class QueryExpressionDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.properties.QueryExpressionDocument
{
    
    public QueryExpressionDocumentImpl(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;
        }
    }
}
