/*
 * An XML document type.
 * Localname: PauseFailedFault
 * 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.PauseFailedFaultDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.notification.base.impl;
/**
 * A document containing one PauseFailedFault(@http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class PauseFailedFaultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultDocument
{
    
    public PauseFailedFaultDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PAUSEFAILEDFAULT$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "PauseFailedFault");
    
    
    /**
     * Gets the "PauseFailedFault" element
     */
    public org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType getPauseFailedFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType target = null;
            target = (org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType)get_store().find_element_user(PAUSEFAILEDFAULT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "PauseFailedFault" element
     */
    public void setPauseFailedFault(org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType pauseFailedFault)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType target = null;
            target = (org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType)get_store().find_element_user(PAUSEFAILEDFAULT$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType)get_store().add_element_user(PAUSEFAILEDFAULT$0);
            }
            target.set(pauseFailedFault);
        }
    }
    
    /**
     * Appends and returns a new empty "PauseFailedFault" element
     */
    public org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType addNewPauseFailedFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType target = null;
            target = (org.activemq.ws.xmlbeans.notification.base.PauseFailedFaultType)get_store().add_element_user(PAUSEFAILEDFAULT$0);
            return target;
        }
    }
}
