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:22:58 PM CEST 
6   //
7   
8   
9   package com.hack23.cia.model.external.riksdagen.votering.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 BallotType.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * <p>
21   * <pre>
22   * &lt;simpleType name="BallotType"&gt;
23   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
24   *     &lt;enumeration value="huvud"/&gt;
25   *   &lt;/restriction&gt;
26   * &lt;/simpleType&gt;
27   * </pre>
28   * 
29   */
30  @XmlType(name = "BallotType")
31  @XmlEnum
32  public enum BallotType {
33  
34      @XmlEnumValue("huvud")
35      HUVUD("huvud");
36      private final String value;
37  
38      BallotType(String v) {
39          value = v;
40      }
41  
42      public String value() {
43          return value;
44      }
45  
46      public static BallotType fromValue(String v) {
47          for (BallotType c: BallotType.values()) {
48              if (c.value.equals(v)) {
49                  return c;
50              }
51          }
52          throw new IllegalArgumentException(v);
53      }
54  
55  }