/**
 * URLScheme.java
 * <p>
 * File generated from the voc::URLScheme 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 URLScheme.
 *
 */

@XmlType(name = "URLScheme")
@XmlEnum
@XmlRootElement(name = "URLScheme")
public enum URLScheme {
	@XmlEnumValue("fax")
	FAX("fax"),
	@XmlEnumValue("file")
	FILE("file"),
	@XmlEnumValue("ftp")
	FTP("ftp"),
	@XmlEnumValue("http")
	HTTP("http"),
	@XmlEnumValue("mailto")
	MAILTO("mailto"),
	@XmlEnumValue("mllp")
	MLLP("mllp"),
	@XmlEnumValue("modem")
	MODEM("modem"),
	@XmlEnumValue("nfs")
	NFS("nfs"),
	@XmlEnumValue("tel")
	TEL("tel"),
	@XmlEnumValue("telnet")
	TELNET("telnet");
	
	private final String value;

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

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