com.hubject.datex.energyinfrastructure.generated.common.DayEnum2 Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1
// 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.06 at 11:44:34 AM CEST
//
package com.hubject.datex.energyinfrastructure.generated.common;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for DayEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="DayEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="monday"/>
* <enumeration value="tuesday"/>
* <enumeration value="wednesday"/>
* <enumeration value="thursday"/>
* <enumeration value="friday"/>
* <enumeration value="saturday"/>
* <enumeration value="sunday"/>
* <enumeration value="_extended"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "DayEnum")
@XmlEnum
public enum DayEnum2 {
@XmlEnumValue("monday")
MONDAY("monday"),
@XmlEnumValue("tuesday")
TUESDAY("tuesday"),
@XmlEnumValue("wednesday")
WEDNESDAY("wednesday"),
@XmlEnumValue("thursday")
THURSDAY("thursday"),
@XmlEnumValue("friday")
FRIDAY("friday"),
@XmlEnumValue("saturday")
SATURDAY("saturday"),
@XmlEnumValue("sunday")
SUNDAY("sunday"),
@XmlEnumValue("_extended")
EXTENDED("_extended");
private final String value;
DayEnum2(String v) {
value = v;
}
public String value() {
return value;
}
public static DayEnum2 fromValue(String v) {
for (DayEnum2 c: DayEnum2 .values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}