001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2009.11.18 at 06:28:36 AM UTC
006 //
007
008
009 package org.jomc.model;
010
011 import javax.annotation.Generated;
012 import javax.xml.bind.annotation.XmlEnum;
013 import javax.xml.bind.annotation.XmlEnumValue;
014 import javax.xml.bind.annotation.XmlType;
015
016
017 /**
018 * Enumeration of argument types.
019 *
020 * <p>Java class for ArgumentType.
021 *
022 * <p>The following schema fragment specifies the expected content contained within this class.
023 * <p>
024 * <pre>
025 * <simpleType name="ArgumentType">
026 * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
027 * <enumeration value="Number"/>
028 * <enumeration value="Date"/>
029 * <enumeration value="Time"/>
030 * <enumeration value="Text"/>
031 * </restriction>
032 * </simpleType>
033 * </pre>
034 *
035 */
036 @XmlType(name = "ArgumentType")
037 @XmlEnum
038 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
039 public enum ArgumentType {
040
041
042 /**
043 * Argument of type {@code java.lang.Number}.
044 *
045 */
046 @XmlEnumValue("Number")
047 NUMBER("Number"),
048
049 /**
050 * Argument of type {@code java.util.Date}.
051 *
052 */
053 @XmlEnumValue("Date")
054 DATE("Date"),
055
056 /**
057 * Argument of type {@code java.util.Date}.
058 *
059 */
060 @XmlEnumValue("Time")
061 TIME("Time"),
062
063 /**
064 * Argument of type {@code java.lang.String}.
065 *
066 */
067 @XmlEnumValue("Text")
068 TEXT("Text");
069 private final String value;
070
071 ArgumentType(String v) {
072 value = v;
073 }
074
075 public String value() {
076 return value;
077 }
078
079 public static ArgumentType fromValue(String v) {
080 for (ArgumentType c: ArgumentType.values()) {
081 if (c.value.equals(v)) {
082 return c;
083 }
084 }
085 throw new IllegalArgumentException(v);
086 }
087
088 }