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

gov.grants.apply.forms.projectAbstractV10.impl.ProjectAbstractDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: Project_Abstract
 * Namespace: http://apply.grants.gov/forms/Project_Abstract-V1.0
 * Java type: gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.forms.projectAbstractV10.impl;
/**
 * A document containing one Project_Abstract(@http://apply.grants.gov/forms/Project_Abstract-V1.0) element.
 *
 * This is a complex type.
 */
public class ProjectAbstractDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument
{
    private static final long serialVersionUID = 1L;
    
    public ProjectAbstractDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PROJECTABSTRACT$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/forms/Project_Abstract-V1.0", "Project_Abstract");
    
    
    /**
     * Gets the "Project_Abstract" element
     */
    public gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract getProjectAbstract()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract target = null;
            target = (gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract)get_store().find_element_user(PROJECTABSTRACT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Project_Abstract" element
     */
    public void setProjectAbstract(gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract projectAbstract)
    {
        generatedSetterHelperImpl(projectAbstract, PROJECTABSTRACT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "Project_Abstract" element
     */
    public gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract addNewProjectAbstract()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract target = null;
            target = (gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract)get_store().add_element_user(PROJECTABSTRACT$0);
            return target;
        }
    }
    /**
     * An XML Project_Abstract(@http://apply.grants.gov/forms/Project_Abstract-V1.0).
     *
     * This is a complex type.
     */
    public static class ProjectAbstractImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract
    {
        private static final long serialVersionUID = 1L;
        
        public ProjectAbstractImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName PROJECTABSTRACTADDATTACHMENT$0 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/Project_Abstract-V1.0", "ProjectAbstractAddAttachment");
        private static final javax.xml.namespace.QName FORMVERSION$2 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/Project_Abstract-V1.0", "FormVersion");
        
        
        /**
         * Gets the "ProjectAbstractAddAttachment" element
         */
        public gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract.ProjectAbstractAddAttachment getProjectAbstractAddAttachment()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract.ProjectAbstractAddAttachment target = null;
                target = (gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract.ProjectAbstractAddAttachment)get_store().find_element_user(PROJECTABSTRACTADDATTACHMENT$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "ProjectAbstractAddAttachment" element
         */
        public void setProjectAbstractAddAttachment(gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract.ProjectAbstractAddAttachment projectAbstractAddAttachment)
        {
            generatedSetterHelperImpl(projectAbstractAddAttachment, PROJECTABSTRACTADDATTACHMENT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }
        
        /**
         * Appends and returns a new empty "ProjectAbstractAddAttachment" element
         */
        public gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract.ProjectAbstractAddAttachment addNewProjectAbstractAddAttachment()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract.ProjectAbstractAddAttachment target = null;
                target = (gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract.ProjectAbstractAddAttachment)get_store().add_element_user(PROJECTABSTRACTADDATTACHMENT$0);
                return target;
            }
        }
        
        /**
         * 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$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(FORMVERSION$2);
                }
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "FormVersion" attribute
         */
        public gov.grants.apply.system.globalLibraryV10.FormVersionDataType xgetFormVersion()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV10.FormVersionDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV10.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$2);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV10.FormVersionDataType)get_default_attribute_value(FORMVERSION$2);
                }
                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$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$2);
                }
                target.setStringValue(formVersion);
            }
        }
        
        /**
         * Sets (as xml) the "FormVersion" attribute
         */
        public void xsetFormVersion(gov.grants.apply.system.globalLibraryV10.FormVersionDataType formVersion)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalLibraryV10.FormVersionDataType target = null;
                target = (gov.grants.apply.system.globalLibraryV10.FormVersionDataType)get_store().find_attribute_user(FORMVERSION$2);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalLibraryV10.FormVersionDataType)get_store().add_attribute_user(FORMVERSION$2);
                }
                target.set(formVersion);
            }
        }
        /**
         * An XML ProjectAbstractAddAttachment(@http://apply.grants.gov/forms/Project_Abstract-V1.0).
         *
         * This is a complex type.
         */
        public static class ProjectAbstractAddAttachmentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.projectAbstractV10.ProjectAbstractDocument.ProjectAbstract.ProjectAbstractAddAttachment
        {
            private static final long serialVersionUID = 1L;
            
            public ProjectAbstractAddAttachmentImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType);
            }
            
            private static final javax.xml.namespace.QName ATTACHEDFILE$0 = 
                new javax.xml.namespace.QName("http://apply.grants.gov/forms/Project_Abstract-V1.0", "AttachedFile");
            
            
            /**
             * Gets the "AttachedFile" element
             */
            public gov.grants.apply.system.attachmentsV10.AttachedFileDataType getAttachedFile()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
                    target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().find_element_user(ATTACHEDFILE$0, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target;
                }
            }
            
            /**
             * Sets the "AttachedFile" element
             */
            public void setAttachedFile(gov.grants.apply.system.attachmentsV10.AttachedFileDataType attachedFile)
            {
                generatedSetterHelperImpl(attachedFile, ATTACHEDFILE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
            }
            
            /**
             * Appends and returns a new empty "AttachedFile" element
             */
            public gov.grants.apply.system.attachmentsV10.AttachedFileDataType addNewAttachedFile()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
                    target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().add_element_user(ATTACHEDFILE$0);
                    return target;
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy