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

@XmlType(name = "RelationalOperator")
@XmlEnum
@XmlRootElement(name = "RelationalOperator")
public enum RelationalOperator {
	@XmlEnumValue("CT")
	CT("CT"),
	@XmlEnumValue("EQ")
	EQ("EQ"),
	@XmlEnumValue("GE")
	GE("GE"),
	@XmlEnumValue("GN")
	GN("GN"),
	@XmlEnumValue("GT")
	GT("GT"),
	@XmlEnumValue("LE")
	LE("LE"),
	@XmlEnumValue("LT")
	LT("LT"),
	@XmlEnumValue("NE")
	NE("NE");
	
	private final String value;

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

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