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