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

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

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

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


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

    /**
     * Sets the "TerminateSequence" element
     */
    public void setTerminateSequence(org.xmlsoap.schemas.ws.x2004.x03.rm.HandshakeType terminateSequence) {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2004.x03.rm.HandshakeType target = null;
            target = (org.xmlsoap.schemas.ws.x2004.x03.rm.HandshakeType) get_store().find_element_user(TERMINATESEQUENCE$0, 0);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2004.x03.rm.HandshakeType) get_store().add_element_user(TERMINATESEQUENCE$0);
            }
            target.set(terminateSequence);
        }
    }

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