Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 brianR 1
 
2
3
 
4
import javax.xml.bind.annotation.XmlEnumValue;
5
import javax.xml.bind.annotation.XmlType;
6
7
 
8
 
9
 * <p>Java class for DatePreference.
10
 *
11
 * <p>The following schema fragment specifies the expected content contained within this class.
12
 * <p>
13
 * <pre>
14
 * &lt;simpleType name="DatePreference">
15
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
16
 *     &lt;enumeration value="DATE-FORMAT-FROM-LOCALE"/>
17
 *     &lt;enumeration value="DATE-FORMAT-MM-DD-YYYY"/>
18
 *     &lt;enumeration value="DATE-FORMAT-DD-MM-YYYY"/>
19
 *     &lt;enumeration value="DATE-FORMAT-DD-MM-YYYY.S"/>
20
 *     &lt;enumeration value="DATE-FORMAT-YYYY-MM-DD"/>
21
 *   &lt;/restriction>
22
 * &lt;/simpleType>
23
 * </pre>
24
 *
25
 */
26
@XmlType(name = "DatePreference")
27
@XmlEnum
28
public enum DatePreference {
29
30
 
31
    DATE_FORMAT_FROM_LOCALE("DATE-FORMAT-FROM-LOCALE"),
32
    @XmlEnumValue("DATE-FORMAT-MM-DD-YYYY")
33
    DATE_FORMAT_MM_DD_YYYY("DATE-FORMAT-MM-DD-YYYY"),
34
    @XmlEnumValue("DATE-FORMAT-DD-MM-YYYY")
35
    DATE_FORMAT_DD_MM_YYYY("DATE-FORMAT-DD-MM-YYYY"),
36
    @XmlEnumValue("DATE-FORMAT-DD-MM-YYYY.S")
37
    DATE_FORMAT_DD_MM_YYYY_S("DATE-FORMAT-DD-MM-YYYY.S"),
38
    @XmlEnumValue("DATE-FORMAT-YYYY-MM-DD")
39
    DATE_FORMAT_YYYY_MM_DD("DATE-FORMAT-YYYY-MM-DD");
40
    private final String value;
41
42
 
43
        value = v;
44
    }
45
46
 
47
        return value;
48
    }
49
50
 
51
        for (DatePreference c: DatePreference.values()) {
52
            if (c.value.equals(v)) {
53
                return c;
54
            }
55
        }
56
        throw new IllegalArgumentException(v);
57
    }
58
59
 
60