/*
 * An XML document type.
 * Localname: replayResponse
 * Namespace: http://www.apache.org/ode/pmapi/types/2006/08/02/
 * Java type: org.apache.ode.bpel.pmapi.ReplayResponseDocument
 *
 * Automatically generated - do not modify.
 */
package org.apache.ode.bpel.pmapi.impl;
/**
 * A document containing one replayResponse(@http://www.apache.org/ode/pmapi/types/2006/08/02/) element.
 *
 * This is a complex type.
 */
public class ReplayResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.ode.bpel.pmapi.ReplayResponseDocument
{
    
    public ReplayResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName REPLAYRESPONSE$0 = 
        new javax.xml.namespace.QName("http://www.apache.org/ode/pmapi/types/2006/08/02/", "replayResponse");
    
    
    /**
     * Gets the "replayResponse" element
     */
    public org.apache.ode.bpel.pmapi.ReplayResponse getReplayResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.ode.bpel.pmapi.ReplayResponse target = null;
            target = (org.apache.ode.bpel.pmapi.ReplayResponse)get_store().find_element_user(REPLAYRESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "replayResponse" element
     */
    public void setReplayResponse(org.apache.ode.bpel.pmapi.ReplayResponse replayResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.ode.bpel.pmapi.ReplayResponse target = null;
            target = (org.apache.ode.bpel.pmapi.ReplayResponse)get_store().find_element_user(REPLAYRESPONSE$0, 0);
            if (target == null)
            {
                target = (org.apache.ode.bpel.pmapi.ReplayResponse)get_store().add_element_user(REPLAYRESPONSE$0);
            }
            target.set(replayResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "replayResponse" element
     */
    public org.apache.ode.bpel.pmapi.ReplayResponse addNewReplayResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.ode.bpel.pmapi.ReplayResponse target = null;
            target = (org.apache.ode.bpel.pmapi.ReplayResponse)get_store().add_element_user(REPLAYRESPONSE$0);
            return target;
        }
    }
}
