This project has retired. For details please refer to its
Attic page.
URLType xref
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.uddi.api_v2;
18
19 import javax.xml.bind.annotation.XmlEnum;
20 import javax.xml.bind.annotation.XmlEnumValue;
21 import javax.xml.bind.annotation.XmlType;
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 @XmlType(name = "URLType")
45 @XmlEnum
46 public enum URLType {
47
48 @XmlEnumValue("mailto")
49 MAILTO("mailto"),
50 @XmlEnumValue("http")
51 HTTP("http"),
52 @XmlEnumValue("https")
53 HTTPS("https"),
54 @XmlEnumValue("ftp")
55 FTP("ftp"),
56 @XmlEnumValue("fax")
57 FAX("fax"),
58 @XmlEnumValue("phone")
59 PHONE("phone"),
60 @XmlEnumValue("other")
61 OTHER("other");
62 private final String value;
63
64 URLType(String v) {
65 value = v;
66 }
67
68 public String value() {
69 return value;
70 }
71
72 public static URLType fromValue(String v) {
73 for (URLType c: URLType.values()) {
74 if (c.value.equals(v)) {
75 return c;
76 }
77 }
78 throw new IllegalArgumentException(v);
79 }
80
81 }