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

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

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

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


    /**
     * Gets the "Expires" element
     */
    public org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime getExpires() {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime target = null;
            target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime) get_store().find_element_user(EXPIRES$0, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }

    /**
     * Sets the "Expires" element
     */
    public void setExpires(org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime expires) {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime target = null;
            target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime) get_store().find_element_user(EXPIRES$0, 0);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime) get_store().add_element_user(EXPIRES$0);
            }
            target.set(expires);
        }
    }

    /**
     * Appends and returns a new empty "Expires" element
     */
    public org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime addNewExpires() {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime target = null;
            target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime) get_store().add_element_user(EXPIRES$0);
            return target;
        }
    }
}
