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