
org.omg.space.xtce.TimeUnits 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 TimeUnits.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="TimeUnits">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="seconds"/>
* <enumeration value="picoSeconds"/>
* <enumeration value="days"/>
* <enumeration value="months"/>
* <enumeration value="years"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "TimeUnits")
@XmlEnum
public enum TimeUnits {
@XmlEnumValue("seconds")
SECONDS("seconds"),
@XmlEnumValue("picoSeconds")
PICO_SECONDS("picoSeconds"),
@XmlEnumValue("days")
DAYS("days"),
@XmlEnumValue("months")
MONTHS("months"),
@XmlEnumValue("years")
YEARS("years");
private final String value;
TimeUnits(String v) {
value = v;
}
public String value() {
return value;
}
public static TimeUnits fromValue(String v) {
for (TimeUnits c: TimeUnits.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy