Subversion Repositories XServices

Rev

Rev 30 | Details | Compare with Previous | 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 TimePreference.
10
 *
11
 * <p>The following schema fragment specifies the expected content contained within this class.
12
 * <p>
13
 * <pre>
14
 * &lt;simpleType name="TimePreference">
15
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
16
 *     &lt;enumeration value="TIME-FORMAT-12HOUR"/>
17
 *     &lt;enumeration value="TIME-FORMAT-24HOUR"/>
18
 *     &lt;enumeration value="TIME-FORMAT-USE-GMT-OFFSET"/>
19
 *     &lt;enumeration value="TIME-FORMAT-HONOR-DAYLIGHT"/>
20
 *   &lt;/restriction>
21
 * &lt;/simpleType>
22
 * </pre>
23
 *
24
 */
25
@XmlType(name = "TimePreference")
26
@XmlEnum
27
public enum TimePreference {
28
29
 
30
    TIME_FORMAT_12_HOUR("TIME-FORMAT-12HOUR"),
31
    @XmlEnumValue("TIME-FORMAT-24HOUR")
32
    TIME_FORMAT_24_HOUR("TIME-FORMAT-24HOUR"),
33
    @XmlEnumValue("TIME-FORMAT-USE-GMT-OFFSET")
34
    TIME_FORMAT_USE_GMT_OFFSET("TIME-FORMAT-USE-GMT-OFFSET"),
35
    @XmlEnumValue("TIME-FORMAT-HONOR-DAYLIGHT")
36
    TIME_FORMAT_HONOR_DAYLIGHT("TIME-FORMAT-HONOR-DAYLIGHT");
37
    private final String value;
38
39
 
40
        value = v;
41
    }
42
43
 
44
        return value;
45
    }
46
47
 
48
        for (TimePreference c: TimePreference.values()) {
49
            if (c.value.equals(v)) {
50
                return c;
51
            }
52
        }
53
        throw new IllegalArgumentException(v);
54
    }
55
56
 
57