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

/**
 * An XML DeliveryType(@http://schemas.xmlsoap.org/ws/2004/08/eventing).
 * <p/>
 * This is a complex type.
 */
public class DeliveryTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.codehaus.activemq.ws.schema.eventing.DeliveryType {

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

    private static final javax.xml.namespace.QName MODE$0 =
            new javax.xml.namespace.QName("", "Mode");


    /**
     * Gets the "Mode" attribute
     */
    public java.lang.String getMode() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(MODE$0);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }

    /**
     * Gets (as xml) the "Mode" attribute
     */
    public org.apache.xmlbeans.XmlAnyURI xgetMode() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_attribute_user(MODE$0);
            return target;
        }
    }

    /**
     * True if has "Mode" attribute
     */
    public boolean isSetMode() {
        synchronized (monitor()) {
            check_orphaned();
            return get_store().find_attribute_user(MODE$0) != null;
        }
    }

    /**
     * Sets the "Mode" attribute
     */
    public void setMode(java.lang.String mode) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(MODE$0);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_attribute_user(MODE$0);
            }
            target.setStringValue(mode);
        }
    }

    /**
     * Sets (as xml) the "Mode" attribute
     */
    public void xsetMode(org.apache.xmlbeans.XmlAnyURI mode) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_attribute_user(MODE$0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlAnyURI) get_store().add_attribute_user(MODE$0);
            }
            target.set(mode);
        }
    }

    /**
     * Unsets the "Mode" attribute
     */
    public void unsetMode() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(MODE$0);
        }
    }
}
