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