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

gov.grants.apply.system.grantsCommonElementsV10.impl.AttachmentDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: Attachment
 * Namespace: http://apply.grants.gov/system/GrantsCommonElements-V1.0
 * Java type: gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument
 *
 * Automatically generated - do not modify.
 */
package gov.grants.apply.system.grantsCommonElementsV10.impl;
/**
 * A document containing one Attachment(@http://apply.grants.gov/system/GrantsCommonElements-V1.0) element.
 *
 * This is a complex type.
 */
public class AttachmentDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument
{
    private static final long serialVersionUID = 1L;
    
    public AttachmentDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ATTACHMENT$0 = 
        new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsCommonElements-V1.0", "Attachment");
    
    
    /**
     * Gets the "Attachment" element
     */
    public gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument.Attachment getAttachment()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument.Attachment target = null;
            target = (gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument.Attachment)get_store().find_element_user(ATTACHMENT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Attachment" element
     */
    public void setAttachment(gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument.Attachment attachment)
    {
        generatedSetterHelperImpl(attachment, ATTACHMENT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "Attachment" element
     */
    public gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument.Attachment addNewAttachment()
    {
        synchronized (monitor())
        {
            check_orphaned();
            gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument.Attachment target = null;
            target = (gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument.Attachment)get_store().add_element_user(ATTACHMENT$0);
            return target;
        }
    }
    /**
     * An XML Attachment(@http://apply.grants.gov/system/GrantsCommonElements-V1.0).
     *
     * This is a complex type.
     */
    public static class AttachmentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.grantsCommonElementsV10.AttachmentDocument.Attachment
    {
        private static final long serialVersionUID = 1L;
        
        public AttachmentImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName FILECONTENTID$0 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsCommonElements-V1.0", "FileContentId");
        private static final javax.xml.namespace.QName FILEDATAHANDLER$2 = 
            new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsCommonElements-V1.0", "FileDataHandler");
        
        
        /**
         * Gets the "FileContentId" element
         */
        public java.lang.String getFileContentId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FILECONTENTID$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "FileContentId" element
         */
        public gov.grants.apply.system.grantsCommonTypesV10.FileContentIdType xgetFileContentId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.grantsCommonTypesV10.FileContentIdType target = null;
                target = (gov.grants.apply.system.grantsCommonTypesV10.FileContentIdType)get_store().find_element_user(FILECONTENTID$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "FileContentId" element
         */
        public void setFileContentId(java.lang.String fileContentId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FILECONTENTID$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FILECONTENTID$0);
                }
                target.setStringValue(fileContentId);
            }
        }
        
        /**
         * Sets (as xml) the "FileContentId" element
         */
        public void xsetFileContentId(gov.grants.apply.system.grantsCommonTypesV10.FileContentIdType fileContentId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                gov.grants.apply.system.grantsCommonTypesV10.FileContentIdType target = null;
                target = (gov.grants.apply.system.grantsCommonTypesV10.FileContentIdType)get_store().find_element_user(FILECONTENTID$0, 0);
                if (target == null)
                {
                    target = (gov.grants.apply.system.grantsCommonTypesV10.FileContentIdType)get_store().add_element_user(FILECONTENTID$0);
                }
                target.set(fileContentId);
            }
        }
        
        /**
         * Gets the "FileDataHandler" element
         */
        public byte[] getFileDataHandler()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FILEDATAHANDLER$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getByteArrayValue();
            }
        }
        
        /**
         * Gets (as xml) the "FileDataHandler" element
         */
        public org.apache.xmlbeans.XmlBase64Binary xgetFileDataHandler()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBase64Binary target = null;
                target = (org.apache.xmlbeans.XmlBase64Binary)get_store().find_element_user(FILEDATAHANDLER$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "FileDataHandler" element
         */
        public void setFileDataHandler(byte[] fileDataHandler)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FILEDATAHANDLER$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FILEDATAHANDLER$2);
                }
                target.setByteArrayValue(fileDataHandler);
            }
        }
        
        /**
         * Sets (as xml) the "FileDataHandler" element
         */
        public void xsetFileDataHandler(org.apache.xmlbeans.XmlBase64Binary fileDataHandler)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlBase64Binary target = null;
                target = (org.apache.xmlbeans.XmlBase64Binary)get_store().find_element_user(FILEDATAHANDLER$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlBase64Binary)get_store().add_element_user(FILEDATAHANDLER$2);
                }
                target.set(fileDataHandler);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy