/*
 * An XML document type.
 * Localname: AddRefusedFault
 * Namespace: http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.servicegroup.impl;
/**
 * A document containing one AddRefusedFault(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class AddRefusedFaultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultDocument
{
    
    public AddRefusedFaultDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ADDREFUSEDFAULT$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd", "AddRefusedFault");
    
    
    /**
     * Gets the "AddRefusedFault" element
     */
    public org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType getAddRefusedFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType)get_store().find_element_user(ADDREFUSEDFAULT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "AddRefusedFault" element
     */
    public void setAddRefusedFault(org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType addRefusedFault)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType)get_store().find_element_user(ADDREFUSEDFAULT$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType)get_store().add_element_user(ADDREFUSEDFAULT$0);
            }
            target.set(addRefusedFault);
        }
    }
    
    /**
     * Appends and returns a new empty "AddRefusedFault" element
     */
    public org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType addNewAddRefusedFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType target = null;
            target = (org.activemq.ws.xmlbeans.servicegroup.AddRefusedFaultType)get_store().add_element_user(ADDREFUSEDFAULT$0);
            return target;
        }
    }
}
