Go to most recent revision | View as "text/plain" | Blame | Last modification | View Log | Download | RSS feed
package net.brutex.sbm.wsclient;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for DatePreference.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="DatePreference">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="DATE-FORMAT-FROM-LOCALE"/>
* <enumeration value="DATE-FORMAT-MM-DD-YYYY"/>
* <enumeration value="DATE-FORMAT-DD-MM-YYYY"/>
* <enumeration value="DATE-FORMAT-DD-MM-YYYY.S"/>
* <enumeration value="DATE-FORMAT-YYYY-MM-DD"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "DatePreference")
@XmlEnum
public enum DatePreference {
@XmlEnumValue("DATE-FORMAT-FROM-LOCALE")
DATE_FORMAT_FROM_LOCALE("DATE-FORMAT-FROM-LOCALE"),
@XmlEnumValue("DATE-FORMAT-MM-DD-YYYY")
DATE_FORMAT_MM_DD_YYYY("DATE-FORMAT-MM-DD-YYYY"),
@XmlEnumValue("DATE-FORMAT-DD-MM-YYYY")
DATE_FORMAT_DD_MM_YYYY("DATE-FORMAT-DD-MM-YYYY"),
@XmlEnumValue("DATE-FORMAT-DD-MM-YYYY.S")
DATE_FORMAT_DD_MM_YYYY_S("DATE-FORMAT-DD-MM-YYYY.S"),
@XmlEnumValue("DATE-FORMAT-YYYY-MM-DD")
DATE_FORMAT_YYYY_MM_DD("DATE-FORMAT-YYYY-MM-DD");
private final String value;
DatePreference(String v) {
value = v;
}
public String value() {
return value;
}
public static DatePreference fromValue(String v) {
for (DatePreference c: DatePreference.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}