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