001//
002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
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: 2013.04.21 at 08:43:16 PM CEST 
006//
007
008
009package org.jomc.model;
010
011import javax.annotation.Generated;
012import javax.xml.bind.annotation.XmlEnum;
013import javax.xml.bind.annotation.XmlEnumValue;
014import javax.xml.bind.annotation.XmlType;
015
016
017/**
018 * <p>Java class for ArgumentType.
019 * 
020 * <p>The following schema fragment specifies the expected content contained within this class.
021 * <p>
022 * <pre>
023 * &lt;simpleType name="ArgumentType">
024 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
025 *     &lt;enumeration value="Number"/>
026 *     &lt;enumeration value="Date"/>
027 *     &lt;enumeration value="Time"/>
028 *     &lt;enumeration value="Text"/>
029 *   &lt;/restriction>
030 * &lt;/simpleType>
031 * </pre>
032 * 
033 */
034@XmlType(name = "ArgumentType", namespace = "http://jomc.org/model")
035@XmlEnum
036@Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:16+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
037public enum ArgumentType {
038
039
040    /**
041     * Argument of type {@code java.lang.Number}.
042     * 
043     */
044    @XmlEnumValue("Number")
045    NUMBER("Number"),
046
047    /**
048     * Argument of type {@code java.util.Date}.
049     * 
050     */
051    @XmlEnumValue("Date")
052    DATE("Date"),
053
054    /**
055     * Argument of type {@code java.util.Date}.
056     * 
057     */
058    @XmlEnumValue("Time")
059    TIME("Time"),
060
061    /**
062     * Argument of type {@code java.lang.String}.
063     * 
064     */
065    @XmlEnumValue("Text")
066    TEXT("Text");
067    private final String value;
068
069    ArgumentType(String v) {
070        value = v;
071    }
072
073    public String value() {
074        return value;
075    }
076
077    public static ArgumentType fromValue(String v) {
078        for (ArgumentType c: ArgumentType.values()) {
079            if (c.value.equals(v)) {
080                return c;
081            }
082        }
083        throw new IllegalArgumentException(v);
084    }
085
086}