/*
 * An XML document type.
 * Localname: ReplyAfter
 * Namespace: http://schemas.xmlsoap.org/ws/2004/08/addressing
 * Java type: org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.addressing.v2004_08.impl;
/**
 * A document containing one ReplyAfter(@http://schemas.xmlsoap.org/ws/2004/08/addressing) element.
 *
 * This is a complex type.
 */
public class ReplyAfterDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.addressing.v2004_08.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.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType getReplyAfter()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType target = null;
            target = (org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType)get_store().find_element_user(REPLYAFTER$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "ReplyAfter" element
     */
    public void setReplyAfter(org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType replyAfter)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType target = null;
            target = (org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType)get_store().find_element_user(REPLYAFTER$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType)get_store().add_element_user(REPLYAFTER$0);
            }
            target.set(replyAfter);
        }
    }
    
    /**
     * Appends and returns a new empty "ReplyAfter" element
     */
    public org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType addNewReplyAfter()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType target = null;
            target = (org.activemq.ws.xmlbeans.addressing.v2004_08.ReplyAfterType)get_store().add_element_user(REPLYAFTER$0);
            return target;
        }
    }
}
