This project has retired. For details please refer to its
Attic page.
EnumSupportedPermissions 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
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 @XmlType(name = "enumSupportedPermissions", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/")
26 @XmlEnum
27 public enum EnumSupportedPermissions {
28
29 @XmlEnumValue("basic")
30 BASIC("basic"),
31 @XmlEnumValue("repository")
32 REPOSITORY("repository"),
33 @XmlEnumValue("both")
34 BOTH("both");
35 private final String value;
36
37 EnumSupportedPermissions(String v) {
38 value = v;
39 }
40
41 public String value() {
42 return value;
43 }
44
45 public static EnumSupportedPermissions fromValue(String v) {
46 for (EnumSupportedPermissions c: EnumSupportedPermissions.values()) {
47 if (c.value.equals(v)) {
48 return c;
49 }
50 }
51 throw new IllegalArgumentException(v);
52 }
53
54 }