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

gov.grants.apply.forms.otherV10.impl.OtherNarrativeAttachmentsDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: OtherNarrativeAttachments
 * Namespace: http://apply.grants.gov/forms/Other-V1.0
 * Java type: gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.forms.otherV10.impl;
/**
 * A document containing one OtherNarrativeAttachments(@http://apply.grants.gov/forms/Other-V1.0) element.
 *
 * This is a complex type.
 */
public class OtherNarrativeAttachmentsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument
{
    private static final long serialVersionUID = 1L;
    
    public OtherNarrativeAttachmentsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName OTHERNARRATIVEATTACHMENTS$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/forms/Other-V1.0", "OtherNarrativeAttachments");
    
    
    /**
     * Gets the "OtherNarrativeAttachments" element
     */
    public gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument.OtherNarrativeAttachments getOtherNarrativeAttachments()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument.OtherNarrativeAttachments target = null;
            target = (gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument.OtherNarrativeAttachments)get_store().find_element_user(OTHERNARRATIVEATTACHMENTS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "OtherNarrativeAttachments" element
     */
    public void setOtherNarrativeAttachments(gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument.OtherNarrativeAttachments otherNarrativeAttachments)
    {
        generatedSetterHelperImpl(otherNarrativeAttachments, OTHERNARRATIVEATTACHMENTS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "OtherNarrativeAttachments" element
     */
    public gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument.OtherNarrativeAttachments addNewOtherNarrativeAttachments()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument.OtherNarrativeAttachments target = null;
            target = (gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument.OtherNarrativeAttachments)get_store().add_element_user(OTHERNARRATIVEATTACHMENTS$0);
            return target;
        }
    }
    /**
     * An XML OtherNarrativeAttachments(@http://apply.grants.gov/forms/Other-V1.0).
     *
     * This is a complex type.
     */
    public static class OtherNarrativeAttachmentsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.otherV10.OtherNarrativeAttachmentsDocument.OtherNarrativeAttachments
    {
        private static final long serialVersionUID = 1L;
        
        public OtherNarrativeAttachmentsImpl(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/Other-V1.0", "Attachments");
        private static final javax.xml.namespace.QName FORMVERSION$2 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/forms/Other-V1.0", "FormVersion");
        
        
        /**
         * Gets the "Attachments" element
         */
        public gov.grants.apply.system.attachmentsV10.AttachmentGroupMin1Max100DataType getAttachments()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.attachmentsV10.AttachmentGroupMin1Max100DataType target = null;
                target = (gov.grants.apply.system.attachmentsV10.AttachmentGroupMin1Max100DataType)get_store().find_element_user(ATTACHMENTS$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "Attachments" element
         */
        public void setAttachments(gov.grants.apply.system.attachmentsV10.AttachmentGroupMin1Max100DataType 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.AttachmentGroupMin1Max100DataType addNewAttachments()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.attachmentsV10.AttachmentGroupMin1Max100DataType target = null;
                target = (gov.grants.apply.system.attachmentsV10.AttachmentGroupMin1Max100DataType)get_store().add_element_user(ATTACHMENTS$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);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy