![JAR search and dependency download from the Maven repository](/logo.png)
com.vmware.vim25.WeekOfMonth Maven / Gradle / Ivy
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for WeekOfMonth.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="WeekOfMonth">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="first"/>
* <enumeration value="second"/>
* <enumeration value="third"/>
* <enumeration value="fourth"/>
* <enumeration value="last"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "WeekOfMonth")
@XmlEnum
public enum WeekOfMonth {
@XmlEnumValue("first")
FIRST("first"),
@XmlEnumValue("second")
SECOND("second"),
@XmlEnumValue("third")
THIRD("third"),
@XmlEnumValue("fourth")
FOURTH("fourth"),
@XmlEnumValue("last")
LAST("last");
private final String value;
WeekOfMonth(String v) {
value = v;
}
public String value() {
return value;
}
public static WeekOfMonth fromValue(String v) {
for (WeekOfMonth c: WeekOfMonth.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy