This project has retired. For details please refer to its Attic page.
ParamStyle xref
View Javadoc
1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
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: 2013.05.27 at 06:54:03 PM EDT 
6   //
7   
8   
9   package org.apache.juddi.v3.client.mapping.wadl;
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 ParamStyle.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * <p>
21   * <pre>
22   * &lt;simpleType name="ParamStyle">
23   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
24   *     &lt;enumeration value="plain"/>
25   *     &lt;enumeration value="query"/>
26   *     &lt;enumeration value="matrix"/>
27   *     &lt;enumeration value="header"/>
28   *     &lt;enumeration value="template"/>
29   *   &lt;/restriction>
30   * &lt;/simpleType>
31   * </pre>
32   * 
33   */
34  @XmlType(name = "ParamStyle")
35  @XmlEnum
36  public enum ParamStyle {
37  
38      @XmlEnumValue("plain")
39      PLAIN("plain"),
40      @XmlEnumValue("query")
41      QUERY("query"),
42      @XmlEnumValue("matrix")
43      MATRIX("matrix"),
44      @XmlEnumValue("header")
45      HEADER("header"),
46      @XmlEnumValue("template")
47      TEMPLATE("template");
48      private final String value;
49  
50      ParamStyle(String v) {
51          value = v;
52      }
53  
54      public String value() {
55          return value;
56      }
57  
58      public static ParamStyle fromValue(String v) {
59          for (ParamStyle c: ParamStyle.values()) {
60              if (c.value.equals(v)) {
61                  return c;
62              }
63          }
64          throw new IllegalArgumentException(v);
65      }
66  
67  }