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

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

/*
 * An XML document type.
 * Localname: Project
 * Namespace: http://apply.grants.gov/forms/SF424-V1.0
 * Java type: gov.grants.apply.forms.sf424V10.ProjectDocument
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.forms.sf424V10.impl;
/**
 * A document containing one Project(@http://apply.grants.gov/forms/SF424-V1.0) element.
 *
 * This is a complex type.
 */
public class ProjectDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.ProjectDocument
{
    private static final long serialVersionUID = 1L;
    
    public ProjectDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PROJECT$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "Project");
    
    
    /**
     * Gets the "Project" element
     */
    public gov.grants.apply.forms.sf424V10.ProjectDocument.Project getProject()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.sf424V10.ProjectDocument.Project target = null;
            target = (gov.grants.apply.forms.sf424V10.ProjectDocument.Project)get_store().find_element_user(PROJECT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Project" element
     */
    public void setProject(gov.grants.apply.forms.sf424V10.ProjectDocument.Project project)
    {
        generatedSetterHelperImpl(project, PROJECT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "Project" element
     */
    public gov.grants.apply.forms.sf424V10.ProjectDocument.Project addNewProject()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.sf424V10.ProjectDocument.Project target = null;
            target = (gov.grants.apply.forms.sf424V10.ProjectDocument.Project)get_store().add_element_user(PROJECT$0);
            return target;
        }
    }
    /**
     * An XML Project(@http://apply.grants.gov/forms/SF424-V1.0).
     *
     * This is a complex type.
     */
    public static class ProjectImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.ProjectDocument.Project
    {
        private static final long serialVersionUID = 1L;
        
        public ProjectImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName PROJECTTITLE$0 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "ProjectTitle");
        private static final javax.xml.namespace.QName LOCATION$2 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "Location");
        private static final javax.xml.namespace.QName PROPOSEDSTARTDATE$4 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "ProposedStartDate");
        private static final javax.xml.namespace.QName PROPOSEDENDDATE$6 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "ProposedEndDate");
        private static final javax.xml.namespace.QName CONGRESSIONALDISTRICT$8 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "CongressionalDistrict");
        
        
        /**
         * Gets the "ProjectTitle" element
         */
        public java.lang.String getProjectTitle()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROJECTTITLE$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "ProjectTitle" element
         */
        public gov.grants.apply.system.globalV10.StringMin1Max200Type xgetProjectTitle()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalV10.StringMin1Max200Type target = null;
                target = (gov.grants.apply.system.globalV10.StringMin1Max200Type)get_store().find_element_user(PROJECTTITLE$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "ProjectTitle" element
         */
        public void setProjectTitle(java.lang.String projectTitle)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROJECTTITLE$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROJECTTITLE$0);
                }
                target.setStringValue(projectTitle);
            }
        }
        
        /**
         * Sets (as xml) the "ProjectTitle" element
         */
        public void xsetProjectTitle(gov.grants.apply.system.globalV10.StringMin1Max200Type projectTitle)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalV10.StringMin1Max200Type target = null;
                target = (gov.grants.apply.system.globalV10.StringMin1Max200Type)get_store().find_element_user(PROJECTTITLE$0, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalV10.StringMin1Max200Type)get_store().add_element_user(PROJECTTITLE$0);
                }
                target.set(projectTitle);
            }
        }
        
        /**
         * Gets the "Location" element
         */
        public java.lang.String getLocation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCATION$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "Location" element
         */
        public gov.grants.apply.system.globalV10.StringMin1Max45Type xgetLocation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalV10.StringMin1Max45Type target = null;
                target = (gov.grants.apply.system.globalV10.StringMin1Max45Type)get_store().find_element_user(LOCATION$2, 0);
                return target;
            }
        }
        
        /**
         * True if has "Location" element
         */
        public boolean isSetLocation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(LOCATION$2) != 0;
            }
        }
        
        /**
         * Sets the "Location" element
         */
        public void setLocation(java.lang.String location)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCATION$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOCATION$2);
                }
                target.setStringValue(location);
            }
        }
        
        /**
         * Sets (as xml) the "Location" element
         */
        public void xsetLocation(gov.grants.apply.system.globalV10.StringMin1Max45Type location)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalV10.StringMin1Max45Type target = null;
                target = (gov.grants.apply.system.globalV10.StringMin1Max45Type)get_store().find_element_user(LOCATION$2, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalV10.StringMin1Max45Type)get_store().add_element_user(LOCATION$2);
                }
                target.set(location);
            }
        }
        
        /**
         * Unsets the "Location" element
         */
        public void unsetLocation()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(LOCATION$2, 0);
            }
        }
        
        /**
         * Gets the "ProposedStartDate" element
         */
        public java.util.Calendar getProposedStartDate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPOSEDSTARTDATE$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getCalendarValue();
            }
        }
        
        /**
         * Gets (as xml) the "ProposedStartDate" element
         */
        public org.apache.xmlbeans.XmlDate xgetProposedStartDate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDate target = null;
                target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPOSEDSTARTDATE$4, 0);
                return target;
            }
        }
        
        /**
         * Sets the "ProposedStartDate" element
         */
        public void setProposedStartDate(java.util.Calendar proposedStartDate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPOSEDSTARTDATE$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPOSEDSTARTDATE$4);
                }
                target.setCalendarValue(proposedStartDate);
            }
        }
        
        /**
         * Sets (as xml) the "ProposedStartDate" element
         */
        public void xsetProposedStartDate(org.apache.xmlbeans.XmlDate proposedStartDate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDate target = null;
                target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPOSEDSTARTDATE$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(PROPOSEDSTARTDATE$4);
                }
                target.set(proposedStartDate);
            }
        }
        
        /**
         * Gets the "ProposedEndDate" element
         */
        public java.util.Calendar getProposedEndDate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPOSEDENDDATE$6, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getCalendarValue();
            }
        }
        
        /**
         * Gets (as xml) the "ProposedEndDate" element
         */
        public org.apache.xmlbeans.XmlDate xgetProposedEndDate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDate target = null;
                target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPOSEDENDDATE$6, 0);
                return target;
            }
        }
        
        /**
         * Sets the "ProposedEndDate" element
         */
        public void setProposedEndDate(java.util.Calendar proposedEndDate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPOSEDENDDATE$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPOSEDENDDATE$6);
                }
                target.setCalendarValue(proposedEndDate);
            }
        }
        
        /**
         * Sets (as xml) the "ProposedEndDate" element
         */
        public void xsetProposedEndDate(org.apache.xmlbeans.XmlDate proposedEndDate)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDate target = null;
                target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPOSEDENDDATE$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(PROPOSEDENDDATE$6);
                }
                target.set(proposedEndDate);
            }
        }
        
        /**
         * Gets the "CongressionalDistrict" element
         */
        public java.lang.String getCongressionalDistrict()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "CongressionalDistrict" element
         */
        public gov.grants.apply.system.globalV10.StringMin1Max30Type xgetCongressionalDistrict()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
                target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
                return target;
            }
        }
        
        /**
         * True if has "CongressionalDistrict" element
         */
        public boolean isSetCongressionalDistrict()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(CONGRESSIONALDISTRICT$8) != 0;
            }
        }
        
        /**
         * Sets the "CongressionalDistrict" element
         */
        public void setCongressionalDistrict(java.lang.String congressionalDistrict)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONGRESSIONALDISTRICT$8);
                }
                target.setStringValue(congressionalDistrict);
            }
        }
        
        /**
         * Sets (as xml) the "CongressionalDistrict" element
         */
        public void xsetCongressionalDistrict(gov.grants.apply.system.globalV10.StringMin1Max30Type congressionalDistrict)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
                target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_element_user(CONGRESSIONALDISTRICT$8, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().add_element_user(CONGRESSIONALDISTRICT$8);
                }
                target.set(congressionalDistrict);
            }
        }
        
        /**
         * Unsets the "CongressionalDistrict" element
         */
        public void unsetCongressionalDistrict()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(CONGRESSIONALDISTRICT$8, 0);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy