001// 002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-01/24/2006 06:15 PM(kohsuke)-fcs 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.10.03 at 04:27:47 AM CEST 006// 007 008 009package org.jdtaus.mojo.resource.model; 010 011 012/** 013 * Java content class for ArgumentType. 014 * <p>The following schema fragment specifies the expected content contained within this java content object. 015 * <p> 016 * <pre> 017 * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> 018 * <enumeration value="number"/> 019 * <enumeration value="date"/> 020 * <enumeration value="time"/> 021 * <enumeration value="text"/> 022 * </restriction> 023 * </pre> 024 * 025 */ 026public class ArgumentType { 027 028 private final static java.util.Map valueMap = new java.util.HashMap(); 029 public final static java.lang.String _NUMBER = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("number")); 030 public final static org.jdtaus.mojo.resource.model.ArgumentType NUMBER = new org.jdtaus.mojo.resource.model.ArgumentType(_NUMBER); 031 public final static java.lang.String _DATE = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("date")); 032 public final static org.jdtaus.mojo.resource.model.ArgumentType DATE = new org.jdtaus.mojo.resource.model.ArgumentType(_DATE); 033 public final static java.lang.String _TIME = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("time")); 034 public final static org.jdtaus.mojo.resource.model.ArgumentType TIME = new org.jdtaus.mojo.resource.model.ArgumentType(_TIME); 035 public final static java.lang.String _TEXT = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("text")); 036 public final static org.jdtaus.mojo.resource.model.ArgumentType TEXT = new org.jdtaus.mojo.resource.model.ArgumentType(_TEXT); 037 private final java.lang.String lexicalValue; 038 private final java.lang.String value; 039 040 protected ArgumentType(java.lang.String v) { 041 value = v; 042 lexicalValue = v; 043 valueMap.put(v, this); 044 } 045 046 public java.lang.String toString() { 047 return lexicalValue; 048 } 049 050 public java.lang.String getValue() { 051 return value; 052 } 053 054 public final int hashCode() { 055 return super.hashCode(); 056 } 057 058 public final boolean equals(java.lang.Object o) { 059 return super.equals(o); 060 } 061 062 public static org.jdtaus.mojo.resource.model.ArgumentType fromValue(java.lang.String value) { 063 org.jdtaus.mojo.resource.model.ArgumentType t = ((org.jdtaus.mojo.resource.model.ArgumentType) valueMap.get(value)); 064 if (t == null) { 065 throw new java.lang.IllegalArgumentException(); 066 } else { 067 return t; 068 } 069 } 070 071 public static org.jdtaus.mojo.resource.model.ArgumentType fromString(java.lang.String str) { 072 return fromValue(com.sun.xml.bind.WhiteSpaceProcessor.collapse(str)); 073 } 074 075}