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

gov.grants.apply.forms.edGEPA427V10.impl.GEPA427AttachmentsDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: GEPA427Attachments
 * Namespace: http://apply.grants.gov/forms/ED_GEPA427-V1.0
 * Java type: gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.forms.edGEPA427V10.impl;
/**
 * A document containing one GEPA427Attachments(@http://apply.grants.gov/forms/ED_GEPA427-V1.0) element.
 *
 * This is a complex type.
 */
public class GEPA427AttachmentsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument
{
    private static final long serialVersionUID = 1L;
    
    public GEPA427AttachmentsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName GEPA427ATTACHMENTS$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/forms/ED_GEPA427-V1.0", "GEPA427Attachments");
    
    
    /**
     * Gets the "GEPA427Attachments" element
     */
    public gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument.GEPA427Attachments getGEPA427Attachments()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument.GEPA427Attachments target = null;
            target = (gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument.GEPA427Attachments)get_store().find_element_user(GEPA427ATTACHMENTS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "GEPA427Attachments" element
     */
    public void setGEPA427Attachments(gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument.GEPA427Attachments gepa427Attachments)
    {
        generatedSetterHelperImpl(gepa427Attachments, GEPA427ATTACHMENTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "GEPA427Attachments" element
     */
    public gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument.GEPA427Attachments addNewGEPA427Attachments()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument.GEPA427Attachments target = null;
            target = (gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument.GEPA427Attachments)get_store().add_element_user(GEPA427ATTACHMENTS$0);
            return target;
        }
    }
    /**
     * An XML GEPA427Attachments(@http://apply.grants.gov/forms/ED_GEPA427-V1.0).
     *
     * This is a complex type.
     */
    public static class GEPA427AttachmentsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.edGEPA427V10.GEPA427AttachmentsDocument.GEPA427Attachments
    {
        private static final long serialVersionUID = 1L;
        
        public GEPA427AttachmentsImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName ATTACHMENTS$0 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/ED_GEPA427-V1.0", "Attachments");
        private static final javax.xml.namespace.QName FORMVERSION$2 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/system/GlobalLibrary-V1.0", "FormVersion");
        
        
        /**
         * Gets the "Attachments" element
         */
        public gov.grants.apply.system.attachmentsV10.AttachedFileDataType getAttachments()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
                target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().find_element_user(ATTACHMENTS$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "Attachments" element
         */
        public boolean isSetAttachments()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(ATTACHMENTS$0) != 0;
            }
        }
        
        /**
         * Sets the "Attachments" element
         */
        public void setAttachments(gov.grants.apply.system.attachmentsV10.AttachedFileDataType attachments)
        {
            generatedSetterHelperImpl(attachments, ATTACHMENTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }
        
        /**
         * Appends and returns a new empty "Attachments" element
         */
        public gov.grants.apply.system.attachmentsV10.AttachedFileDataType addNewAttachments()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.attachmentsV10.AttachedFileDataType target = null;
                target = (gov.grants.apply.system.attachmentsV10.AttachedFileDataType)get_store().add_element_user(ATTACHMENTS$0);
                return target;
            }
        }
        
        /**
         * Unsets the "Attachments" element
         */
        public void unsetAttachments()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(ATTACHMENTS$0, 0);
            }
        }
        
        /**
         * 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.globalV10.StringMin1Max30Type xgetFormVersion()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
                target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_attribute_user(FORMVERSION$2);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)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.globalV10.StringMin1Max30Type formVersion)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
                target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_attribute_user(FORMVERSION$2);
                if (target == null)
                {
                    target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().add_attribute_user(FORMVERSION$2);
                }
                target.set(formVersion);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy