View Javadoc

1   //
2   // 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 
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: 2012.10.03 at 04:27:47 AM CEST 
6   //
7   
8   
9   package org.jdtaus.mojo.resource.model;
10  
11  
12  /**
13   * Java content class for ArgumentType.
14   *  <p>The following schema fragment specifies the expected content contained within this java content object.
15   * <p>
16   * <pre>
17   * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
18   *   &lt;enumeration value="number"/>
19   *   &lt;enumeration value="date"/>
20   *   &lt;enumeration value="time"/>
21   *   &lt;enumeration value="text"/>
22   * &lt;/restriction>
23   * </pre>
24   * 
25   */
26  public class ArgumentType {
27  
28      private final static java.util.Map valueMap = new java.util.HashMap();
29      public final static java.lang.String _NUMBER = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("number"));
30      public final static org.jdtaus.mojo.resource.model.ArgumentType NUMBER = new org.jdtaus.mojo.resource.model.ArgumentType(_NUMBER);
31      public final static java.lang.String _DATE = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("date"));
32      public final static org.jdtaus.mojo.resource.model.ArgumentType DATE = new org.jdtaus.mojo.resource.model.ArgumentType(_DATE);
33      public final static java.lang.String _TIME = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("time"));
34      public final static org.jdtaus.mojo.resource.model.ArgumentType TIME = new org.jdtaus.mojo.resource.model.ArgumentType(_TIME);
35      public final static java.lang.String _TEXT = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("text"));
36      public final static org.jdtaus.mojo.resource.model.ArgumentType TEXT = new org.jdtaus.mojo.resource.model.ArgumentType(_TEXT);
37      private final java.lang.String lexicalValue;
38      private final java.lang.String value;
39  
40      protected ArgumentType(java.lang.String v) {
41          value = v;
42          lexicalValue = v;
43          valueMap.put(v, this);
44      }
45  
46      public java.lang.String toString() {
47          return lexicalValue;
48      }
49  
50      public java.lang.String getValue() {
51          return value;
52      }
53  
54      public final int hashCode() {
55          return super.hashCode();
56      }
57  
58      public final boolean equals(java.lang.Object o) {
59          return super.equals(o);
60      }
61  
62      public static org.jdtaus.mojo.resource.model.ArgumentType fromValue(java.lang.String value) {
63          org.jdtaus.mojo.resource.model.ArgumentType t = ((org.jdtaus.mojo.resource.model.ArgumentType) valueMap.get(value));
64          if (t == null) {
65              throw new java.lang.IllegalArgumentException();
66          } else {
67              return t;
68          }
69      }
70  
71      public static org.jdtaus.mojo.resource.model.ArgumentType fromString(java.lang.String str) {
72          return fromValue(com.sun.xml.bind.WhiteSpaceProcessor.collapse(str));
73      }
74  
75  }