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 Scope.
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="multiton"/>
19   *   &lt;enumeration value="context"/>
20   *   &lt;enumeration value="singleton"/>
21   * &lt;/restriction>
22   * </pre>
23   * 
24   */
25  public class Scope {
26  
27      private final static java.util.Map valueMap = new java.util.HashMap();
28      public final static java.lang.String _MULTITON = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("multiton"));
29      public final static org.jdtaus.mojo.resource.model.Scope MULTITON = new org.jdtaus.mojo.resource.model.Scope(_MULTITON);
30      public final static java.lang.String _CONTEXT = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("context"));
31      public final static org.jdtaus.mojo.resource.model.Scope CONTEXT = new org.jdtaus.mojo.resource.model.Scope(_CONTEXT);
32      public final static java.lang.String _SINGLETON = com.sun.xml.bind.WhiteSpaceProcessor.collapse(com.sun.xml.bind.DatatypeConverterImpl.installHook("singleton"));
33      public final static org.jdtaus.mojo.resource.model.Scope SINGLETON = new org.jdtaus.mojo.resource.model.Scope(_SINGLETON);
34      private final java.lang.String lexicalValue;
35      private final java.lang.String value;
36  
37      protected Scope(java.lang.String v) {
38          value = v;
39          lexicalValue = v;
40          valueMap.put(v, this);
41      }
42  
43      public java.lang.String toString() {
44          return lexicalValue;
45      }
46  
47      public java.lang.String getValue() {
48          return value;
49      }
50  
51      public final int hashCode() {
52          return super.hashCode();
53      }
54  
55      public final boolean equals(java.lang.Object o) {
56          return super.equals(o);
57      }
58  
59      public static org.jdtaus.mojo.resource.model.Scope fromValue(java.lang.String value) {
60          org.jdtaus.mojo.resource.model.Scope t = ((org.jdtaus.mojo.resource.model.Scope) valueMap.get(value));
61          if (t == null) {
62              throw new java.lang.IllegalArgumentException();
63          } else {
64              return t;
65          }
66      }
67  
68      public static org.jdtaus.mojo.resource.model.Scope fromString(java.lang.String str) {
69          return fromValue(com.sun.xml.bind.WhiteSpaceProcessor.collapse(str));
70      }
71  
72  }