This project has retired. For details please refer to its
Attic page.
EnumContentStreamAllowed 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 = "enumContentStreamAllowed", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/")
26 @XmlEnum
27 public enum EnumContentStreamAllowed {
28
29 @XmlEnumValue("notallowed")
30 NOTALLOWED("notallowed"),
31 @XmlEnumValue("allowed")
32 ALLOWED("allowed"),
33 @XmlEnumValue("required")
34 REQUIRED("required");
35 private final String value;
36
37 EnumContentStreamAllowed(String v) {
38 value = v;
39 }
40
41 public String value() {
42 return value;
43 }
44
45 public static EnumContentStreamAllowed fromValue(String v) {
46 for (EnumContentStreamAllowed c: EnumContentStreamAllowed.values()) {
47 if (c.value.equals(v)) {
48 return c;
49 }
50 }
51 throw new IllegalArgumentException(v);
52 }
53
54 }