/*
 * An XML document type.
 * Localname: ReplyTo
 * Namespace: http://schemas.xmlsoap.org/ws/2004/08/addressing
 * Java type: org.codehaus.activemq.ws.schema.addressing.ReplyToDocument
 *
 * Automatically generated - do not modify.
 */
package org.codehaus.activemq.ws.schema.addressing.impl;

/**
 * A document containing one ReplyTo(@http://schemas.xmlsoap.org/ws/2004/08/addressing) element.
 * <p/>
 * This is a complex type.
 */
public class ReplyToDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.codehaus.activemq.ws.schema.addressing.ReplyToDocument {

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

    private static final javax.xml.namespace.QName REPLYTO$0 =
            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2004/08/addressing", "ReplyTo");


    /**
     * Gets the "ReplyTo" element
     */
    public org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType getReplyTo() {
        synchronized (monitor()) {
            check_orphaned();
            org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType target = null;
            target = (org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType) get_store().find_element_user(REPLYTO$0, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }

    /**
     * Sets the "ReplyTo" element
     */
    public void setReplyTo(org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType replyTo) {
        synchronized (monitor()) {
            check_orphaned();
            org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType target = null;
            target = (org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType) get_store().find_element_user(REPLYTO$0, 0);
            if (target == null) {
                target = (org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType) get_store().add_element_user(REPLYTO$0);
            }
            target.set(replyTo);
        }
    }

    /**
     * Appends and returns a new empty "ReplyTo" element
     */
    public org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType addNewReplyTo() {
        synchronized (monitor()) {
            check_orphaned();
            org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType target = null;
            target = (org.codehaus.activemq.ws.schema.addressing.EndpointReferenceType) get_store().add_element_user(REPLYTO$0);
            return target;
        }
    }
}
