All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.grants.apply.forms.sf424V10.impl.CountryDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: Country
 * Namespace: http://apply.grants.gov/forms/SF424-V1.0
 * Java type: gov.grants.apply.forms.sf424V10.CountryDocument
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.forms.sf424V10.impl;
/**
 * A document containing one Country(@http://apply.grants.gov/forms/SF424-V1.0) element.
 *
 * This is a complex type.
 */
public class CountryDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.CountryDocument
{
    private static final long serialVersionUID = 1L;
    
    public CountryDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName COUNTRY$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "Country");
    
    
    /**
     * Gets the "Country" element
     */
    public gov.grants.apply.system.universalCodesV10.CountryCodeType.Enum getCountry()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COUNTRY$0, 0);
            if (target == null)
            {
                return null;
            }
            return (gov.grants.apply.system.universalCodesV10.CountryCodeType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "Country" element
     */
    public gov.grants.apply.system.universalCodesV10.CountryCodeType xgetCountry()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.system.universalCodesV10.CountryCodeType target = null;
            target = (gov.grants.apply.system.universalCodesV10.CountryCodeType)get_store().find_element_user(COUNTRY$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "Country" element
     */
    public void setCountry(gov.grants.apply.system.universalCodesV10.CountryCodeType.Enum country)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COUNTRY$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COUNTRY$0);
            }
            target.setEnumValue(country);
        }
    }
    
    /**
     * Sets (as xml) the "Country" element
     */
    public void xsetCountry(gov.grants.apply.system.universalCodesV10.CountryCodeType country)
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.system.universalCodesV10.CountryCodeType target = null;
            target = (gov.grants.apply.system.universalCodesV10.CountryCodeType)get_store().find_element_user(COUNTRY$0, 0);
            if (target == null)
            {
                target = (gov.grants.apply.system.universalCodesV10.CountryCodeType)get_store().add_element_user(COUNTRY$0);
            }
            target.set(country);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy