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

gov.grants.apply.forms.nhtsaCertV10.impl.NHTSACertDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: NHTSACert
 * Namespace: http://apply.grants.gov/forms/NHTSACert-V1.0
 * Java type: gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.forms.nhtsaCertV10.impl;
/**
 * A document containing one NHTSACert(@http://apply.grants.gov/forms/NHTSACert-V1.0) element.
 *
 * This is a complex type.
 */
public class NHTSACertDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument
{
    private static final long serialVersionUID = 1L;
    
    public NHTSACertDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NHTSACERT$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/forms/NHTSACert-V1.0", "NHTSACert");
    
    
    /**
     * Gets the "NHTSACert" element
     */
    public gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert getNHTSACert()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert target = null;
            target = (gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert)get_store().find_element_user(NHTSACERT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "NHTSACert" element
     */
    public void setNHTSACert(gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert nhtsaCert)
    {
        generatedSetterHelperImpl(nhtsaCert, NHTSACERT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "NHTSACert" element
     */
    public gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert addNewNHTSACert()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert target = null;
            target = (gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert)get_store().add_element_user(NHTSACERT$0);
            return target;
        }
    }
    /**
     * An XML NHTSACert(@http://apply.grants.gov/forms/NHTSACert-V1.0).
     *
     * This is a complex type.
     */
    public static class NHTSACertImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert
    {
        private static final long serialVersionUID = 1L;
        
        public NHTSACertImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName FISCALYR$0 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/NHTSACert-V1.0", "FiscalYr");
        private static final javax.xml.namespace.QName GOVERNORSREP$2 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/NHTSACert-V1.0", "GovernorsRep");
        private static final javax.xml.namespace.QName STATEORCOMMONWEALTH$4 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/NHTSACert-V1.0", "StateorCommonwealth");
        private static final javax.xml.namespace.QName FORMDATE$6 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/NHTSACert-V1.0", "FormDate");
        private static final javax.xml.namespace.QName FORMVERSION$8 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/NHTSACert-V1.0", "FormVersion");
        
        
        /**
         * Gets the "FiscalYr" element
         */
        public java.util.Calendar getFiscalYr()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FISCALYR$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getCalendarValue();
            }
        }
        
