/**
 * Charset.java
 * <p>
 * File generated from the voc::Charset uml Enumeration
 * Generated by IHE - europe, gazelle team
 */
package net.ihe.gazelle.hl7v3.voc;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
/**
 * Description of the enumeration Charset.
 *
 */

@XmlType(name = "Charset")
@XmlEnum
@XmlRootElement(name = "Charset")
public enum Charset {
	@XmlEnumValue("EBCDIC")
	EBCDIC("EBCDIC"),
	@XmlEnumValue("ISO-10646-UCS-2")
	ISO10646UCS2("ISO-10646-UCS-2"),
	@XmlEnumValue("ISO-10646-UCS-4")
	ISO10646UCS4("ISO-10646-UCS-4"),
	@XmlEnumValue("ISO-8859-1")
	ISO88591("ISO-8859-1"),
	@XmlEnumValue("ISO-8859-2")
	ISO88592("ISO-8859-2"),
	@XmlEnumValue("ISO-8859-5")
	ISO88595("ISO-8859-5"),
	@XmlEnumValue("JIS-2022-JP")
	JIS2022JP("JIS-2022-JP"),
	@XmlEnumValue("US-ASCII")
	USASCII("US-ASCII"),
	@XmlEnumValue("UTF-7")
	UTF7("UTF-7"),
	@XmlEnumValue("UTF-8")
	UTF8("UTF-8");
	
	private final String value;

    Charset(String v) {
        value = v;
    }
    
     public String value() {
        return value;
    }

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