/*
 * An XML document type.
 * Localname: PauseSubscriptionResponse
 * Namespace: http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.notification.base.PauseSubscriptionResponseDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.notification.base.impl;
/**
 * A document containing one PauseSubscriptionResponse(@http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class PauseSubscriptionResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.notification.base.PauseSubscriptionResponseDocument
{
    
    public PauseSubscriptionResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PAUSESUBSCRIPTIONRESPONSE$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "PauseSubscriptionResponse");
    
    
    /**
     * Gets the "PauseSubscriptionResponse" element
     */
    public org.apache.xmlbeans.XmlObject getPauseSubscriptionResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(PAUSESUBSCRIPTIONRESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "PauseSubscriptionResponse" element
     */
    public void setPauseSubscriptionResponse(org.apache.xmlbeans.XmlObject pauseSubscriptionResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(PAUSESUBSCRIPTIONRESPONSE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(PAUSESUBSCRIPTIONRESPONSE$0);
            }
            target.set(pauseSubscriptionResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "PauseSubscriptionResponse" element
     */
    public org.apache.xmlbeans.XmlObject addNewPauseSubscriptionResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(PAUSESUBSCRIPTIONRESPONSE$0);
            return target;
        }
    }
}
