This project has retired. For details please refer to its
Attic page.
Direction xref
1
2
3
4
5
6
7
8
9 package org.apache.ws.scout.model.uddi.v2;
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 = "direction")
32 @XmlEnum
33 public enum Direction {
34
35 @XmlEnumValue("fromKey")
36 FROM_KEY("fromKey"),
37 @XmlEnumValue("toKey")
38 TO_KEY("toKey");
39 private final String value;
40
41 Direction(String v) {
42 value = v;
43 }
44
45 public String value() {
46 return value;
47 }
48
49 public static Direction fromValue(String v) {
50 for (Direction c: Direction.values()) {
51 if (c.value.equals(v)) {
52 return c;
53 }
54 }
55 throw new IllegalArgumentException(v);
56 }
57
58 }