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: 2012.03.28 at 01:26:51 AM CEST 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 * <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 * <simpleType name="ArgumentType"> 024 * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> 025 * <enumeration value="Number"/> 026 * <enumeration value="Date"/> 027 * <enumeration value="Time"/> 028 * <enumeration value="Text"/> 029 * </restriction> 030 * </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 = "2012-03-28T01:26:51+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 037 public 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 }