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 @XmlType(name = "DataAgentTarget")
32 @XmlEnum
33 public enum DataAgentTarget {
34
35 @XmlEnumValue("Model_External_Worldbank")
36 MODEL_EXTERNAL_WORLDBANK("Model_External_Worldbank"),
37 @XmlEnumValue("Model_External_Riksdagen")
38 MODEL_EXTERNAL_RIKSDAGEN("Model_External_Riksdagen");
39 private final String value;
40
41 DataAgentTarget(String v) {
42 value = v;
43 }
44
45 public String value() {
46 return value;
47 }
48
49 public static DataAgentTarget fromValue(String v) {
50 for (DataAgentTarget c: DataAgentTarget.values()) {
51 if (c.value.equals(v)) {
52 return c;
53 }
54 }
55 throw new IllegalArgumentException(v);
56 }
57
58 }