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

gov.grants.apply.system.agencyManagePackageV10.impl.OpenToApplicantDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: OpenToApplicant
 * Namespace: http://apply.grants.gov/system/AgencyManagePackage-V1.0
 * Java type: gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.system.agencyManagePackageV10.impl;
/**
 * A document containing one OpenToApplicant(@http://apply.grants.gov/system/AgencyManagePackage-V1.0) element.
 *
 * This is a complex type.
 */
public class OpenToApplicantDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument
{
    private static final long serialVersionUID = 1L;
    
    public OpenToApplicantDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName OPENTOAPPLICANT$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyManagePackage-V1.0", "OpenToApplicant");
    
    
    /**
     * Gets the "OpenToApplicant" element
     */
    public gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant.Enum getOpenToApplicant()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPENTOAPPLICANT$0, 0);
            if (target == null)
            {
                return null;
            }
            return (gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "OpenToApplicant" element
     */
    public gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant xgetOpenToApplicant()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant target = null;
            target = (gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant)get_store().find_element_user(OPENTOAPPLICANT$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "OpenToApplicant" element
     */
    public void setOpenToApplicant(gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant.Enum openToApplicant)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPENTOAPPLICANT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OPENTOAPPLICANT$0);
            }
            target.setEnumValue(openToApplicant);
        }
    }
    
    /**
     * Sets (as xml) the "OpenToApplicant" element
     */
    public void xsetOpenToApplicant(gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant openToApplicant)
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant target = null;
            target = (gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant)get_store().find_element_user(OPENTOAPPLICANT$0, 0);
            if (target == null)
            {
                target = (gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant)get_store().add_element_user(OPENTOAPPLICANT$0);
            }
            target.set(openToApplicant);
        }
    }
    /**
     * An XML OpenToApplicant(@http://apply.grants.gov/system/AgencyManagePackage-V1.0).
     *
     * This is an atomic type that is a restriction of gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument$OpenToApplicant.
     */
    public static class OpenToApplicantImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements gov.grants.apply.system.agencyManagePackageV10.OpenToApplicantDocument.OpenToApplicant
    {
        private static final long serialVersionUID = 1L;
        
        public OpenToApplicantImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType, false);
        }
        
        protected OpenToApplicantImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
        {
            super(sType, b);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy