org.cqframework.cql.elm.execution.DateTimePrecision Maven / Gradle / Ivy
//
// 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: 2020.09.30 at 08:06:11 PM UTC
//
package org.cqframework.cql.elm.execution;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for DateTimePrecision.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="DateTimePrecision">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Year"/>
* <enumeration value="Month"/>
* <enumeration value="Week"/>
* <enumeration value="Day"/>
* <enumeration value="Hour"/>
* <enumeration value="Minute"/>
* <enumeration value="Second"/>
* <enumeration value="Millisecond"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "DateTimePrecision", namespace = "urn:hl7-org:elm:r1")
@XmlEnum
public enum DateTimePrecision {
@XmlEnumValue("Year")
YEAR("Year"),
@XmlEnumValue("Month")
MONTH("Month"),
@XmlEnumValue("Week")
WEEK("Week"),
@XmlEnumValue("Day")
DAY("Day"),
@XmlEnumValue("Hour")
HOUR("Hour"),
@XmlEnumValue("Minute")
MINUTE("Minute"),
@XmlEnumValue("Second")
SECOND("Second"),
@XmlEnumValue("Millisecond")
MILLISECOND("Millisecond");
private final String value;
DateTimePrecision(String v) {
value = v;
}
public String value() {
return value;
}
public static DateTimePrecision fromValue(String v) {
for (DateTimePrecision c: DateTimePrecision.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}