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