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

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

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

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


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

    /**
     * Sets the "SequenceTerminate" element
     */
    public void setSequenceTerminate(org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceTerminateDocument.SequenceTerminate sequenceTerminate) {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceTerminateDocument.SequenceTerminate target = null;
            target = (org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceTerminateDocument.SequenceTerminate) get_store().find_element_user(SEQUENCETERMINATE$0, 0);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceTerminateDocument.SequenceTerminate) get_store().add_element_user(SEQUENCETERMINATE$0);
            }
            target.set(sequenceTerminate);
        }
    }

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

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

        public SequenceTerminateImpl(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");


        /**
         * 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;
            }
        }
    }
}
