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

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

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

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


    /**
     * Gets the "Created" element
     */
    public org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime getCreated() {
        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(CREATED$0, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }

    /**
     * Sets the "Created" element
     */
    public void setCreated(org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime created) {
        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(CREATED$0, 0);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime) get_store().add_element_user(CREATED$0);
            }
            target.set(created);
        }
    }

    /**
     * Appends and returns a new empty "Created" element
     */
    public org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedDateTime addNewCreated() {
        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(CREATED$0);
            return target;
        }
    }
}
