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