/*
 * An XML document type.
 * Localname: SupportedDeliveryMode
 * Namespace: http://schemas.xmlsoap.org/ws/2004/08/eventing
 * Java type: org.codehaus.activemq.ws.schema.eventing.SupportedDeliveryModeDocument
 *
 * Automatically generated - do not modify.
 */
package org.codehaus.activemq.ws.schema.eventing.impl;

/**
 * A document containing one SupportedDeliveryMode(@http://schemas.xmlsoap.org/ws/2004/08/eventing) element.
 * <p/>
 * This is a complex type.
 */
public class SupportedDeliveryModeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.codehaus.activemq.ws.schema.eventing.SupportedDeliveryModeDocument {

    public SupportedDeliveryModeDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }

    private static final javax.xml.namespace.QName SUPPORTEDDELIVERYMODE$0 =
            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "SupportedDeliveryMode");


    /**
     * Gets the "SupportedDeliveryMode" element
     */
    public java.lang.String getSupportedDeliveryMode() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(SUPPORTEDDELIVERYMODE$0, 0);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }

    /**
     * Gets (as xml) the "SupportedDeliveryMode" element
     */
    public org.apache.xmlbeans.XmlAnyURI xgetSupportedDeliveryMode() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_element_user(SUPPORTEDDELIVERYMODE$0, 0);
            return target;
        }
    }

    /**
     * Sets the "SupportedDeliveryMode" element
     */
    public void setSupportedDeliveryMode(java.lang.String supportedDeliveryMode) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(SUPPORTEDDELIVERYMODE$0, 0);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_element_user(SUPPORTEDDELIVERYMODE$0);
            }
            target.setStringValue(supportedDeliveryMode);
        }
    }

    /**
     * Sets (as xml) the "SupportedDeliveryMode" element
     */
    public void xsetSupportedDeliveryMode(org.apache.xmlbeans.XmlAnyURI supportedDeliveryMode) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_element_user(SUPPORTEDDELIVERYMODE$0, 0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlAnyURI) get_store().add_element_user(SUPPORTEDDELIVERYMODE$0);
            }
            target.set(supportedDeliveryMode);
        }
    }
}
