/*
 * XML Type:  ReceivedType
 * Namespace: http://schemas.xmlsoap.org/ws/2002/07/utility
 * Java type: org.xmlsoap.schemas.ws.x2002.x07.utility.ReceivedType
 *
 * Automatically generated - do not modify.
 */
package org.xmlsoap.schemas.ws.x2002.x07.utility.impl;

/**
 * An XML ReceivedType(@http://schemas.xmlsoap.org/ws/2002/07/utility).
 * <p/>
 * This is an atomic type that is a restriction of org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime.
 */
public class ReceivedTypeImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements org.xmlsoap.schemas.ws.x2002.x07.utility.ReceivedType {

    public ReceivedTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType, true);
    }

    protected ReceivedTypeImpl(org.apache.xmlbeans.SchemaType sType, boolean b) {
        super(sType, b);
    }

    private static final javax.xml.namespace.QName VALUETYPE$0 =
            new javax.xml.namespace.QName("", "ValueType");
    private static final javax.xml.namespace.QName ID$2 =
            new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2002/07/utility", "Id");
    private static final javax.xml.namespace.QName DELAY$4 =
            new javax.xml.namespace.QName("", "Delay");
    private static final javax.xml.namespace.QName ACTOR$6 =
            new javax.xml.namespace.QName("", "Actor");


    /**
     * Gets the "ValueType" attribute
     */
    public javax.xml.namespace.QName getValueType() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(VALUETYPE$0);
            if (target == null) {
                return null;
            }
            return target.getQNameValue();
        }
    }

    /**
     * Gets (as xml) the "ValueType" attribute
     */
    public org.apache.xmlbeans.XmlQName xgetValueType() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName) get_store().find_attribute_user(VALUETYPE$0);
            return target;
        }
    }

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

    /**
     * Sets the "ValueType" attribute
     */
    public void setValueType(javax.xml.namespace.QName valueType) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(VALUETYPE$0);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_attribute_user(VALUETYPE$0);
            }
            target.setQNameValue(valueType);
        }
    }

    /**
     * Sets (as xml) the "ValueType" attribute
     */
    public void xsetValueType(org.apache.xmlbeans.XmlQName valueType) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName) get_store().find_attribute_user(VALUETYPE$0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlQName) get_store().add_attribute_user(VALUETYPE$0);
            }
            target.set(valueType);
        }
    }

    /**
     * Unsets the "ValueType" attribute
     */
    public void unsetValueType() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(VALUETYPE$0);
        }
    }

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

    /**
     * Gets (as xml) the "Id" attribute
     */
    public org.apache.xmlbeans.XmlID xgetId() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlID target = null;
            target = (org.apache.xmlbeans.XmlID) get_store().find_attribute_user(ID$2);
            return target;
        }
    }

    /**
     * True if has "Id" attribute
     */
    public boolean isSetId() {
        synchronized (monitor()) {
            check_orphaned();
            return get_store().find_attribute_user(ID$2) != null;
        }
    }

    /**
     * Sets the "Id" attribute
     */
    public void setId(java.lang.String id) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(ID$2);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_attribute_user(ID$2);
            }
            target.setStringValue(id);
        }
    }

    /**
     * Sets (as xml) the "Id" attribute
     */
    public void xsetId(org.apache.xmlbeans.XmlID id) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlID target = null;
            target = (org.apache.xmlbeans.XmlID) get_store().find_attribute_user(ID$2);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlID) get_store().add_attribute_user(ID$2);
            }
            target.set(id);
        }
    }

    /**
     * Unsets the "Id" attribute
     */
    public void unsetId() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(ID$2);
        }
    }

    /**
     * Gets the "Delay" attribute
     */
    public int getDelay() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(DELAY$4);
            if (target == null) {
                return 0;
            }
            return target.getIntValue();
        }
    }

    /**
     * Gets (as xml) the "Delay" attribute
     */
    public org.apache.xmlbeans.XmlInt xgetDelay() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt) get_store().find_attribute_user(DELAY$4);
            return target;
        }
    }

    /**
     * True if has "Delay" attribute
     */
    public boolean isSetDelay() {
        synchronized (monitor()) {
            check_orphaned();
            return get_store().find_attribute_user(DELAY$4) != null;
        }
    }

    /**
     * Sets the "Delay" attribute
     */
    public void setDelay(int delay) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(DELAY$4);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_attribute_user(DELAY$4);
            }
            target.setIntValue(delay);
        }
    }

    /**
     * Sets (as xml) the "Delay" attribute
     */
    public void xsetDelay(org.apache.xmlbeans.XmlInt delay) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt) get_store().find_attribute_user(DELAY$4);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlInt) get_store().add_attribute_user(DELAY$4);
            }
            target.set(delay);
        }
    }

    /**
     * Unsets the "Delay" attribute
     */
    public void unsetDelay() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(DELAY$4);
        }
    }

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

    /**
     * Gets (as xml) the "Actor" attribute
     */
    public org.apache.xmlbeans.XmlAnyURI xgetActor() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_attribute_user(ACTOR$6);
            return target;
        }
    }

    /**
     * Sets the "Actor" attribute
     */
    public void setActor(java.lang.String actor) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue) get_store().find_attribute_user(ACTOR$6);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue) get_store().add_attribute_user(ACTOR$6);
            }
            target.setStringValue(actor);
        }
    }

    /**
     * Sets (as xml) the "Actor" attribute
     */
    public void xsetActor(org.apache.xmlbeans.XmlAnyURI actor) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI) get_store().find_attribute_user(ACTOR$6);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlAnyURI) get_store().add_attribute_user(ACTOR$6);
            }
            target.set(actor);
        }
    }
}
