
org.omg.space.xtce.AlarmLevels Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.10.10 at 07:54:25 AM MST
//
package org.omg.space.xtce;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for AlarmLevels.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="AlarmLevels">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="normal"/>
* <enumeration value="watch"/>
* <enumeration value="warning"/>
* <enumeration value="distress"/>
* <enumeration value="critical"/>
* <enumeration value="severe"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "AlarmLevels")
@XmlEnum
public enum AlarmLevels {
@XmlEnumValue("normal")
NORMAL("normal"),
@XmlEnumValue("watch")
WATCH("watch"),
@XmlEnumValue("warning")
WARNING("warning"),
@XmlEnumValue("distress")
DISTRESS("distress"),
@XmlEnumValue("critical")
CRITICAL("critical"),
@XmlEnumValue("severe")
SEVERE("severe");
private final String value;
AlarmLevels(String v) {
value = v;
}
public String value() {
return value;
}
public static AlarmLevels fromValue(String v) {
for (AlarmLevels c: AlarmLevels.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy