View Javadoc
1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
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: 2017.04.23 at 07:23:18 PM CEST 
6   //
7   
8   
9   package com.hack23.cia.model.internal.application.data.impl;
10  
11  import javax.xml.bind.annotation.XmlEnum;
12  import javax.xml.bind.annotation.XmlEnumValue;
13  import javax.xml.bind.annotation.XmlType;
14  
15  
16  /**
17   * <p>Java class for WorldBankDataSources.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * <p>
21   * <pre>
22   * &lt;simpleType name="WorldBankDataSources"&gt;
23   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
24   *     &lt;enumeration value="Countries"/&gt;
25   *     &lt;enumeration value="Data"/&gt;
26   *     &lt;enumeration value="Indicators"/&gt;
27   *     &lt;enumeration value="Topic"/&gt;
28   *   &lt;/restriction&gt;
29   * &lt;/simpleType&gt;
30   * </pre>
31   * 
32   */
33  @XmlType(name = "WorldBankDataSources")
34  @XmlEnum
35  public enum WorldBankDataSources {
36  
37      @XmlEnumValue("Countries")
38      COUNTRIES("Countries"),
39      @XmlEnumValue("Data")
40      DATA("Data"),
41      @XmlEnumValue("Indicators")
42      INDICATORS("Indicators"),
43      @XmlEnumValue("Topic")
44      TOPIC("Topic");
45      private final String value;
46  
47      WorldBankDataSources(String v) {
48          value = v;
49      }
50  
51      public String value() {
52          return value;
53      }
54  
55      public static WorldBankDataSources fromValue(String v) {
56          for (WorldBankDataSources c: WorldBankDataSources.values()) {
57              if (c.value.equals(v)) {
58                  return c;
59              }
60          }
61          throw new IllegalArgumentException(v);
62      }
63  
64  }