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

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

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

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


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

    /**
     * Sets the "AckRequested" element
     */
    public void setAckRequested(org.xmlsoap.schemas.ws.x2004.x03.rm.AckRequestedType ackRequested) {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2004.x03.rm.AckRequestedType target = null;
            target = (org.xmlsoap.schemas.ws.x2004.x03.rm.AckRequestedType) get_store().find_element_user(ACKREQUESTED$0, 0);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2004.x03.rm.AckRequestedType) get_store().add_element_user(ACKREQUESTED$0);
            }
            target.set(ackRequested);
        }
    }

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