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

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

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

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


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

    /**
     * Sets the "Identifier" element
     */
    public void setIdentifier(org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI identifier) {
        synchronized (monitor()) {
            check_orphaned();
            org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI target = null;
            target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI) get_store().find_element_user(IDENTIFIER$0, 0);
            if (target == null) {
                target = (org.xmlsoap.schemas.ws.x2002.x07.utility.AttributedURI) get_store().add_element_user(IDENTIFIER$0);
            }
            target.set(identifier);
        }
    }

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