//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2025.01.29 at 12:02:45 PM CET 
//


package org.openehealth.ipf.commons.ihe.ech.stub.ech_0215._2;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;


/**
 * <p>Java class for cancellationReasonType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="cancellationReasonType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *     &lt;enumeration value="notMentioned"/>
 *     &lt;enumeration value="generatedByMistake"/>
 *     &lt;enumeration value="requestedByOwner"/>
 *     &lt;enumeration value="badIdentification"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "cancellationReasonType")
@XmlEnum
public enum CancellationReasonType {

    @XmlEnumValue("notMentioned")
    NOT_MENTIONED("notMentioned"),
    @XmlEnumValue("generatedByMistake")
    GENERATED_BY_MISTAKE("generatedByMistake"),
    @XmlEnumValue("requestedByOwner")
    REQUESTED_BY_OWNER("requestedByOwner"),
    @XmlEnumValue("badIdentification")
    BAD_IDENTIFICATION("badIdentification");
    private final String value;

    CancellationReasonType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static CancellationReasonType fromValue(String v) {
        for (CancellationReasonType c: CancellationReasonType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
