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

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

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

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


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

    /**
     * Sets the "ReplyAfter" element
     */
    public void setReplyAfter(org.codehaus.activemq.ws.schema.addressing.ReplyAfterType replyAfter) {
        synchronized (monitor()) {
            check_orphaned();
            org.codehaus.activemq.ws.schema.addressing.ReplyAfterType target = null;
            target = (org.codehaus.activemq.ws.schema.addressing.ReplyAfterType) get_store().find_element_user(REPLYAFTER$0, 0);
            if (target == null) {
                target = (org.codehaus.activemq.ws.schema.addressing.ReplyAfterType) get_store().add_element_user(REPLYAFTER$0);
            }
            target.set(replyAfter);
        }
    }

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