/*
 * An XML document type.
 * Localname: Action
 * Namespace: http://schemas.xmlsoap.org/ws/2003/03/addressing
 * Java type: org.activemq.ws.xmlbeans.addressing.v2003_03.ActionDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.addressing.v2003_03.impl;
/**
 * A document containing one Action(@http://schemas.xmlsoap.org/ws/2003/03/addressing) element.
 *
 * This is a complex type.
 */
public class ActionDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.addressing.v2003_03.ActionDocument
{
    
    public ActionDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ACTION$0 = 
        new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2003/03/addressing", "Action");
    
    
    /**
     * Gets the "Action" element
     */
    public org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI getAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI target = null;
            target = (org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI)get_store().find_element_user(ACTION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Action" element
     */
    public void setAction(org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI action)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI target = null;
            target = (org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI)get_store().find_element_user(ACTION$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI)get_store().add_element_user(ACTION$0);
            }
            target.set(action);
        }
    }
    
    /**
     * Appends and returns a new empty "Action" element
     */
    public org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI addNewAction()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI target = null;
            target = (org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI)get_store().add_element_user(ACTION$0);
            return target;
        }
    }
}
