/*
 * An XML document type.
 * Localname: DestroyResponse
 * Namespace: http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.lifetime.impl;
/**
 * A document containing one DestroyResponse(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class DestroyResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument
{
    
    public DestroyResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DESTROYRESPONSE$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd", "DestroyResponse");
    
    
    /**
     * Gets the "DestroyResponse" element
     */
    public org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse getDestroyResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse target = null;
            target = (org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse)get_store().find_element_user(DESTROYRESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "DestroyResponse" element
     */
    public void setDestroyResponse(org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse destroyResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse target = null;
            target = (org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse)get_store().find_element_user(DESTROYRESPONSE$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse)get_store().add_element_user(DESTROYRESPONSE$0);
            }
            target.set(destroyResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "DestroyResponse" element
     */
    public org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse addNewDestroyResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse target = null;
            target = (org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse)get_store().add_element_user(DESTROYRESPONSE$0);
            return target;
        }
    }
    /**
     * An XML DestroyResponse(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd).
     *
     * This is a complex type.
     */
    public static class DestroyResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.lifetime.DestroyResponseDocument.DestroyResponse
    {
        
        public DestroyResponseImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        
    }
}
