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