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

no.kith.xmlstds.eresept.m14.x20081212.impl.SoknadSLVDocumentImpl Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
/*
 * An XML document type.
 * Localname: SoknadSLV
 * Namespace: http://www.kith.no/xmlstds/eresept/m14/2008-12-12
 * Java type: no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument
 *
 * Automatically generated - do not modify.
 */
package no.kith.xmlstds.eresept.m14.x20081212.impl;

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

/**
 * A document containing one SoknadSLV(@http://www.kith.no/xmlstds/eresept/m14/2008-12-12) element.
 *
 * This is a complex type.
 */
public class SoknadSLVDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument {
    private static final long serialVersionUID = 1L;

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

    private static final QName[] PROPERTY_QNAME = {
        new QName("http://www.kith.no/xmlstds/eresept/m14/2008-12-12", "SoknadSLV"),
    };


    /**
     * Gets the "SoknadSLV" element
     */
    @Override
    public no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument.SoknadSLV getSoknadSLV() {
        synchronized (monitor()) {
            check_orphaned();
            no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument.SoknadSLV target = null;
            target = (no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument.SoknadSLV)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            return (target == null) ? null : target;
        }
    }

    /**
     * Sets the "SoknadSLV" element
     */
    @Override
    public void setSoknadSLV(no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument.SoknadSLV soknadSLV) {
        generatedSetterHelperImpl(soknadSLV, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }

    /**
     * Appends and returns a new empty "SoknadSLV" element
     */
    @Override
    public no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument.SoknadSLV addNewSoknadSLV() {
        synchronized (monitor()) {
            check_orphaned();
            no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument.SoknadSLV target = null;
            target = (no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument.SoknadSLV)get_store().add_element_user(PROPERTY_QNAME[0]);
            return target;
        }
    }
    /**
     * An XML SoknadSLV(@http://www.kith.no/xmlstds/eresept/m14/2008-12-12).
     *
     * This is a complex type.
     */
    public static class SoknadSLVImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.eresept.m14.x20081212.SoknadSLVDocument.SoknadSLV {
        private static final long serialVersionUID = 1L;

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

        private static final QName[] PROPERTY_QNAME = {
            new QName("http://www.kith.no/xmlstds/eresept/m14/2008-12-12", "ReseptId"),
            new QName("http://www.kith.no/xmlstds/eresept/m14/2008-12-12", "AnmodningSLVId"),
        };


        /**
         * 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 "AnmodningSLVId" element
         */
        @Override
        public java.lang.String getAnmodningSLVId() {
            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 "AnmodningSLVId" element
         */
        @Override
        public org.apache.xmlbeans.XmlString xgetAnmodningSLVId() {
            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 "AnmodningSLVId" element
         */
        @Override
        public boolean isSetAnmodningSLVId() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[1]) != 0;
            }
        }

        /**
         * Sets the "AnmodningSLVId" element
         */
        @Override
        public void setAnmodningSLVId(java.lang.String anmodningSLVId) {
            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(anmodningSLVId);
            }
        }

        /**
         * Sets (as xml) the "AnmodningSLVId" element
         */
        @Override
        public void xsetAnmodningSLVId(org.apache.xmlbeans.XmlString anmodningSLVId) {
            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(anmodningSLVId);
            }
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy