org.hl7.fhir.UnitsOfTimeList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quick Show documentation
Show all versions of quick Show documentation
The quick 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.08.16 at 09:36:55 AM MDT
//
package org.hl7.fhir;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for UnitsOfTime-list.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="UnitsOfTime-list">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="s"/>
* <enumeration value="min"/>
* <enumeration value="h"/>
* <enumeration value="d"/>
* <enumeration value="wk"/>
* <enumeration value="mo"/>
* <enumeration value="a"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "UnitsOfTime-list")
@XmlEnum
public enum UnitsOfTimeList {
@XmlEnumValue("s")
S("s"),
@XmlEnumValue("min")
MIN("min"),
@XmlEnumValue("h")
H("h"),
@XmlEnumValue("d")
D("d"),
@XmlEnumValue("wk")
WK("wk"),
@XmlEnumValue("mo")
MO("mo"),
@XmlEnumValue("a")
A("a");
private final java.lang.String value;
UnitsOfTimeList(java.lang.String v) {
value = v;
}
public java.lang.String value() {
return value;
}
public static UnitsOfTimeList fromValue(java.lang.String v) {
for (UnitsOfTimeList c: UnitsOfTimeList.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}