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