/*
 * An XML attribute type.
 * Localname: MustUnderstand
 * Namespace: http://schemas.xmlsoap.org/ws/2002/07/utility
 * Java type: org.xmlsoap.schemas.ws.x2002.x07.utility.MustUnderstandAttribute
 *
 * Automatically generated - do not modify.
 */
package org.xmlsoap.schemas.ws.x2002.x07.utility.impl;

/**
 * A document containing one MustUnderstand(@http://schemas.xmlsoap.org/ws/2002/07/utility) attribute.
 * <p/>
 * This is a complex type.
 */
public class MustUnderstandAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.xmlsoap.schemas.ws.x2002.x07.utility.MustUnderstandAttribute {

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

    private static final javax.xml.namespace.QName MUSTUNDERSTAND$0 =
            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2002/07/utility", "MustUnderstand");


    /**
     * Gets the "MustUnderstand" attribute
     */
    public boolean getMustUnderstand() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(MUSTUNDERSTAND$0);
            if (target == null) {
                return false;
            }
            return target.getBooleanValue();
        }
    }

    /**
     * Gets (as xml) the "MustUnderstand" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetMustUnderstand() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean) get_store().find_attribute_user(MUSTUNDERSTAND$0);
            return target;
        }
    }

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

    /**
     * Sets the "MustUnderstand" attribute
     */
    public void setMustUnderstand(boolean mustUnderstand) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(MUSTUNDERSTAND$0);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_attribute_user(MUSTUNDERSTAND$0);
            }
            target.setBooleanValue(mustUnderstand);
        }
    }

    /**
     * Sets (as xml) the "MustUnderstand" attribute
     */
    public void xsetMustUnderstand(org.apache.xmlbeans.XmlBoolean mustUnderstand) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean) get_store().find_attribute_user(MUSTUNDERSTAND$0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlBoolean) get_store().add_attribute_user(MUSTUNDERSTAND$0);
            }
            target.set(mustUnderstand);
        }
    }

    /**
     * Unsets the "MustUnderstand" attribute
     */
    public void unsetMustUnderstand() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(MUSTUNDERSTAND$0);
        }
    }
}
