This project has retired. For details please refer to its Attic page.
EnumCapabilityRendition xref

1   
2   package org.apache.chemistry.opencmis.commons.impl.jaxb;
3   
4   import javax.xml.bind.annotation.XmlEnum;
5   import javax.xml.bind.annotation.XmlEnumValue;
6   import javax.xml.bind.annotation.XmlType;
7   
8   
9   /**
10   * <p>Java class for enumCapabilityRendition.
11   * 
12   * <p>The following schema fragment specifies the expected content contained within this class.
13   * <p>
14   * <pre>
15   * &lt;simpleType name="enumCapabilityRendition">
16   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
17   *     &lt;enumeration value="none"/>
18   *     &lt;enumeration value="read"/>
19   *   &lt;/restriction>
20   * &lt;/simpleType>
21   * </pre>
22   * 
23   */
24  @XmlType(name = "enumCapabilityRendition", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/")
25  @XmlEnum
26  public enum EnumCapabilityRendition {
27  
28      @XmlEnumValue("none")
29      NONE("none"),
30      @XmlEnumValue("read")
31      READ("read");
32      private final String value;
33  
34      EnumCapabilityRendition(String v) {
35          value = v;
36      }
37  
38      public String value() {
39          return value;
40      }
41  
42      public static EnumCapabilityRendition fromValue(String v) {
43          for (EnumCapabilityRendition c: EnumCapabilityRendition.values()) {
44              if (c.value.equals(v)) {
45                  return c;
46              }
47          }
48          throw new IllegalArgumentException(v);
49      }
50  
51  }