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

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

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

    protected AttributedDateTimeImpl(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");


    /**
     * 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);
        }
    }
}
