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

no.ehelse.xmlstds.eresept.m96.x20180701.impl.M96DocumentImpl Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
/*
 * An XML document type.
 * Localname: M96
 * Namespace: http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01
 * Java type: no.ehelse.xmlstds.eresept.m96.x20180701.M96Document
 *
 * Automatically generated - do not modify.
 */
package no.ehelse.xmlstds.eresept.m96.x20180701.impl;

import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
import org.apache.xmlbeans.XmlObject;

/**
 * A document containing one M96(@http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01) element.
 *
 * This is a complex type.
 */
public class M96DocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.ehelse.xmlstds.eresept.m96.x20180701.M96Document {
    private static final long serialVersionUID = 1L;

    public M96DocumentImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }

    private static final QName[] PROPERTY_QNAME = {
        new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "M96"),
    };


    /**
     * Gets the "M96" element
     */
    @Override
    public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96 getM96() {
        synchronized (monitor()) {
            check_orphaned();
            no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96 target = null;
            target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            return (target == null) ? null : target;
        }
    }

    /**
     * Sets the "M96" element
     */
    @Override
    public void setM96(no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96 m96) {
        generatedSetterHelperImpl(m96, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }

    /**
     * Appends and returns a new empty "M96" element
     */
    @Override
    public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96 addNewM96() {
        synchronized (monitor()) {
            check_orphaned();
            no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96 target = null;
            target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96)get_store().add_element_user(PROPERTY_QNAME[0]);
            return target;
        }
    }
    /**
     * An XML M96(@http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01).
     *
     * This is a complex type.
     */
    public static class M96Impl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96 {
        private static final long serialVersionUID = 1L;

        public M96Impl(org.apache.xmlbeans.SchemaType sType) {
            super(sType);
        }

        private static final QName[] PROPERTY_QNAME = {
            new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "PasientInfo"),
            new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "LastResept"),
            new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "Pasientreservasjon"),
            new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "StatusSok"),
            new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "Listeelement"),
        };


        /**
         * Gets the "PasientInfo" element
         */
        @Override
        public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.PasientInfo getPasientInfo() {
            synchronized (monitor()) {
                check_orphaned();
                no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.PasientInfo target = null;
                target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.PasientInfo)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                return (target == null) ? null : target;
            }
        }

        /**
         * True if has "PasientInfo" element
         */
        @Override
        public boolean isSetPasientInfo() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[0]) != 0;
            }
        }

        /**
         * Sets the "PasientInfo" element
         */
        @Override
        public void setPasientInfo(no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.PasientInfo pasientInfo) {
            generatedSetterHelperImpl(pasientInfo, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }

        /**
         * Appends and returns a new empty "PasientInfo" element
         */
        @Override
        public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.PasientInfo addNewPasientInfo() {
            synchronized (monitor()) {
                check_orphaned();
                no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.PasientInfo target = null;
                target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.PasientInfo)get_store().add_element_user(PROPERTY_QNAME[0]);
                return target;
            }
        }

        /**
         * Unsets the "PasientInfo" element
         */
        @Override
        public void unsetPasientInfo() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[0], 0);
            }
        }

        /**
         * Gets the "LastResept" element
         */
        @Override
        public boolean getLastResept() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                return (target == null) ? false : target.getBooleanValue();
            }
        }

        /**
         * Gets (as xml) the "LastResept" element
         */
        @Override
        public org.apache.xmlbeans.XmlBoolean xgetLastResept() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                return target;
            }
        }

        /**
         * True if has "LastResept" element
         */
        @Override
        public boolean isSetLastResept() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[1]) != 0;
            }
        }

        /**
         * Sets the "LastResept" element
         */
        @Override
        public void setLastResept(boolean lastResept) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[1]);
                }
                target.setBooleanValue(lastResept);
            }
        }

        /**
         * Sets (as xml) the "LastResept" element
         */
        @Override
        public void xsetLastResept(org.apache.xmlbeans.XmlBoolean lastResept) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(PROPERTY_QNAME[1]);
                }
                target.set(lastResept);
            }
        }

        /**
         * Unsets the "LastResept" element
         */
        @Override
        public void unsetLastResept() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[1], 0);
            }
        }

        /**
         * Gets the "Pasientreservasjon" element
         */
        @Override
        public boolean getPasientreservasjon() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                return (target == null) ? false : target.getBooleanValue();
            }
        }

        /**
         * Gets (as xml) the "Pasientreservasjon" element
         */
        @Override
        public org.apache.xmlbeans.XmlBoolean xgetPasientreservasjon() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                return target;
            }
        }

        /**
         * True if has "Pasientreservasjon" element
         */
        @Override
        public boolean isSetPasientreservasjon() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[2]) != 0;
            }
        }

        /**
         * Sets the "Pasientreservasjon" element
         */
        @Override
        public void setPasientreservasjon(boolean pasientreservasjon) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[2]);
                }
                target.setBooleanValue(pasientreservasjon);
            }
        }

        /**
         * Sets (as xml) the "Pasientreservasjon" element
         */
        @Override
        public void xsetPasientreservasjon(org.apache.xmlbeans.XmlBoolean pasientreservasjon) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.XmlBoolean target = null;
                target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(PROPERTY_QNAME[2]);
                }
                target.set(pasientreservasjon);
            }
        }

        /**
         * Unsets the "Pasientreservasjon" element
         */
        @Override
        public void unsetPasientreservasjon() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[2], 0);
            }
        }

        /**
         * Gets the "StatusSok" element
         */
        @Override
        public no.kith.xmlstds.CS getStatusSok() {
            synchronized (monitor()) {
                check_orphaned();
                no.kith.xmlstds.CS target = null;
                target = (no.kith.xmlstds.CS)get_store().find_element_user(PROPERTY_QNAME[3], 0);
                return (target == null) ? null : target;
            }
        }

        /**
         * True if has "StatusSok" element
         */
        @Override
        public boolean isSetStatusSok() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[3]) != 0;
            }
        }

        /**
         * Sets the "StatusSok" element
         */
        @Override
        public void setStatusSok(no.kith.xmlstds.CS statusSok) {
            generatedSetterHelperImpl(statusSok, PROPERTY_QNAME[3], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }

        /**
         * Appends and returns a new empty "StatusSok" element
         */
        @Override
        public no.kith.xmlstds.CS addNewStatusSok() {
            synchronized (monitor()) {
                check_orphaned();
                no.kith.xmlstds.CS target = null;
                target = (no.kith.xmlstds.CS)get_store().add_element_user(PROPERTY_QNAME[3]);
                return target;
            }
        }

        /**
         * Unsets the "StatusSok" element
         */
        @Override
        public void unsetStatusSok() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[3], 0);
            }
        }

        /**
         * Gets a List of "Listeelement" elements
         */
        @Override
        public java.util.List getListeelementList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getListeelementArray,
                    this::setListeelementArray,
                    this::insertNewListeelement,
                    this::removeListeelement,
                    this::sizeOfListeelementArray
                );
            }
        }

        /**
         * Gets array of all "Listeelement" elements
         */
        @Override
        public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement[] getListeelementArray() {
            return getXmlObjectArray(PROPERTY_QNAME[4], new no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement[0]);
        }

        /**
         * Gets ith "Listeelement" element
         */
        @Override
        public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement getListeelementArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement target = null;
                target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement)get_store().find_element_user(PROPERTY_QNAME[4], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }

        /**
         * Returns number of "Listeelement" element
         */
        @Override
        public int sizeOfListeelementArray() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[4]);
            }
        }

        /**
         * Sets array of all "Listeelement" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setListeelementArray(no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement[] listeelementArray) {
            check_orphaned();
            arraySetterHelper(listeelementArray, PROPERTY_QNAME[4]);
        }

        /**
         * Sets ith "Listeelement" element
         */
        @Override
        public void setListeelementArray(int i, no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement listeelement) {
            generatedSetterHelperImpl(listeelement, PROPERTY_QNAME[4], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }

        /**
         * Inserts and returns a new empty value (as xml) as the ith "Listeelement" element
         */
        @Override
        public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement insertNewListeelement(int i) {
            synchronized (monitor()) {
                check_orphaned();
                no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement target = null;
                target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement)get_store().insert_element_user(PROPERTY_QNAME[4], i);
                return target;
            }
        }

        /**
         * Appends and returns a new empty value (as xml) as the last "Listeelement" element
         */
        @Override
        public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement addNewListeelement() {
            synchronized (monitor()) {
                check_orphaned();
                no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement target = null;
                target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement)get_store().add_element_user(PROPERTY_QNAME[4]);
                return target;
            }
        }

        /**
         * Removes the ith "Listeelement" element
         */
        @Override
        public void removeListeelement(int i) {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[4], i);
            }
        }
        /**
         * An XML PasientInfo(@http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01).
         *
         * This is a complex type.
         */
        public static class PasientInfoImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.PasientInfo {
            private static final long serialVersionUID = 1L;

            public PasientInfoImpl(org.apache.xmlbeans.SchemaType sType) {
                super(sType);
            }

            private static final QName[] PROPERTY_QNAME = {
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "Fnr"),
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "AndreFnr"),
            };


            /**
             * Gets the "Fnr" element
             */
            @Override
            public java.lang.String getFnr() {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                    return (target == null) ? null : target.getStringValue();
                }
            }

            /**
             * Gets (as xml) the "Fnr" element
             */
            @Override
            public org.apache.xmlbeans.XmlString xgetFnr() {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                    return target;
                }
            }

            /**
             * Sets the "Fnr" element
             */
            @Override
            public void setFnr(java.lang.String fnr) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[0]);
                    }
                    target.setStringValue(fnr);
                }
            }

            /**
             * Sets (as xml) the "Fnr" element
             */
            @Override
            public void xsetFnr(org.apache.xmlbeans.XmlString fnr) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[0]);
                    }
                    target.set(fnr);
                }
            }

            /**
             * Gets a List of "AndreFnr" elements
             */
            @Override
            public java.util.List getAndreFnrList() {
                synchronized (monitor()) {
                    check_orphaned();
                    return new org.apache.xmlbeans.impl.values.JavaListObject<>(
                      this::getAndreFnrArray,
                      this::setAndreFnrArray,
                      this::insertAndreFnr,
                      this::removeAndreFnr,
                      this::sizeOfAndreFnrArray
                    );
                }
            }

            /**
             * Gets array of all "AndreFnr" elements
             */
            @Override
            public java.lang.String[] getAndreFnrArray() {
                return getObjectArray(PROPERTY_QNAME[1], org.apache.xmlbeans.SimpleValue::getStringValue, String[]::new);
            }

            /**
             * Gets ith "AndreFnr" element
             */
            @Override
            public java.lang.String getAndreFnrArray(int i) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], i);
                    if (target == null) {
                      throw new IndexOutOfBoundsException();
                    }
                    return target.getStringValue();
                }
            }

            /**
             * Gets (as xml) a List of "AndreFnr" elements
             */
            @Override
            public java.util.List xgetAndreFnrList() {
                synchronized (monitor()) {
                    check_orphaned();
                    return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                      this::xgetAndreFnrArray,
                      this::xsetAndreFnrArray,
                      this::insertNewAndreFnr,
                      this::removeAndreFnr,
                      this::sizeOfAndreFnrArray
                    );
                }
            }

            /**
             * Gets (as xml) array of all "AndreFnr" elements
             */
            @Override
            public org.apache.xmlbeans.XmlString[] xgetAndreFnrArray() {
                return xgetArray(PROPERTY_QNAME[1], org.apache.xmlbeans.XmlString[]::new);
            }

            /**
             * Gets (as xml) ith "AndreFnr" element
             */
            @Override
            public org.apache.xmlbeans.XmlString xgetAndreFnrArray(int i) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[1], i);
                    if (target == null) {
                      throw new IndexOutOfBoundsException();
                    }
                    return target;
                }
            }

            /**
             * Returns number of "AndreFnr" element
             */
            @Override
            public int sizeOfAndreFnrArray() {
                synchronized (monitor()) {
                    check_orphaned();
                    return get_store().count_elements(PROPERTY_QNAME[1]);
                }
            }

            /**
             * Sets array of all "AndreFnr" element
             */
            @Override
            public void setAndreFnrArray(java.lang.String[] andreFnrArray) {
                synchronized (monitor()) {
                    check_orphaned();
                    arraySetterHelper(andreFnrArray, PROPERTY_QNAME[1]);
                }
            }

            /**
             * Sets ith "AndreFnr" element
             */
            @Override
            public void setAndreFnrArray(int i, java.lang.String andreFnr) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], i);
                    if (target == null) {
                      throw new IndexOutOfBoundsException();
                    }
                    target.setStringValue(andreFnr);
                }
            }

            /**
             * Sets (as xml) array of all "AndreFnr" element
             */
            @Override
            public void xsetAndreFnrArray(org.apache.xmlbeans.XmlString[]andreFnrArray) {
                synchronized (monitor()) {
                    check_orphaned();
                    arraySetterHelper(andreFnrArray, PROPERTY_QNAME[1]);
                }
            }

            /**
             * Sets (as xml) ith "AndreFnr" element
             */
            @Override
            public void xsetAndreFnrArray(int i, org.apache.xmlbeans.XmlString andreFnr) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[1], i);
                    if (target == null) {
                      throw new IndexOutOfBoundsException();
                    }
                    target.set(andreFnr);
                }
            }

            /**
             * Inserts the value as the ith "AndreFnr" element
             */
            @Override
            public void insertAndreFnr(int i, java.lang.String andreFnr) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target =
                      (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(PROPERTY_QNAME[1], i);
                    target.setStringValue(andreFnr);
                }
            }

            /**
             * Appends the value as the last "AndreFnr" element
             */
            @Override
            public void addAndreFnr(java.lang.String andreFnr) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[1]);
                    target.setStringValue(andreFnr);
                }
            }

            /**
             * Inserts and returns a new empty value (as xml) as the ith "AndreFnr" element
             */
            @Override
            public org.apache.xmlbeans.XmlString insertNewAndreFnr(int i) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(PROPERTY_QNAME[1], i);
                    return target;
                }
            }

            /**
             * Appends and returns a new empty value (as xml) as the last "AndreFnr" element
             */
            @Override
            public org.apache.xmlbeans.XmlString addNewAndreFnr() {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[1]);
                    return target;
                }
            }

            /**
             * Removes the ith "AndreFnr" element
             */
            @Override
            public void removeAndreFnr(int i) {
                synchronized (monitor()) {
                    check_orphaned();
                    get_store().remove_element(PROPERTY_QNAME[1], i);
                }
            }
        }
        /**
         * An XML Listeelement(@http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01).
         *
         * This is a complex type.
         */
        public static class ListeelementImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement {
            private static final long serialVersionUID = 1L;

            public ListeelementImpl(org.apache.xmlbeans.SchemaType sType) {
                super(sType);
            }

            private static final QName[] PROPERTY_QNAME = {
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "ReseptId"),
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "NavnUtleverer"),
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "SendtSLVDato"),
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "Status"),
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "StatusSoknadSlv"),
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "TilbakekallingStatus"),
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "Arsak"),
                new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "Utlevering"),
            };


            /**
             * Gets the "ReseptId" element
             */
            @Override
            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(PROPERTY_QNAME[0], 0);
                    return (target == null) ? null : target.getStringValue();
                }
            }

            /**
             * Gets (as xml) the "ReseptId" element
             */
            @Override
            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(PROPERTY_QNAME[0], 0);
                    return target;
                }
            }

            /**
             * Sets the "ReseptId" element
             */
            @Override
            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(PROPERTY_QNAME[0], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[0]);
                    }
                    target.setStringValue(reseptId);
                }
            }

            /**
             * Sets (as xml) the "ReseptId" element
             */
            @Override
            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(PROPERTY_QNAME[0], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[0]);
                    }
                    target.set(reseptId);
                }
            }

            /**
             * Gets the "NavnUtleverer" element
             */
            @Override
            public java.lang.String getNavnUtleverer() {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                    return (target == null) ? null : target.getStringValue();
                }
            }

            /**
             * Gets (as xml) the "NavnUtleverer" element
             */
            @Override
            public org.apache.xmlbeans.XmlString xgetNavnUtleverer() {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                    return target;
                }
            }

            /**
             * True if has "NavnUtleverer" element
             */
            @Override
            public boolean isSetNavnUtleverer() {
                synchronized (monitor()) {
                    check_orphaned();
                    return get_store().count_elements(PROPERTY_QNAME[1]) != 0;
                }
            }

            /**
             * Sets the "NavnUtleverer" element
             */
            @Override
            public void setNavnUtleverer(java.lang.String navnUtleverer) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[1]);
                    }
                    target.setStringValue(navnUtleverer);
                }
            }

            /**
             * Sets (as xml) the "NavnUtleverer" element
             */
            @Override
            public void xsetNavnUtleverer(org.apache.xmlbeans.XmlString navnUtleverer) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlString target = null;
                    target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[1]);
                    }
                    target.set(navnUtleverer);
                }
            }

            /**
             * Unsets the "NavnUtleverer" element
             */
            @Override
            public void unsetNavnUtleverer() {
                synchronized (monitor()) {
                    check_orphaned();
                    get_store().remove_element(PROPERTY_QNAME[1], 0);
                }
            }

            /**
             * Gets the "SendtSLVDato" element
             */
            @Override
            public java.util.Calendar getSendtSLVDato() {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                    return (target == null) ? null : target.getCalendarValue();
                }
            }

            /**
             * Gets (as xml) the "SendtSLVDato" element
             */
            @Override
            public org.apache.xmlbeans.XmlDate xgetSendtSLVDato() {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlDate target = null;
                    target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                    return target;
                }
            }

            /**
             * True if has "SendtSLVDato" element
             */
            @Override
            public boolean isSetSendtSLVDato() {
                synchronized (monitor()) {
                    check_orphaned();
                    return get_store().count_elements(PROPERTY_QNAME[2]) != 0;
                }
            }

            /**
             * Sets the "SendtSLVDato" element
             */
            @Override
            public void setSendtSLVDato(java.util.Calendar sendtSLVDato) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[2]);
                    }
                    target.setCalendarValue(sendtSLVDato);
                }
            }

            /**
             * Sets (as xml) the "SendtSLVDato" element
             */
            @Override
            public void xsetSendtSLVDato(org.apache.xmlbeans.XmlDate sendtSLVDato) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlDate target = null;
                    target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(PROPERTY_QNAME[2]);
                    }
                    target.set(sendtSLVDato);
                }
            }

            /**
             * Unsets the "SendtSLVDato" element
             */
            @Override
            public void unsetSendtSLVDato() {
                synchronized (monitor()) {
                    check_orphaned();
                    get_store().remove_element(PROPERTY_QNAME[2], 0);
                }
            }

            /**
             * Gets the "Status" element
             */
            @Override
            public no.kith.xmlstds.CS getStatus() {
                synchronized (monitor()) {
                    check_orphaned();
                    no.kith.xmlstds.CS target = null;
                    target = (no.kith.xmlstds.CS)get_store().find_element_user(PROPERTY_QNAME[3], 0);
                    return (target == null) ? null : target;
                }
            }

            /**
             * Sets the "Status" element
             */
            @Override
            public void setStatus(no.kith.xmlstds.CS status) {
                generatedSetterHelperImpl(status, PROPERTY_QNAME[3], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
            }

            /**
             * Appends and returns a new empty "Status" element
             */
            @Override
            public no.kith.xmlstds.CS addNewStatus() {
                synchronized (monitor()) {
                    check_orphaned();
                    no.kith.xmlstds.CS target = null;
                    target = (no.kith.xmlstds.CS)get_store().add_element_user(PROPERTY_QNAME[3]);
                    return target;
                }
            }

            /**
             * Gets the "StatusSoknadSlv" element
             */
            @Override
            public no.kith.xmlstds.CS getStatusSoknadSlv() {
                synchronized (monitor()) {
                    check_orphaned();
                    no.kith.xmlstds.CS target = null;
                    target = (no.kith.xmlstds.CS)get_store().find_element_user(PROPERTY_QNAME[4], 0);
                    return (target == null) ? null : target;
                }
            }

            /**
             * True if has "StatusSoknadSlv" element
             */
            @Override
            public boolean isSetStatusSoknadSlv() {
                synchronized (monitor()) {
                    check_orphaned();
                    return get_store().count_elements(PROPERTY_QNAME[4]) != 0;
                }
            }

            /**
             * Sets the "StatusSoknadSlv" element
             */
            @Override
            public void setStatusSoknadSlv(no.kith.xmlstds.CS statusSoknadSlv) {
                generatedSetterHelperImpl(statusSoknadSlv, PROPERTY_QNAME[4], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
            }

            /**
             * Appends and returns a new empty "StatusSoknadSlv" element
             */
            @Override
            public no.kith.xmlstds.CS addNewStatusSoknadSlv() {
                synchronized (monitor()) {
                    check_orphaned();
                    no.kith.xmlstds.CS target = null;
                    target = (no.kith.xmlstds.CS)get_store().add_element_user(PROPERTY_QNAME[4]);
                    return target;
                }
            }

            /**
             * Unsets the "StatusSoknadSlv" element
             */
            @Override
            public void unsetStatusSoknadSlv() {
                synchronized (monitor()) {
                    check_orphaned();
                    get_store().remove_element(PROPERTY_QNAME[4], 0);
                }
            }

            /**
             * Gets the "TilbakekallingStatus" element
             */
            @Override
            public boolean getTilbakekallingStatus() {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[5], 0);
                    return (target == null) ? false : target.getBooleanValue();
                }
            }

            /**
             * Gets (as xml) the "TilbakekallingStatus" element
             */
            @Override
            public org.apache.xmlbeans.XmlBoolean xgetTilbakekallingStatus() {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlBoolean target = null;
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PROPERTY_QNAME[5], 0);
                    return target;
                }
            }

            /**
             * True if has "TilbakekallingStatus" element
             */
            @Override
            public boolean isSetTilbakekallingStatus() {
                synchronized (monitor()) {
                    check_orphaned();
                    return get_store().count_elements(PROPERTY_QNAME[5]) != 0;
                }
            }

            /**
             * Sets the "TilbakekallingStatus" element
             */
            @Override
            public void setTilbakekallingStatus(boolean tilbakekallingStatus) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.SimpleValue target = null;
                    target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[5], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[5]);
                    }
                    target.setBooleanValue(tilbakekallingStatus);
                }
            }

            /**
             * Sets (as xml) the "TilbakekallingStatus" element
             */
            @Override
            public void xsetTilbakekallingStatus(org.apache.xmlbeans.XmlBoolean tilbakekallingStatus) {
                synchronized (monitor()) {
                    check_orphaned();
                    org.apache.xmlbeans.XmlBoolean target = null;
                    target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(PROPERTY_QNAME[5], 0);
                    if (target == null) {
                      target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(PROPERTY_QNAME[5]);
                    }
                    target.set(tilbakekallingStatus);
                }
            }

            /**
             * Unsets the "TilbakekallingStatus" element
             */
            @Override
            public void unsetTilbakekallingStatus() {
                synchronized (monitor()) {
                    check_orphaned();
                    get_store().remove_element(PROPERTY_QNAME[5], 0);
                }
            }

            /**
             * Gets the "Arsak" element
             */
            @Override
            public no.kith.xmlstds.CV getArsak() {
                synchronized (monitor()) {
                    check_orphaned();
                    no.kith.xmlstds.CV target = null;
                    target = (no.kith.xmlstds.CV)get_store().find_element_user(PROPERTY_QNAME[6], 0);
                    return (target == null) ? null : target;
                }
            }

            /**
             * True if has "Arsak" element
             */
            @Override
            public boolean isSetArsak() {
                synchronized (monitor()) {
                    check_orphaned();
                    return get_store().count_elements(PROPERTY_QNAME[6]) != 0;
                }
            }

            /**
             * Sets the "Arsak" element
             */
            @Override
            public void setArsak(no.kith.xmlstds.CV arsak) {
                generatedSetterHelperImpl(arsak, PROPERTY_QNAME[6], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
            }

            /**
             * Appends and returns a new empty "Arsak" element
             */
            @Override
            public no.kith.xmlstds.CV addNewArsak() {
                synchronized (monitor()) {
                    check_orphaned();
                    no.kith.xmlstds.CV target = null;
                    target = (no.kith.xmlstds.CV)get_store().add_element_user(PROPERTY_QNAME[6]);
                    return target;
                }
            }

            /**
             * Unsets the "Arsak" element
             */
            @Override
            public void unsetArsak() {
                synchronized (monitor()) {
                    check_orphaned();
                    get_store().remove_element(PROPERTY_QNAME[6], 0);
                }
            }

            /**
             * Gets a List of "Utlevering" elements
             */
            @Override
            public java.util.List getUtleveringList() {
                synchronized (monitor()) {
                    check_orphaned();
                    return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                      this::getUtleveringArray,
                      this::setUtleveringArray,
                      this::insertNewUtlevering,
                      this::removeUtlevering,
                      this::sizeOfUtleveringArray
                    );
                }
            }

            /**
             * Gets array of all "Utlevering" elements
             */
            @Override
            public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering[] getUtleveringArray() {
                return getXmlObjectArray(PROPERTY_QNAME[7], new no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering[0]);
            }

            /**
             * Gets ith "Utlevering" element
             */
            @Override
            public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering getUtleveringArray(int i) {
                synchronized (monitor()) {
                    check_orphaned();
                    no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering target = null;
                    target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering)get_store().find_element_user(PROPERTY_QNAME[7], i);
                    if (target == null) {
                      throw new IndexOutOfBoundsException();
                    }
                    return target;
                }
            }

            /**
             * Returns number of "Utlevering" element
             */
            @Override
            public int sizeOfUtleveringArray() {
                synchronized (monitor()) {
                    check_orphaned();
                    return get_store().count_elements(PROPERTY_QNAME[7]);
                }
            }

            /**
             * Sets array of all "Utlevering" element  WARNING: This method is not atomicaly synchronized.
             */
            @Override
            public void setUtleveringArray(no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering[] utleveringArray) {
                check_orphaned();
                arraySetterHelper(utleveringArray, PROPERTY_QNAME[7]);
            }

            /**
             * Sets ith "Utlevering" element
             */
            @Override
            public void setUtleveringArray(int i, no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering utlevering) {
                generatedSetterHelperImpl(utlevering, PROPERTY_QNAME[7], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
            }

            /**
             * Inserts and returns a new empty value (as xml) as the ith "Utlevering" element
             */
            @Override
            public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering insertNewUtlevering(int i) {
                synchronized (monitor()) {
                    check_orphaned();
                    no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering target = null;
                    target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering)get_store().insert_element_user(PROPERTY_QNAME[7], i);
                    return target;
                }
            }

            /**
             * Appends and returns a new empty value (as xml) as the last "Utlevering" element
             */
            @Override
            public no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering addNewUtlevering() {
                synchronized (monitor()) {
                    check_orphaned();
                    no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering target = null;
                    target = (no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering)get_store().add_element_user(PROPERTY_QNAME[7]);
                    return target;
                }
            }

            /**
             * Removes the ith "Utlevering" element
             */
            @Override
            public void removeUtlevering(int i) {
                synchronized (monitor()) {
                    check_orphaned();
                    get_store().remove_element(PROPERTY_QNAME[7], i);
                }
            }
            /**
             * An XML Utlevering(@http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01).
             *
             * This is a complex type.
             */
            public static class UtleveringImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.ehelse.xmlstds.eresept.m96.x20180701.M96Document.M96.Listeelement.Utlevering {
                private static final long serialVersionUID = 1L;

                public UtleveringImpl(org.apache.xmlbeans.SchemaType sType) {
                    super(sType);
                }

                private static final QName[] PROPERTY_QNAME = {
                    new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "Varenr"),
                    new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "NavnFormStyrke"),
                    new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "Pakningsstr"),
                    new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "AntallPakningerUtlevertTotalt"),
                    new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "AntallPakningerUtlevertSiste"),
                    new QName("http://www.ehelse.no/xmlstds/eresept/m96/2018-07-01", "TidspunktSisteUtlevering"),
                };


                /**
                 * Gets the "Varenr" element
                 */
                @Override
                public java.lang.String getVarenr() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                      return (target == null) ? null : target.getStringValue();
                    }
                }

                /**
                 * Gets (as xml) the "Varenr" element
                 */
                @Override
                public org.apache.xmlbeans.XmlString xgetVarenr() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlString target = null;
                      target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                      return target;
                    }
                }

                /**
                 * True if has "Varenr" element
                 */
                @Override
                public boolean isSetVarenr() {
                    synchronized (monitor()) {
                      check_orphaned();
                      return get_store().count_elements(PROPERTY_QNAME[0]) != 0;
                    }
                }

                /**
                 * Sets the "Varenr" element
                 */
                @Override
                public void setVarenr(java.lang.String varenr) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[0]);
                      }
                      target.setStringValue(varenr);
                    }
                }

                /**
                 * Sets (as xml) the "Varenr" element
                 */
                @Override
                public void xsetVarenr(org.apache.xmlbeans.XmlString varenr) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlString target = null;
                      target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[0]);
                      }
                      target.set(varenr);
                    }
                }

                /**
                 * Unsets the "Varenr" element
                 */
                @Override
                public void unsetVarenr() {
                    synchronized (monitor()) {
                      check_orphaned();
                      get_store().remove_element(PROPERTY_QNAME[0], 0);
                    }
                }

                /**
                 * Gets the "NavnFormStyrke" element
                 */
                @Override
                public java.lang.String getNavnFormStyrke() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                      return (target == null) ? null : target.getStringValue();
                    }
                }

                /**
                 * Gets (as xml) the "NavnFormStyrke" element
                 */
                @Override
                public org.apache.xmlbeans.XmlString xgetNavnFormStyrke() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlString target = null;
                      target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                      return target;
                    }
                }

                /**
                 * Sets the "NavnFormStyrke" element
                 */
                @Override
                public void setNavnFormStyrke(java.lang.String navnFormStyrke) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[1]);
                      }
                      target.setStringValue(navnFormStyrke);
                    }
                }

                /**
                 * Sets (as xml) the "NavnFormStyrke" element
                 */
                @Override
                public void xsetNavnFormStyrke(org.apache.xmlbeans.XmlString navnFormStyrke) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlString target = null;
                      target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[1]);
                      }
                      target.set(navnFormStyrke);
                    }
                }

                /**
                 * Gets the "Pakningsstr" element
                 */
                @Override
                public no.kith.xmlstds.PQ getPakningsstr() {
                    synchronized (monitor()) {
                      check_orphaned();
                      no.kith.xmlstds.PQ target = null;
                      target = (no.kith.xmlstds.PQ)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                      return (target == null) ? null : target;
                    }
                }

                /**
                 * True if has "Pakningsstr" element
                 */
                @Override
                public boolean isSetPakningsstr() {
                    synchronized (monitor()) {
                      check_orphaned();
                      return get_store().count_elements(PROPERTY_QNAME[2]) != 0;
                    }
                }

                /**
                 * Sets the "Pakningsstr" element
                 */
                @Override
                public void setPakningsstr(no.kith.xmlstds.PQ pakningsstr) {
                    generatedSetterHelperImpl(pakningsstr, PROPERTY_QNAME[2], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
                }

                /**
                 * Appends and returns a new empty "Pakningsstr" element
                 */
                @Override
                public no.kith.xmlstds.PQ addNewPakningsstr() {
                    synchronized (monitor()) {
                      check_orphaned();
                      no.kith.xmlstds.PQ target = null;
                      target = (no.kith.xmlstds.PQ)get_store().add_element_user(PROPERTY_QNAME[2]);
                      return target;
                    }
                }

                /**
                 * Unsets the "Pakningsstr" element
                 */
                @Override
                public void unsetPakningsstr() {
                    synchronized (monitor()) {
                      check_orphaned();
                      get_store().remove_element(PROPERTY_QNAME[2], 0);
                    }
                }

                /**
                 * Gets the "AntallPakningerUtlevertTotalt" element
                 */
                @Override
                public java.math.BigDecimal getAntallPakningerUtlevertTotalt() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[3], 0);
                      return (target == null) ? null : target.getBigDecimalValue();
                    }
                }

                /**
                 * Gets (as xml) the "AntallPakningerUtlevertTotalt" element
                 */
                @Override
                public org.apache.xmlbeans.XmlDecimal xgetAntallPakningerUtlevertTotalt() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlDecimal target = null;
                      target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(PROPERTY_QNAME[3], 0);
                      return target;
                    }
                }

                /**
                 * Sets the "AntallPakningerUtlevertTotalt" element
                 */
                @Override
                public void setAntallPakningerUtlevertTotalt(java.math.BigDecimal antallPakningerUtlevertTotalt) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[3], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[3]);
                      }
                      target.setBigDecimalValue(antallPakningerUtlevertTotalt);
                    }
                }

                /**
                 * Sets (as xml) the "AntallPakningerUtlevertTotalt" element
                 */
                @Override
                public void xsetAntallPakningerUtlevertTotalt(org.apache.xmlbeans.XmlDecimal antallPakningerUtlevertTotalt) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlDecimal target = null;
                      target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(PROPERTY_QNAME[3], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.XmlDecimal)get_store().add_element_user(PROPERTY_QNAME[3]);
                      }
                      target.set(antallPakningerUtlevertTotalt);
                    }
                }

                /**
                 * Gets the "AntallPakningerUtlevertSiste" element
                 */
                @Override
                public java.math.BigDecimal getAntallPakningerUtlevertSiste() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[4], 0);
                      return (target == null) ? null : target.getBigDecimalValue();
                    }
                }

                /**
                 * Gets (as xml) the "AntallPakningerUtlevertSiste" element
                 */
                @Override
                public org.apache.xmlbeans.XmlDecimal xgetAntallPakningerUtlevertSiste() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlDecimal target = null;
                      target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(PROPERTY_QNAME[4], 0);
                      return target;
                    }
                }

                /**
                 * Sets the "AntallPakningerUtlevertSiste" element
                 */
                @Override
                public void setAntallPakningerUtlevertSiste(java.math.BigDecimal antallPakningerUtlevertSiste) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[4], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[4]);
                      }
                      target.setBigDecimalValue(antallPakningerUtlevertSiste);
                    }
                }

                /**
                 * Sets (as xml) the "AntallPakningerUtlevertSiste" element
                 */
                @Override
                public void xsetAntallPakningerUtlevertSiste(org.apache.xmlbeans.XmlDecimal antallPakningerUtlevertSiste) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlDecimal target = null;
                      target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(PROPERTY_QNAME[4], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.XmlDecimal)get_store().add_element_user(PROPERTY_QNAME[4]);
                      }
                      target.set(antallPakningerUtlevertSiste);
                    }
                }

                /**
                 * Gets the "TidspunktSisteUtlevering" element
                 */
                @Override
                public java.util.Calendar getTidspunktSisteUtlevering() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[5], 0);
                      return (target == null) ? null : target.getCalendarValue();
                    }
                }

                /**
                 * Gets (as xml) the "TidspunktSisteUtlevering" element
                 */
                @Override
                public org.apache.xmlbeans.XmlDateTime xgetTidspunktSisteUtlevering() {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlDateTime target = null;
                      target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(PROPERTY_QNAME[5], 0);
                      return target;
                    }
                }

                /**
                 * Sets the "TidspunktSisteUtlevering" element
                 */
                @Override
                public void setTidspunktSisteUtlevering(java.util.Calendar tidspunktSisteUtlevering) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.SimpleValue target = null;
                      target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[5], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[5]);
                      }
                      target.setCalendarValue(tidspunktSisteUtlevering);
                    }
                }

                /**
                 * Sets (as xml) the "TidspunktSisteUtlevering" element
                 */
                @Override
                public void xsetTidspunktSisteUtlevering(org.apache.xmlbeans.XmlDateTime tidspunktSisteUtlevering) {
                    synchronized (monitor()) {
                      check_orphaned();
                      org.apache.xmlbeans.XmlDateTime target = null;
                      target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(PROPERTY_QNAME[5], 0);
                      if (target == null) {
                        target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(PROPERTY_QNAME[5]);
                      }
                      target.set(tidspunktSisteUtlevering);
                    }
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy