/*
 * An XML document type.
 * Localname: ResourceNotDestroyedFault
 * 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.ResourceNotDestroyedFaultDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.lifetime.impl;
/**
 * A document containing one ResourceNotDestroyedFault(@http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd) element.
 *
 * This is a complex type.
 */
public class ResourceNotDestroyedFaultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultDocument
{
    
    public ResourceNotDestroyedFaultDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RESOURCENOTDESTROYEDFAULT$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd", "ResourceNotDestroyedFault");
    
    
    /**
     * Gets the "ResourceNotDestroyedFault" element
     */
    public org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType getResourceNotDestroyedFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType target = null;
            target = (org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType)get_store().find_element_user(RESOURCENOTDESTROYEDFAULT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "ResourceNotDestroyedFault" element
     */
    public void setResourceNotDestroyedFault(org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType resourceNotDestroyedFault)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType target = null;
            target = (org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType)get_store().find_element_user(RESOURCENOTDESTROYEDFAULT$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType)get_store().add_element_user(RESOURCENOTDESTROYEDFAULT$0);
            }
            target.set(resourceNotDestroyedFault);
        }
    }
    
    /**
     * Appends and returns a new empty "ResourceNotDestroyedFault" element
     */
    public org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType addNewResourceNotDestroyedFault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType target = null;
            target = (org.activemq.ws.xmlbeans.resource.lifetime.ResourceNotDestroyedFaultType)get_store().add_element_user(RESOURCENOTDESTROYEDFAULT$0);
            return target;
        }
    }
}
