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

no.kith.xmlstds.eresept.m96Kj.x20150501.impl.M96KJDocumentImpl Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
/*
 * An XML document type.
 * Localname: M96KJ
 * Namespace: http://www.kith.no/xmlstds/eresept/m96kj/2015-05-01
 * Java type: no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument
 *
 * Automatically generated - do not modify.
 */
package no.kith.xmlstds.eresept.m96Kj.x20150501.impl;
/**
 * A document containing one M96KJ(@http://www.kith.no/xmlstds/eresept/m96kj/2015-05-01) element.
 *
 * This is a complex type.
 */
public class M96KJDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument
{
    private static final long serialVersionUID = 1L;
    
    public M96KJDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName M96KJ$0 = 
        new javax.xml.namespace.QName("http://www.kith.no/xmlstds/eresept/m96kj/2015-05-01", "M96KJ");
    
    
    /**
     * Gets the "M96KJ" element
     */
    public no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ getM96KJ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ target = null;
            target = (no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ)get_store().find_element_user(M96KJ$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "M96KJ" element
     */
    public void setM96KJ(no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ m96KJ)
    {
        synchronized (monitor())
        {
            check_orphaned();
            no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ target = null;
            target = (no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ)get_store().find_element_user(M96KJ$0, 0);
            if (target == null)
            {
                target = (no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ)get_store().add_element_user(M96KJ$0);
            }
            target.set(m96KJ);
        }
    }
    
    /**
     * Appends and returns a new empty "M96KJ" element
     */
    public no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ addNewM96KJ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ target = null;
            target = (no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ)get_store().add_element_user(M96KJ$0);
            return target;
        }
    }
    /**
     * An XML M96KJ(@http://www.kith.no/xmlstds/eresept/m96kj/2015-05-01).
     *
     * This is a complex type.
     */
    public static class M96KJImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ
    {
        private static final long serialVersionUID = 1L;
        
        public M96KJImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName LISTEELEMENT$0 = 
            new javax.xml.namespace.QName("http://www.kith.no/xmlstds/eresept/m96kj/2015-05-01", "Listeelement");
        
        
        /**
         * Gets array of all "Listeelement" elements
         */
        public no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement[] getListeelementArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(LISTEELEMENT$0, targetList);
                no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement[] result = new no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "Listeelement" element
         */
        public no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement getListeelementArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement target = null;
                target = (no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement)get_store().find_element_user(LISTEELEMENT$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "Listeelement" element
         */
        public int sizeOfListeelementArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(LISTEELEMENT$0);
            }
        }
        
        /**
         * Sets array of all "Listeelement" element
         */
        public void setListeelementArray(no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement[] listeelementArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(listeelementArray, LISTEELEMENT$0);
            }
        }
        
        /**
         * Sets ith "Listeelement" element
         */
        public void setListeelementArray(int i, no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement listeelement)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement target = null;
                target = (no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement)get_store().find_element_user(LISTEELEMENT$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(listeelement);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "Listeelement" element
         */
        public no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement insertNewListeelement(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement target = null;
                target = (no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement)get_store().insert_element_user(LISTEELEMENT$0, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "Listeelement" element
         */
        public no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement addNewListeelement()
        {
            synchronized (monitor())
            {
                check_orphaned();
                no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement target = null;
                target = (no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement)get_store().add_element_user(LISTEELEMENT$0);
                return target;
            }
        }
        
        /**
         * Removes the ith "Listeelement" element
         */
        public void removeListeelement(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(LISTEELEMENT$0, i);
            }
        }
        /**
         * An XML Listeelement(@http://www.kith.no/xmlstds/eresept/m96kj/2015-05-01).
         *
         * This is a complex type.
         */
        public static class ListeelementImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.eresept.m96Kj.x20150501.M96KJDocument.M96KJ.Listeelement
        {
            private static final long serialVersionUID = 1L;
            
            public ListeelementImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType);
            }
            
            private static final javax.xml.namespace.QName RESEPTID$0 = 
                new javax.xml.namespace.QName("http://www.kith.no/xmlstds/eresept/m96kj/2015-05-01", "ReseptId");
            
            
            /**
             * Gets the "ReseptId" element
             */
            public java.lang.String getReseptId()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESEPTID$0, 0);
                    if (target == null)
                    {
                      return null;
                    }
                    return target.getStringValue();
                }
            }
            
            /**
             * Gets (as xml) the "ReseptId" element
             */
            public org.apache.xmlbeans.XmlString xgetReseptId()
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RESEPTID$0, 0);
                    return target;
                }
            }
            
            /**
             * Sets the "ReseptId" element
             */
            public void setReseptId(java.lang.String reseptId)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESEPTID$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RESEPTID$0);
                    }
                    target.setStringValue(reseptId);
                }
            }
            
            /**
             * Sets (as xml) the "ReseptId" element
             */
            public void xsetReseptId(org.apache.xmlbeans.XmlString reseptId)
            {
                synchronized (monitor())
                {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RESEPTID$0, 0);
                    if (target == null)
                    {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RESEPTID$0);
                    }
                    target.set(reseptId);
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy