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

gov.grants.apply.forms.cd511V11.impl.CD511DocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: CD511
 * Namespace: http://apply.grants.gov/forms/CD511-V1.1
 * Java type: gov.grants.apply.forms.cd511V11.CD511Document
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.forms.cd511V11.impl;
/**
 * A document containing one CD511(@http://apply.grants.gov/forms/CD511-V1.1) element.
 *
 * This is a complex type.
 */
public class CD511DocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.cd511V11.CD511Document
{
    private static final long serialVersionUID = 1L;
    
    public CD511DocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CD511$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/forms/CD511-V1.1", "CD511");
    
    
    /**
     * Gets the "CD511" element
     */
    public gov.grants.apply.forms.cd511V11.CD511Document.CD511 getCD511()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.cd511V11.CD511Document.CD511 target = null;
            target = (gov.grants.apply.forms.cd511V11.CD511Document.CD511)get_store().find_element_user(CD511$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "CD511" element
     */
    public void setCD511(gov.grants.apply.forms.cd511V11.CD511Document.CD511 cd511)
    {
        generatedSetterHelperImpl(cd511, CD511$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "CD511" element
     */
    public gov.grants.apply.forms.cd511V11.CD511Document.CD511 addNewCD511()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.cd511V11.CD511Document.CD511 target = null;
            target = (gov.grants.apply.forms.cd511V11.CD511Document.CD511)get_store().add_element_user(CD511$0);
            return target;
        }
    }
    /**
     * An XML CD511(@http://apply.grants.gov/forms/CD511-V1.1).
     *
     * This is a complex type.
     */
    public static class CD511Impl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.cd511V11.CD511Document.CD511
    {
        private static final long serialVersionUID = 1L;
        
        public CD511Impl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName ORGANIZATIONNAME$0 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/CD511-V1.1", "OrganizationName");
        private static final javax.xml.namespace.QName AWARDNUMBER$2 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/CD511-V1.1", "AwardNumber");
        private static final javax.xml.namespace.QName PROJECTNAME$4 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/CD511-V1.1", "ProjectName");
        private static final javax.xml.namespace.QName CONTACTNAME$6 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/CD511-V1.1", "ContactName");
        private static final javax.xml.namespace.QName TITLE$8 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/CD511-V1.1", "Title");
        private static final javax.xml.namespace.QName SIGNATURE$10 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/CD511-V1.1", "Signature");
        private static final javax.xml.namespace.QName SUBMITTEDDATE$12 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/CD511-V1.1", "SubmittedDate");
        private static final javax.xml.namespace.QName FORMVERSION$14 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/CD511-V1.1", "FormVersion");
        
        
        /**
         * Gets the "OrganizationName" element
         */
        public java.lang.String getOrganizationName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONNAME$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "OrganizationName" element
         */
        public gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType xgetOrganizationName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().find_element_user(ORGANIZATIONNAME$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "OrganizationName" element
         */
        public void setOrganizationName(java.lang.String organizationName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONNAME$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONNAME$0);
                }
                target.setStringValue(organizationName);
            }
        }
        
