/*
 * An XML document type.
 * Localname: SequenceFault
 * Namespace: http://schemas.xmlsoap.org/ws/2004/03/rm
 * Java type: org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultDocument
 *
 * Automatically generated - do not modify.
 */
package org.xmlsoap.schemas.ws.x2004.x03.rm.impl;

/**
 * A document containing one SequenceFault(@http://schemas.xmlsoap.org/ws/2004/03/rm) element.
 * <p/>
 * This is a complex type.
 */
public class SequenceFaultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultDocument {

    public SequenceFaultDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }

    private static final javax.xml.namespace.QName SEQUENCEFAULT$0 =
            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2004/03/rm", "SequenceFault");


    /**
     * Gets the "SequenceFault" element
     */
    public org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType getSequenceFault() {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType target = null;
            target = (org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType) get_store().find_element_user(SEQUENCEFAULT$0, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }

    /**
     * Sets the "SequenceFault" element
     */
    public void setSequenceFault(org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType sequenceFault) {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType target = null;
            target = (org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType) get_store().find_element_user(SEQUENCEFAULT$0, 0);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType) get_store().add_element_user(SEQUENCEFAULT$0);
            }
            target.set(sequenceFault);
        }
    }

    /**
     * Appends and returns a new empty "SequenceFault" element
     */
    public org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType addNewSequenceFault() {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType target = null;
            target = (org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceFaultType) get_store().add_element_user(SEQUENCEFAULT$0);
            return target;
        }
    }
}
