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