/*
 * An XML document type.
 * Localname: Unsubscribe
 * Namespace: http://schemas.xmlsoap.org/ws/2004/08/eventing
 * Java type: org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.eventing.impl;
/**
 * A document containing one Unsubscribe(@http://schemas.xmlsoap.org/ws/2004/08/eventing) element.
 *
 * This is a complex type.
 */
public class UnsubscribeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument
{
    
    public UnsubscribeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName UNSUBSCRIBE$0 = 
        new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Unsubscribe");
    
    
    /**
     * Gets the "Unsubscribe" element
     */
    public org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe getUnsubscribe()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe target = null;
            target = (org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe)get_store().find_element_user(UNSUBSCRIBE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Unsubscribe" element
     */
    public void setUnsubscribe(org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe unsubscribe)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe target = null;
            target = (org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe)get_store().find_element_user(UNSUBSCRIBE$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe)get_store().add_element_user(UNSUBSCRIBE$0);
            }
            target.set(unsubscribe);
        }
    }
    
    /**
     * Appends and returns a new empty "Unsubscribe" element
     */
    public org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe addNewUnsubscribe()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe target = null;
            target = (org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe)get_store().add_element_user(UNSUBSCRIBE$0);
            return target;
        }
    }
    /**
     * An XML Unsubscribe(@http://schemas.xmlsoap.org/ws/2004/08/eventing).
     *
     * This is a complex type.
     */
    public static class UnsubscribeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.eventing.UnsubscribeDocument.Unsubscribe
    {
        
        public UnsubscribeImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        
    }
}
