/*
 * XML Type:  AckRequestedType
 * Namespace: http://schemas.xmlsoap.org/ws/2004/03/rm
 * Java type: org.xmlsoap.schemas.ws.x2004.x03.rm.AckRequestedType
 *
 * Automatically generated - do not modify.
 */
package org.xmlsoap.schemas.ws.x2004.x03.rm.impl;

/**
 * An XML AckRequestedType(@http://schemas.xmlsoap.org/ws/2004/03/rm).
 * <p/>
 * This is a complex type.
 */
public class AckRequestedTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.xmlsoap.schemas.ws.x2004.x03.rm.AckRequestedType {

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

    private static final javax.xml.namespace.QName IDENTIFIER$0 =
            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2002/07/utility", "Identifier");
    private static final javax.xml.namespace.QName MAXMESSAGENUMBERUSED$2 =
            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2004/03/rm", "MaxMessageNumberUsed");


    /**
     * Gets the "Identifier" element
     */
    public org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI getIdentifier() {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI target = null;
            target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI) get_store().find_element_user(IDENTIFIER$0, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }

    /**
     * Sets the "Identifier" element
     */
    public void setIdentifier(org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI identifier) {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI target = null;
            target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI) get_store().find_element_user(IDENTIFIER$0, 0);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI) get_store().add_element_user(IDENTIFIER$0);
            }
            target.set(identifier);
        }
    }

    /**
     * Appends and returns a new empty "Identifier" element
     */
    public org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI addNewIdentifier() {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI target = null;
            target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI) get_store().add_element_user(IDENTIFIER$0);
            return target;
        }
    }

    /**
     * Gets the "MaxMessageNumberUsed" element
     */
    public java.math.BigInteger getMaxMessageNumberUsed() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(MAXMESSAGENUMBERUSED$2, 0);
            if (target == null) {
                return null;
            }
            return target.getBigIntegerValue();
        }
    }

    /**
     * Gets (as xml) the "MaxMessageNumberUsed" element
     */
    public org.apache.xmlbeans.XmlUnsignedLong xgetMaxMessageNumberUsed() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedLong target = null;
            target = (org.apache.xmlbeans.XmlUnsignedLong) get_store().find_element_user(MAXMESSAGENUMBERUSED$2, 0);
            return target;
        }
    }

    /**
     * True if has "MaxMessageNumberUsed" element
     */
    public boolean isSetMaxMessageNumberUsed() {
        synchronized (monitor()) {
            check_orphaned();
            return get_store().count_elements(MAXMESSAGENUMBERUSED$2) != 0;
        }
    }

    /**
     * Sets the "MaxMessageNumberUsed" element
     */
    public void setMaxMessageNumberUsed(java.math.BigInteger maxMessageNumberUsed) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(MAXMESSAGENUMBERUSED$2, 0);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_element_user(MAXMESSAGENUMBERUSED$2);
            }
            target.setBigIntegerValue(maxMessageNumberUsed);
        }
    }

    /**
     * Sets (as xml) the "MaxMessageNumberUsed" element
     */
    public void xsetMaxMessageNumberUsed(org.apache.xmlbeans.XmlUnsignedLong maxMessageNumberUsed) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlUnsignedLong target = null;
            target = (org.apache.xmlbeans.XmlUnsignedLong) get_store().find_element_user(MAXMESSAGENUMBERUSED$2, 0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlUnsignedLong) get_store().add_element_user(MAXMESSAGENUMBERUSED$2);
            }
            target.set(maxMessageNumberUsed);
        }
    }

    /**
     * Unsets the "MaxMessageNumberUsed" element
     */
    public void unsetMaxMessageNumberUsed() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_element(MAXMESSAGENUMBERUSED$2, 0);
        }
    }
}
