/*
 * An XML document type.
 * Localname: auth_code
 * Namespace: http://www.acme.com/validationService
 * Java type: com.acme.validationService.AuthCodeDocument
 *
 * Automatically generated - do not modify.
 */
package com.acme.validationService.impl;
/**
 * A document containing one auth_code(@http://www.acme.com/validationService) element.
 *
 * This is a complex type.
 */
public class AuthCodeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.acme.validationService.AuthCodeDocument
{
    
    public AuthCodeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName AUTHCODE$0 = 
        new javax.xml.namespace.QName("http://www.acme.com/validationService", "auth_code");
    
    
    /**
     * Gets the "auth_code" element
     */
    public java.lang.String getAuthCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUTHCODE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "auth_code" element
     */
    public org.apache.xmlbeans.XmlString xgetAuthCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(AUTHCODE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "auth_code" element
     */
    public void setAuthCode(java.lang.String authCode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUTHCODE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AUTHCODE$0);
            }
            target.setStringValue(authCode);
        }
    }
    
    /**
     * Sets (as xml) the "auth_code" element
     */
    public void xsetAuthCode(org.apache.xmlbeans.XmlString authCode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(AUTHCODE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(AUTHCODE$0);
            }
            target.set(authCode);
        }
    }
}
