1
2 package org.miloss.fgsms.services.interfaces.policyconfiguration;
3
4 import javax.xml.bind.annotation.XmlEnum;
5 import javax.xml.bind.annotation.XmlEnumValue;
6 import javax.xml.bind.annotation.XmlType;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 @XmlType(name = "MessageChoice")
25 @XmlEnum
26 public enum MessageChoice {
27
28
29
30
31
32
33
34
35 @XmlEnumValue("Request")
36 REQUEST("Request"),
37
38
39
40
41
42
43
44 @XmlEnumValue("Response")
45 RESPONSE("Response");
46 private final String value;
47
48 MessageChoice(String v) {
49 value = v;
50 }
51
52 public String value() {
53 return value;
54 }
55
56 public static MessageChoice fromValue(String v) {
57 for (MessageChoice c: MessageChoice.values()) {
58 if (c.value.equals(v)) {
59 return c;
60 }
61 }
62 throw new IllegalArgumentException(v);
63 }
64
65 }