        /**
         * Gets (as xml) the "FiscalYr" element
         */
        public org.apache.xmlbeans.XmlGYear xgetFiscalYr()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlGYear target = null;
                target = (org.apache.xmlbeans.XmlGYear)get_store().find_element_user(FISCALYR$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "FiscalYr" element
         */
        public void setFiscalYr(java.util.Calendar fiscalYr)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FISCALYR$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FISCALYR$0);
                }
                target.setCalendarValue(fiscalYr);
            }
        }
        
        /**
         * Sets (as xml) the "FiscalYr" element
         */
        public void xsetFiscalYr(org.apache.xmlbeans.XmlGYear fiscalYr)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlGYear target = null;
                target = (org.apache.xmlbeans.XmlGYear)get_store().find_element_user(FISCALYR$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlGYear)get_store().add_element_user(FISCALYR$0);
                }
                target.set(fiscalYr);
            }
        }
        
        /**
         * Gets the "GovernorsRep" element
         */
        public java.lang.String getGovernorsRep()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GOVERNORSREP$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "GovernorsRep" element
         */
        public gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.GovernorsRep xgetGovernorsRep()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.GovernorsRep target = null;
                target = (gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.GovernorsRep)get_store().find_element_user(GOVERNORSREP$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "GovernorsRep" element
         */
        public void setGovernorsRep(java.lang.String governorsRep)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GOVERNORSREP$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GOVERNORSREP$2);
                }
                target.setStringValue(governorsRep);
            }
        }
        
        /**
         * Sets (as xml) the "GovernorsRep" element
         */
        public void xsetGovernorsRep(gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.GovernorsRep governorsRep)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.GovernorsRep target = null;
                target = (gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.GovernorsRep)get_store().find_element_user(GOVERNORSREP$2, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.GovernorsRep)get_store().add_element_user(GOVERNORSREP$2);
                }
                target.set(governorsRep);
            }
        }
        
        /**
         * Gets the "StateorCommonwealth" element
         */
        public java.lang.String getStateorCommonwealth()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATEORCOMMONWEALTH$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "StateorCommonwealth" element
         */
        public gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.StateorCommonwealth xgetStateorCommonwealth()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.StateorCommonwealth target = null;
                target = (gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.StateorCommonwealth)get_store().find_element_user(STATEORCOMMONWEALTH$4, 0);
                return target;
            }
        }
        
        /**
         * Sets the "StateorCommonwealth" element
         */
        public void setStateorCommonwealth(java.lang.String stateorCommonwealth)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATEORCOMMONWEALTH$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATEORCOMMONWEALTH$4);
                }
                target.setStringValue(stateorCommonwealth);
            }
        }
        
        /**
         * Sets (as xml) the "StateorCommonwealth" element
         */
        public void xsetStateorCommonwealth(gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.StateorCommonwealth stateorCommonwealth)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.StateorCommonwealth target = null;
                target = (gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.StateorCommonwealth)get_store().find_element_user(STATEORCOMMONWEALTH$4, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.StateorCommonwealth)get_store().add_element_user(STATEORCOMMONWEALTH$4);
                }
                target.set(stateorCommonwealth);
            }
        }
        
        /**
         * Gets the "FormDate" element
         */
        public java.util.Calendar getFormDate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMDATE$6, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getCalendarValue();
            }
        }
        
        /**
         * Gets (as xml) the "FormDate" element
         */
        public org.apache.xmlbeans.XmlDate xgetFormDate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDate target = null;
                target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(FORMDATE$6, 0);
                return target;
            }
        }
        
        /**
         * Sets the "FormDate" element
         */
        public void setFormDate(java.util.Calendar formDate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMDATE$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FORMDATE$6);
                }
                target.setCalendarValue(formDate);
            }
        }
        
        /**
         * Sets (as xml) the "FormDate" element
         */
        public void xsetFormDate(org.apache.xmlbeans.XmlDate formDate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDate target = null;
                target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(FORMDATE$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(FORMDATE$6);
                }
                target.set(formDate);
            }
        }
        
        /**
         * Gets the "FormVersion" attribute
         */
        public java.lang.String getFormVersion()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$8);
                }
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "FormVersion" attribute
         */
        public gov.grants.apply.system.globalLibraryV20.FormVersionDataType xgetFormVersion()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$8);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$8);
                }
                return target;
            }
        }
        
        /**
         * Sets the "FormVersion" attribute
         */
        public void setFormVersion(java.lang.String formVersion)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$8);
                }
                target.setStringValue(formVersion);
            }
        }
        
        /**
         * Sets (as xml) the "FormVersion" attribute
         */
        public void xsetFormVersion(gov.grants.apply.system.globalLibraryV20.FormVersionDataType formVersion)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.FormVersionDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$8);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$8);
                }
                target.set(formVersion);
            }
        }
        /**
         * An XML GovernorsRep(@http://apply.grants.gov/forms/NHTSACert-V1.0).
         *
         * This is an atomic type that is a restriction of gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument$NHTSACert$GovernorsRep.
         */
        public static class GovernorsRepImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.GovernorsRep
        {
            private static final long serialVersionUID = 1L;
            
            public GovernorsRepImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected GovernorsRepImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
        /**
         * An XML StateorCommonwealth(@http://apply.grants.gov/forms/NHTSACert-V1.0).
         *
         * This is an atomic type that is a restriction of gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument$NHTSACert$StateorCommonwealth.
         */
        public static class StateorCommonwealthImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.forms.nhtsaCertV10.NHTSACertDocument.NHTSACert.StateorCommonwealth
        {
            private static final long serialVersionUID = 1L;
            
            public StateorCommonwealthImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected StateorCommonwealthImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy