/*
 * Copyright 2018 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.openehealth.ipf.commons.ihe.xacml20.stub.hl7v3;

import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.annotation.XmlElementDecl;
import jakarta.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;


/**
 * This object contains factory methods for each 
 * Java content interface and Java element interface 
 * generated in the org.openehealth.ipf.commons.ihe.xacml20.stub.hl7v3 package. 
 * <p>An ObjectFactory allows you to programatically 
 * construct new instances of the Java representation 
 * for XML content. The Java representation of XML 
 * content can consist of schema derived interfaces 
 * and classes representing the binding of schema 
 * type definitions, element declarations and model 
 * groups.  Factory methods for each of these are 
 * provided in this class.
 * 
 */
@XmlRegistry
public class ObjectFactory {

    private final static QName _CodedValue_QNAME = new QName("urn:hl7-org:v3", "CodedValue");
    private final static QName _InstanceIdentifier_QNAME = new QName("urn:hl7-org:v3", "InstanceIdentifier");
    private final static QName _PurposeOfUse_QNAME = new QName("urn:hl7-org:v3", "PurposeOfUse");
    private final static QName _Role_QNAME = new QName("urn:hl7-org:v3", "Role");

    /**
     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.openehealth.ipf.commons.ihe.xacml20.stub.hl7v3
     * 
     */
    public ObjectFactory() {
    }

    /**
     * Create an instance of {@link CV }
     * 
     */
    public CV createCV() {
        return new CV();
    }

    /**
     * Create an instance of {@link II }
     * 
     */
    public II createII() {
        return new II();
    }

    /**
     * Create an instance of {@link CE }
     */
    public CE createCE() {
        return new CE();
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link CV }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "urn:hl7-org:v3", name = "CodedValue")
    public JAXBElement<CV> createCodedValue(CV value) {
        return new JAXBElement<>(_CodedValue_QNAME, CV.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link II }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "urn:hl7-org:v3", name = "InstanceIdentifier")
    public JAXBElement<II> createInstanceIdentifier(II value) {
        return new JAXBElement<>(_InstanceIdentifier_QNAME, II.class, null, value);
    }

    @XmlElementDecl(namespace = "urn:hl7-org:v3", name = "PurposeOfUse")
    public JAXBElement<CE> createPurposeOfUse(CE value) {
        return new JAXBElement<>(_PurposeOfUse_QNAME, CE.class, null, value);
    }

    @XmlElementDecl(namespace = "urn:hl7-org:v3", name = "Role")
    public JAXBElement<CE> createRole(CE value) {
        return new JAXBElement<>(_Role_QNAME, CE.class, null, value);
    }

}
