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

gov.grants.apply.forms.rrPersonalDataV11.impl.RRPersonalDataDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: RR_PersonalData
 * Namespace: http://apply.grants.gov/forms/RR_PersonalData-V1.1
 * Java type: gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.forms.rrPersonalDataV11.impl;
/**
 * A document containing one RR_PersonalData(@http://apply.grants.gov/forms/RR_PersonalData-V1.1) element.
 *
 * This is a complex type.
 */
public class RRPersonalDataDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument
{
    private static final long serialVersionUID = 1L;
    
    public RRPersonalDataDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RRPERSONALDATA$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/forms/RR_PersonalData-V1.1", "RR_PersonalData");
    
    
    /**
     * Gets the "RR_PersonalData" element
     */
    public gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument.RRPersonalData getRRPersonalData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument.RRPersonalData target = null;
            target = (gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument.RRPersonalData)get_store().find_element_user(RRPERSONALDATA$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "RR_PersonalData" element
     */
    public void setRRPersonalData(gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument.RRPersonalData rrPersonalData)
    {
        generatedSetterHelperImpl(rrPersonalData, RRPERSONALDATA$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "RR_PersonalData" element
     */
    public gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument.RRPersonalData addNewRRPersonalData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument.RRPersonalData target = null;
            target = (gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument.RRPersonalData)get_store().add_element_user(RRPERSONALDATA$0);
            return target;
        }
    }
    /**
     * An XML RR_PersonalData(@http://apply.grants.gov/forms/RR_PersonalData-V1.1).
     *
     * This is a complex type.
     */
    public static class RRPersonalDataImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.rrPersonalDataV11.RRPersonalDataDocument.RRPersonalData
    {
        private static final long serialVersionUID = 1L;
        
        public RRPersonalDataImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName PROJECTDIRECTOR$0 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/RR_PersonalData-V1.1", "ProjectDirector");
        private static final javax.xml.namespace.QName COPROJECTDIRECTOR$2 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/RR_PersonalData-V1.1", "Co-ProjectDirector");
        private static final javax.xml.namespace.QName FORMVERSION$4 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/RR_PersonalData-V1.1", "FormVersion");
        
        
        /**
         * Gets the "ProjectDirector" element
         */
        public gov.grants.apply.forms.rrPersonalDataV11.DirectorType getProjectDirector()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.rrPersonalDataV11.DirectorType target = null;
                target = (gov.grants.apply.forms.rrPersonalDataV11.DirectorType)get_store().find_element_user(PROJECTDIRECTOR$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "ProjectDirector" element
         */
        public void setProjectDirector(gov.grants.apply.forms.rrPersonalDataV11.DirectorType projectDirector)
        {
            generatedSetterHelperImpl(projectDirector, PROJECTDIRECTOR$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }
        
        /**
         * Appends and returns a new empty "ProjectDirector" element
         */
        public gov.grants.apply.forms.rrPersonalDataV11.DirectorType addNewProjectDirector()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.rrPersonalDataV11.DirectorType target = null;
                target = (gov.grants.apply.forms.rrPersonalDataV11.DirectorType)get_store().add_element_user(PROJECTDIRECTOR$0);
                return target;
            }
        }
        
        /**
         * Gets array of all "Co-ProjectDirector" elements
         */
        public gov.grants.apply.forms.rrPersonalDataV11.DirectorType[] getCoProjectDirectorArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(COPROJECTDIRECTOR$2, targetList);
                gov.grants.apply.forms.rrPersonalDataV11.DirectorType[] result = new gov.grants.apply.forms.rrPersonalDataV11.DirectorType[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "Co-ProjectDirector" element
         */
        public gov.grants.apply.forms.rrPersonalDataV11.DirectorType getCoProjectDirectorArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.rrPersonalDataV11.DirectorType target = null;
                target = (gov.grants.apply.forms.rrPersonalDataV11.DirectorType)get_store().find_element_user(COPROJECTDIRECTOR$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "Co-ProjectDirector" element
         */
        public int sizeOfCoProjectDirectorArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(COPROJECTDIRECTOR$2);
            }
        }
        
        /**
         * Sets array of all "Co-ProjectDirector" element  WARNING: This method is not atomicaly synchronized.
         */
        public void setCoProjectDirectorArray(gov.grants.apply.forms.rrPersonalDataV11.DirectorType[] coProjectDirectorArray)
        {
            check_orphaned();
            arraySetterHelper(coProjectDirectorArray, COPROJECTDIRECTOR$2);
        }
        
        /**
         * Sets ith "Co-ProjectDirector" element
         */
        public void setCoProjectDirectorArray(int i, gov.grants.apply.forms.rrPersonalDataV11.DirectorType coProjectDirector)
        {
            generatedSetterHelperImpl(coProjectDirector, COPROJECTDIRECTOR$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Co-ProjectDirector" element
         */
        public gov.grants.apply.forms.rrPersonalDataV11.DirectorType insertNewCoProjectDirector(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.rrPersonalDataV11.DirectorType target = null;
                target = (gov.grants.apply.forms.rrPersonalDataV11.DirectorType)get_store().insert_element_user(COPROJECTDIRECTOR$2, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Co-ProjectDirector" element
         */
        public gov.grants.apply.forms.rrPersonalDataV11.DirectorType addNewCoProjectDirector()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.rrPersonalDataV11.DirectorType target = null;
                target = (gov.grants.apply.forms.rrPersonalDataV11.DirectorType)get_store().add_element_user(COPROJECTDIRECTOR$2);
                return target;
            }
        }
        
        /**
         * Removes the ith "Co-ProjectDirector" element
         */
        public void removeCoProjectDirector(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(COPROJECTDIRECTOR$2, i);
            }
        }
        
        /**
         * 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$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$4);
                }
                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$4);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_default_attribute_value(FORMVERSION$4);
                }
                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$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$4);
                }
                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$4);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV20.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$4);
                }
                target.set(formVersion);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy