com.sportradar.uf.sportsapi.datamodel.SAPITimeType Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.05.22 at 02:21:20 PM CEST
//
package com.sportradar.uf.sportsapi.datamodel;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for timeType.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="timeType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="interval"/>
* <enumeration value="fixed"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "timeType")
@XmlEnum
public enum SAPITimeType {
/**
* INTERVAL
*
*/
@XmlEnumValue("interval")
INTERVAL("interval"),
/**
* FIXED
*
*/
@XmlEnumValue("fixed")
FIXED("fixed");
private final String value;
SAPITimeType(String v) {
value = v;
}
public String value() {
return value;
}
public static SAPITimeType fromValue(String v) {
for (SAPITimeType c: SAPITimeType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}