This project has retired. For details please refer to its Attic page.
EnumCapabilityACL 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 enumCapabilityACL.
11   * 
12   * <p>The following schema fragment specifies the expected content contained within this class.
13   * <p>
14   * <pre>
15   * &lt;simpleType name="enumCapabilityACL">
16   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
17   *     &lt;enumeration value="none"/>
18   *     &lt;enumeration value="discover"/>
19   *     &lt;enumeration value="manage"/>
20   *   &lt;/restriction>
21   * &lt;/simpleType>
22   * </pre>
23   * 
24   */
25  @XmlType(name = "enumCapabilityACL", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/")
26  @XmlEnum
27  public enum EnumCapabilityACL {
28  
29      @XmlEnumValue("none")
30      NONE("none"),
31      @XmlEnumValue("discover")
32      DISCOVER("discover"),
33      @XmlEnumValue("manage")
34      MANAGE("manage");
35      private final String value;
36  
37      EnumCapabilityACL(String v) {
38          value = v;
39      }
40  
41      public String value() {
42          return value;
43      }
44  
45      public static EnumCapabilityACL fromValue(String v) {
46          for (EnumCapabilityACL c: EnumCapabilityACL.values()) {
47              if (c.value.equals(v)) {
48                  return c;
49              }
50          }
51          throw new IllegalArgumentException(v);
52      }
53  
54  }