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

no.ehelse.xmlstds.eresept.mv.x20170101.impl.VerifyDocumentImpl Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
/*
 * An XML document type.
 * Localname: Verify
 * Namespace: http://ehelse.no/xmlstds/eresept/mv/2017-01-01
 * Java type: no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument
 *
 * Automatically generated - do not modify.
 */
package no.ehelse.xmlstds.eresept.mv.x20170101.impl;
/**
 * A document containing one Verify(@http://ehelse.no/xmlstds/eresept/mv/2017-01-01) element.
 *
 * This is a complex type.
 */
public class VerifyDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument
{
    private static final long serialVersionUID = 1L;
    
    public VerifyDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName VERIFY$0 = 
        new javax.xml.namespace.QName("http://ehelse.no/xmlstds/eresept/mv/2017-01-01", "Verify");
    
    
    /**
     * Gets the "Verify" element
     */
    public no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify getVerify()
    {
        synchronized (monitor())
        {
            check_orphaned();
            no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify target = null;
            target = (no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify)get_store().find_element_user(VERIFY$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Verify" element
     */
    public void setVerify(no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify verify)
    {
        synchronized (monitor())
        {
            check_orphaned();
            no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify target = null;
            target = (no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify)get_store().find_element_user(VERIFY$0, 0);
            if (target == null)
            {
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify)get_store().add_element_user(VERIFY$0);
            }
            target.set(verify);
        }
    }
    
    /**
     * Appends and returns a new empty "Verify" element
     */
    public no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify addNewVerify()
    {
        synchronized (monitor())
        {
            check_orphaned();
            no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify target = null;
            target = (no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify)get_store().add_element_user(VERIFY$0);
            return target;
        }
    }
    /**
     * An XML Verify(@http://ehelse.no/xmlstds/eresept/mv/2017-01-01).
     *
     * This is a complex type.
     */
    public static class VerifyImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.ehelse.xmlstds.eresept.mv.x20170101.VerifyDocument.Verify
    {
        private static final long serialVersionUID = 1L;
        
        public VerifyImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName SYSTEMINFO$0 = 
            new javax.xml.namespace.QName("http://ehelse.no/xmlstds/eresept/mv/2017-01-01", "SystemInfo");
        private static final javax.xml.namespace.QName OPERATIONSUPPLIERINFO$2 = 
            new javax.xml.namespace.QName("http://ehelse.no/xmlstds/eresept/mv/2017-01-01", "OperationSupplierInfo");
        private static final javax.xml.namespace.QName ADDITIONALINFO$4 = 
            new javax.xml.namespace.QName("http://ehelse.no/xmlstds/eresept/mv/2017-01-01", "AdditionalInfo");
        
        
        /**
         * Gets array of all "SystemInfo" elements
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo[] getSystemInfoArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(SYSTEMINFO$0, targetList);
                no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo[] result = new no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "SystemInfo" element
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo getSystemInfoArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo)get_store().find_element_user(SYSTEMINFO$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "SystemInfo" element
         */
        public int sizeOfSystemInfoArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SYSTEMINFO$0);
            }
        }
        
        /**
         * Sets array of all "SystemInfo" element
         */
        public void setSystemInfoArray(no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo[] systemInfoArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(systemInfoArray, SYSTEMINFO$0);
            }
        }
        
        /**
         * Sets ith "SystemInfo" element
         */
        public void setSystemInfoArray(int i, no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo systemInfo)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo)get_store().find_element_user(SYSTEMINFO$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(systemInfo);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "SystemInfo" element
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo insertNewSystemInfo(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo)get_store().insert_element_user(SYSTEMINFO$0, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "SystemInfo" element
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo addNewSystemInfo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.SystemInfo)get_store().add_element_user(SYSTEMINFO$0);
                return target;
            }
        }
        
        /**
         * Removes the ith "SystemInfo" element
         */
        public void removeSystemInfo(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SYSTEMINFO$0, i);
            }
        }
        
        /**
         * Gets the "OperationSupplierInfo" element
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo getOperationSupplierInfo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo)get_store().find_element_user(OPERATIONSUPPLIERINFO$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * Sets the "OperationSupplierInfo" element
         */
        public void setOperationSupplierInfo(no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo operationSupplierInfo)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo)get_store().find_element_user(OPERATIONSUPPLIERINFO$2, 0);
                if (target == null)
                {
                    target = (no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo)get_store().add_element_user(OPERATIONSUPPLIERINFO$2);
                }
                target.set(operationSupplierInfo);
            }
        }
        
        /**
         * Appends and returns a new empty "OperationSupplierInfo" element
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo addNewOperationSupplierInfo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.ServiceVendorInfo)get_store().add_element_user(OPERATIONSUPPLIERINFO$2);
                return target;
            }
        }
        
        /**
         * Gets array of all "AdditionalInfo" elements
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair[] getAdditionalInfoArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(ADDITIONALINFO$4, targetList);
                no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair[] result = new no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "AdditionalInfo" element
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair getAdditionalInfoArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair)get_store().find_element_user(ADDITIONALINFO$4, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "AdditionalInfo" element
         */
        public int sizeOfAdditionalInfoArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(ADDITIONALINFO$4);
            }
        }
        
        /**
         * Sets array of all "AdditionalInfo" element
         */
        public void setAdditionalInfoArray(no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair[] additionalInfoArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(additionalInfoArray, ADDITIONALINFO$4);
            }
        }
        
        /**
         * Sets ith "AdditionalInfo" element
         */
        public void setAdditionalInfoArray(int i, no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair additionalInfo)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair)get_store().find_element_user(ADDITIONALINFO$4, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(additionalInfo);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "AdditionalInfo" element
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair insertNewAdditionalInfo(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair)get_store().insert_element_user(ADDITIONALINFO$4, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "AdditionalInfo" element
         */
        public no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair addNewAdditionalInfo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair target = null;
                target = (no.ehelse.xmlstds.eresept.mv.x20170101.KeyValuePair)get_store().add_element_user(ADDITIONALINFO$4);
                return target;
            }
        }
        
        /**
         * Removes the ith "AdditionalInfo" element
         */
        public void removeAdditionalInfo(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(ADDITIONALINFO$4, i);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy