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 Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.10.07 at 09:31:24 AM MDT
//
package org.hl7.cql_annotations.r1;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.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);
}
}