org.omg.space.xtce.AlarmLevels Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtcetools Show documentation
Show all versions of xtcetools Show documentation
This project contains software to support the Object Management Group (OMG) Space Domain Task Force (SDTF) maintained XML Telemetry and Command Exchange (XTCE) specification.
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.03.16 at 05:52:46 PM 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);
}
}