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.view.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 ViewPerspective.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * <p>
21   * <pre>
22   * &lt;simpleType name="ViewPerspective"&gt;
23   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
24   *     &lt;enumeration value="Global"/&gt;
25   *     &lt;enumeration value="Region"/&gt;
26   *     &lt;enumeration value="EU"/&gt;
27   *     &lt;enumeration value="Country"/&gt;
28   *     &lt;enumeration value="Person"/&gt;
29   *     &lt;enumeration value="Party"/&gt;
30   *   &lt;/restriction&gt;
31   * &lt;/simpleType&gt;
32   * </pre>
33   * 
34   */
35  @XmlType(name = "ViewPerspective")
36  @XmlEnum
37  public enum ViewPerspective {
38  
39      @XmlEnumValue("Global")
40      GLOBAL("Global"),
41      @XmlEnumValue("Region")
42      REGION("Region"),
43      EU("EU"),
44      @XmlEnumValue("Country")
45      COUNTRY("Country"),
46      @XmlEnumValue("Person")
47      PERSON("Person"),
48      @XmlEnumValue("Party")
49      PARTY("Party");
50      private final String value;
51  
52      ViewPerspective(String v) {
53          value = v;
54      }
55  
56      public String value() {
57          return value;
58      }
59  
60      public static ViewPerspective fromValue(String v) {
61          for (ViewPerspective c: ViewPerspective.values()) {
62              if (c.value.equals(v)) {
63                  return c;
64              }
65          }
66          throw new IllegalArgumentException(v);
67      }
68  
69  }