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

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

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

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


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

    /**
     * Sets the "SequenceRef" element
     */
    public void setSequenceRef(org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceRefType sequenceRef) {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceRefType target = null;
            target = (org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceRefType) get_store().find_element_user(SEQUENCEREF$0, 0);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2004.x03.rm.SequenceRefType) get_store().add_element_user(SEQUENCEREF$0);
            }
            target.set(sequenceRef);
        }
    }

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