/*
 * An XML document type.
 * Localname: MessageID
 * Namespace: http://schemas.xmlsoap.org/ws/2003/03/addressing
 * Java type: org.activemq.ws.xmlbeans.addressing.v2003_03.MessageIDDocument
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.addressing.v2003_03.impl;
/**
 * A document containing one MessageID(@http://schemas.xmlsoap.org/ws/2003/03/addressing) element.
 *
 * This is a complex type.
 */
public class MessageIDDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.addressing.v2003_03.MessageIDDocument
{
    
    public MessageIDDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MESSAGEID$0 = 
        new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2003/03/addressing", "MessageID");
    
    
    /**
     * Gets the "MessageID" element
     */
    public org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI getMessageID()
    {
        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(MESSAGEID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "MessageID" element
     */
    public void setMessageID(org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI messageID)
    {
        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(MESSAGEID$0, 0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI)get_store().add_element_user(MESSAGEID$0);
            }
            target.set(messageID);
        }
    }
    
    /**
     * Appends and returns a new empty "MessageID" element
     */
    public org.activemq.ws.xmlbeans.addressing.v2003_03.AttributedURI addNewMessageID()
    {
        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(MESSAGEID$0);
            return target;
        }
    }
}
