
eu.datex2.schema._2._2_0.WeekOfMonthEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datex2-api Show documentation
Show all versions of datex2-api Show documentation
DATEX II API for Java, allows to create DATEX II suppliers and clients.
The newest version!
package eu.datex2.schema._2._2_0;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for WeekOfMonthEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="WeekOfMonthEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="firstWeekOfMonth"/>
* <enumeration value="secondWeekOfMonth"/>
* <enumeration value="thirdWeekOfMonth"/>
* <enumeration value="fourthWeekOfMonth"/>
* <enumeration value="fifthWeekOfMonth"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "WeekOfMonthEnum")
@XmlEnum
public enum WeekOfMonthEnum {
@XmlEnumValue("firstWeekOfMonth")
FIRST_WEEK_OF_MONTH("firstWeekOfMonth"),
@XmlEnumValue("secondWeekOfMonth")
SECOND_WEEK_OF_MONTH("secondWeekOfMonth"),
@XmlEnumValue("thirdWeekOfMonth")
THIRD_WEEK_OF_MONTH("thirdWeekOfMonth"),
@XmlEnumValue("fourthWeekOfMonth")
FOURTH_WEEK_OF_MONTH("fourthWeekOfMonth"),
@XmlEnumValue("fifthWeekOfMonth")
FIFTH_WEEK_OF_MONTH("fifthWeekOfMonth");
private final String value;
WeekOfMonthEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static WeekOfMonthEnum fromValue(String v) {
for (WeekOfMonthEnum c: WeekOfMonthEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy