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