This project has retired. For details please refer to its Attic page.
URLType xref
View Javadoc
1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2009.07.19 at 09:49:41 PM CDT 
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   * <p>Java class for URLType.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * <p>
21   * <pre>
22   * &lt;simpleType name="URLType">
23   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
24   *     &lt;enumeration value="mailto"/>
25   *     &lt;enumeration value="http"/>
26   *     &lt;enumeration value="https"/>
27   *     &lt;enumeration value="ftp"/>
28   *     &lt;enumeration value="fax"/>
29   *     &lt;enumeration value="phone"/>
30   *     &lt;enumeration value="other"/>
31   *   &lt;/restriction>
32   * &lt;/simpleType>
33   * </pre>
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  }