org.hl7.cql_annotations.r1.ErrorSeverity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elm Show documentation
Show all versions of elm Show documentation
The elm library for the Clinical Quality Language Java reference implementation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.4.0-b180830.0438
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2023.08.24 at 01:22:35 PM MDT
//
package org.hl7.cql_annotations.r1;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ErrorSeverity.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ErrorSeverity">
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="info"/>
* <enumeration value="warning"/>
* <enumeration value="error"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ErrorSeverity", namespace = "urn:hl7-org:cql-annotations:r1")
@XmlEnum
public enum ErrorSeverity {
/**
* The message is informational and does not impact the translator output.
*
*/
@XmlEnumValue("info")
INFO("info"),
/**
* The message is a warning that some unexpected behavior may occur, but is not critical enough to prevent translation.
*
*/
@XmlEnumValue("warning")
WARNING("warning"),
/**
* The message is an error that is preventing the translation from completing successfully.
*
*/
@XmlEnumValue("error")
ERROR("error");
private final String value;
ErrorSeverity(String v) {
value = v;
}
public String value() {
return value;
}
public static ErrorSeverity fromValue(String v) {
for (ErrorSeverity c: ErrorSeverity.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}