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