1
2
3
4
5
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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 @XmlType(name = "RiksdagenDataSources")
37 @XmlEnum
38 public enum RiksdagenDataSources {
39
40 @XmlEnumValue("Document_List")
41 DOCUMENT_LIST("Document_List"),
42 @XmlEnumValue("Document_Status")
43 DOCUMENT_STATUS("Document_Status"),
44 @XmlEnumValue("Document_Content")
45 DOCUMENT_CONTENT("Document_Content"),
46 @XmlEnumValue("Persons")
47 PERSONS("Persons"),
48 @XmlEnumValue("Votes")
49 VOTES("Votes"),
50 @XmlEnumValue("Ballot_List")
51 BALLOT_LIST("Ballot_List"),
52 @XmlEnumValue("Committee_Proposals")
53 COMMITTEE_PROPOSALS("Committee_Proposals");
54 private final String value;
55
56 RiksdagenDataSources(String v) {
57 value = v;
58 }
59
60 public String value() {
61 return value;
62 }
63
64 public static RiksdagenDataSources fromValue(String v) {
65 for (RiksdagenDataSources c: RiksdagenDataSources.values()) {
66 if (c.value.equals(v)) {
67 return c;
68 }
69 }
70 throw new IllegalArgumentException(v);
71 }
72
73 }