        /**
         * Sets (as xml) the "OrganizationName" element
         */
        public void xsetOrganizationName(gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType organizationName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().find_element_user(ORGANIZATIONNAME$0, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.OrganizationNameDataType)get_store().add_element_user(ORGANIZATIONNAME$0);
                }
                target.set(organizationName);
            }
        }
        
        /**
         * Gets the "AwardNumber" element
         */
        public java.lang.String getAwardNumber()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AWARDNUMBER$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "AwardNumber" element
         */
        public gov.grants.apply.system.globalLibraryV20.ProjectAwardNumberDataType xgetAwardNumber()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.ProjectAwardNumberDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.ProjectAwardNumberDataType)get_store().find_element_user(AWARDNUMBER$2, 0);
                return target;
            }
        }
        
        /**
         * True if has "AwardNumber" element
         */
        public boolean isSetAwardNumber()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(AWARDNUMBER$2) != 0;
            }
        }
        
        /**
         * Sets the "AwardNumber" element
         */
        public void setAwardNumber(java.lang.String awardNumber)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AWARDNUMBER$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AWARDNUMBER$2);
                }
                target.setStringValue(awardNumber);
            }
        }
        
        /**
         * Sets (as xml) the "AwardNumber" element
         */
        public void xsetAwardNumber(gov.grants.apply.system.globalLibraryV20.ProjectAwardNumberDataType awardNumber)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.ProjectAwardNumberDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.ProjectAwardNumberDataType)get_store().find_element_user(AWARDNUMBER$2, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.ProjectAwardNumberDataType)get_store().add_element_user(AWARDNUMBER$2);
                }
                target.set(awardNumber);
            }
        }
        
        /**
         * Unsets the "AwardNumber" element
         */
        public void unsetAwardNumber()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(AWARDNUMBER$2, 0);
            }
        }
        
        /**
         * Gets the "ProjectName" element
         */
        public java.lang.String getProjectName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROJECTNAME$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "ProjectName" element
         */
        public gov.grants.apply.forms.cd511V11.CD511Document.CD511.ProjectName xgetProjectName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.cd511V11.CD511Document.CD511.ProjectName target = null;
                target = (gov.grants.apply.forms.cd511V11.CD511Document.CD511.ProjectName)get_store().find_element_user(PROJECTNAME$4, 0);
                return target;
            }
        }
        
        /**
         * True if has "ProjectName" element
         */
        public boolean isSetProjectName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(PROJECTNAME$4) != 0;
            }
        }
        
        /**
         * Sets the "ProjectName" element
         */
        public void setProjectName(java.lang.String projectName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROJECTNAME$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROJECTNAME$4);
                }
                target.setStringValue(projectName);
            }
        }
        
        /**
         * Sets (as xml) the "ProjectName" element
         */
        public void xsetProjectName(gov.grants.apply.forms.cd511V11.CD511Document.CD511.ProjectName projectName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.cd511V11.CD511Document.CD511.ProjectName target = null;
                target = (gov.grants.apply.forms.cd511V11.CD511Document.CD511.ProjectName)get_store().find_element_user(PROJECTNAME$4, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.forms.cd511V11.CD511Document.CD511.ProjectName)get_store().add_element_user(PROJECTNAME$4);
                }
                target.set(projectName);
            }
        }
        
        /**
         * Unsets the "ProjectName" element
         */
        public void unsetProjectName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(PROJECTNAME$4, 0);
            }
        }
        
        /**
         * Gets the "ContactName" element
         */
        public gov.grants.apply.system.globalLibraryV20.HumanNameDataType getContactName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.HumanNameDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.HumanNameDataType)get_store().find_element_user(CONTACTNAME$6, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "ContactName" element
         */
        public boolean isSetContactName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(CONTACTNAME$6) != 0;
            }
        }
        
        /**
         * Sets the "ContactName" element
         */
        public void setContactName(gov.grants.apply.system.globalLibraryV20.HumanNameDataType contactName)
        {
            generatedSetterHelperImpl(contactName, CONTACTNAME$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }
        
        /**
         * Appends and returns a new empty "ContactName" element
         */
        public gov.grants.apply.system.globalLibraryV20.HumanNameDataType addNewContactName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.HumanNameDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.HumanNameDataType)get_store().add_element_user(CONTACTNAME$6);
                return target;
            }
        }
        
        /**
         * Unsets the "ContactName" element
         */
        public void unsetContactName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(CONTACTNAME$6, 0);
            }
        }
        
        /**
         * Gets the "Title" element
         */
        public java.lang.String getTitle()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TITLE$8, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "Title" element
         */
        public gov.grants.apply.system.globalLibraryV20.HumanTitleDataType xgetTitle()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.HumanTitleDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.HumanTitleDataType)get_store().find_element_user(TITLE$8, 0);
                return target;
            }
        }
        
        /**
         * Sets the "Title" element
         */
        public void setTitle(java.lang.String title)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TITLE$8, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TITLE$8);
                }
                target.setStringValue(title);
            }
        }
        
        /**
         * Sets (as xml) the "Title" element
         */
        public void xsetTitle(gov.grants.apply.system.globalLibraryV20.HumanTitleDataType title)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.HumanTitleDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.HumanTitleDataType)get_store().find_element_user(TITLE$8, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.HumanTitleDataType)get_store().add_element_user(TITLE$8);
                }
                target.set(title);
            }
        }
        
        /**
         * Gets the "Signature" element
         */
        public java.lang.String getSignature()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SIGNATURE$10, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "Signature" element
         */
        public gov.grants.apply.system.globalLibraryV20.SignatureDataType xgetSignature()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.SignatureDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.SignatureDataType)get_store().find_element_user(SIGNATURE$10, 0);
                return target;
            }
        }
        
        /**
         * Sets the "Signature" element
         */
        public void setSignature(java.lang.String signature)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SIGNATURE$10, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SIGNATURE$10);
                }
                target.setStringValue(signature);
            }
        }
        
        /**
         * Sets (as xml) the "Signature" element
         */
        public void xsetSignature(gov.grants.apply.system.globalLibraryV20.SignatureDataType signature)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV20.SignatureDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV20.SignatureDataType)get_store().find_element_user(SIGNATURE$10, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.SignatureDataType)get_store().add_element_user(SIGNATURE$10);
                }
                target.set(signature);
            }
        }
        
        /**
         * Gets the "SubmittedDate" element
         */
        public java.util.Calendar getSubmittedDate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBMITTEDDATE$12, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getCalendarValue();
            }
        }
        
        /**
         * Gets (as xml) the "SubmittedDate" element
         */
        public org.apache.xmlbeans.XmlDate xgetSubmittedDate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDate target = null;
                target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(SUBMITTEDDATE$12, 0);
                return target;
            }
        }
        
        /**
         * Sets the "SubmittedDate" element
         */
        public void setSubmittedDate(java.util.Calendar submittedDate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBMITTEDDATE$12, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUBMITTEDDATE$12);
                }
                target.setCalendarValue(submittedDate);
            }
        }
        
        /**
         * Sets (as xml) the "SubmittedDate" element
         */
        public void xsetSubmittedDate(org.apache.xmlbeans.XmlDate submittedDate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDate target = null;
                target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(SUBMITTEDDATE$12, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(SUBMITTEDDATE$12);
                }
                target.set(submittedDate);
            }
        }
        
        /**
         * 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$14);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$14);
                }
                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$14);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$14);
                }
                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$14);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$14);
                }
                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$14);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$14);
                }
                target.set(formVersion);
            }
        }
        /**
         * An XML ProjectName(@http://apply.grants.gov/forms/CD511-V1.1).
         *
         * This is an atomic type that is a restriction of gov.grants.apply.forms.cd511V11.CD511Document$CD511$ProjectName.
         */
        public static class ProjectNameImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements gov.grants.apply.forms.cd511V11.CD511Document.CD511.ProjectName
        {
            private static final long serialVersionUID = 1L;
            
            public ProjectNameImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected ProjectNameImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy