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

@XmlType(name = "EntityClassMaterial")
@XmlEnum
@XmlRootElement(name = "EntityClassMaterial")
public enum EntityClassMaterial {
	@XmlEnumValue("CER")
	CER("CER"),
	@XmlEnumValue("CHEM")
	CHEM("CHEM"),
	@XmlEnumValue("CONT")
	CONT("CONT"),
	@XmlEnumValue("DEV")
	DEV("DEV"),
	@XmlEnumValue("FOOD")
	FOOD("FOOD"),
	@XmlEnumValue("HOLD")
	HOLD("HOLD"),
	@XmlEnumValue("MAT")
	MAT("MAT"),
	@XmlEnumValue("MMAT")
	MMAT("MMAT"),
	@XmlEnumValue("MODDV")
	MODDV("MODDV");
	
	private final String value;

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

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