This project has retired. For details please refer to its
Attic page.
URLType 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
32
33
34
35
36 @XmlType(name = "URLType")
37 @XmlEnum
38 public enum URLType {
39
40 @XmlEnumValue("mailto")
41 MAILTO("mailto"),
42 @XmlEnumValue("http")
43 HTTP("http"),
44 @XmlEnumValue("https")
45 HTTPS("https"),
46 @XmlEnumValue("ftp")
47 FTP("ftp"),
48 @XmlEnumValue("fax")
49 FAX("fax"),
50 @XmlEnumValue("phone")
51 PHONE("phone"),
52 @XmlEnumValue("other")
53 OTHER("other");
54 private final String value;
55
56 URLType(String v) {
57 value = v;
58 }
59
60 public String value() {
61 return value;
62 }
63
64 public static URLType fromValue(String v) {
65 for (URLType c: URLType.values()) {
66 if (c.value.equals(v)) {
67 return c;
68 }
69 }
70 throw new IllegalArgumentException(v);
71 }
72
73 }