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