1 | // |
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 |
3 | // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> |
4 | // Any modifications to this file will be lost upon recompilation of the source schema. |
5 | // Generated on: 2013.01.03 at 05:01:35 AM CET |
6 | // |
7 | |
8 | |
9 | package org.jomc.model; |
10 | |
11 | import javax.annotation.Generated; |
12 | import javax.xml.bind.annotation.XmlEnum; |
13 | import javax.xml.bind.annotation.XmlEnumValue; |
14 | import javax.xml.bind.annotation.XmlType; |
15 | |
16 | |
17 | /** |
18 | * <p>Java class for ArgumentType. |
19 | * |
20 | * <p>The following schema fragment specifies the expected content contained within this class. |
21 | * <p> |
22 | * <pre> |
23 | * <simpleType name="ArgumentType"> |
24 | * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> |
25 | * <enumeration value="Number"/> |
26 | * <enumeration value="Date"/> |
27 | * <enumeration value="Time"/> |
28 | * <enumeration value="Text"/> |
29 | * </restriction> |
30 | * </simpleType> |
31 | * </pre> |
32 | * |
33 | */ |
34 | @XmlType(name = "ArgumentType", namespace = "http://jomc.org/model") |
35 | @XmlEnum |
36 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") |
37 | public enum ArgumentType { |
38 | |
39 | |
40 | /** |
41 | * Argument of type {@code java.lang.Number}. |
42 | * |
43 | */ |
44 | @XmlEnumValue("Number") |
45 | NUMBER("Number"), |
46 | |
47 | /** |
48 | * Argument of type {@code java.util.Date}. |
49 | * |
50 | */ |
51 | @XmlEnumValue("Date") |
52 | DATE("Date"), |
53 | |
54 | /** |
55 | * Argument of type {@code java.util.Date}. |
56 | * |
57 | */ |
58 | @XmlEnumValue("Time") |
59 | TIME("Time"), |
60 | |
61 | /** |
62 | * Argument of type {@code java.lang.String}. |
63 | * |
64 | */ |
65 | @XmlEnumValue("Text") |
66 | TEXT("Text"); |
67 | private final String value; |
68 | |
69 | ArgumentType(String v) { |
70 | value = v; |
71 | } |
72 | |
73 | public String value() { |
74 | return value; |
75 | } |
76 | |
77 | public static ArgumentType fromValue(String v) { |
78 | for (ArgumentType c: ArgumentType.values()) { |
79 | if (c.value.equals(v)) { |
80 | return c; |
81 | } |
82 | } |
83 | throw new IllegalArgumentException(v); |
84 | } |
85 | |
86 | } |