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   * <p>Java class for enumContentStreamAllowed.
11   * 
12   * <p>The following schema fragment specifies the expected content contained within this class.
13   * <p>
14   * <pre>
15   * &lt;simpleType name="enumContentStreamAllowed">
16   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
17   *     &lt;enumeration value="notallowed"/>
18   *     &lt;enumeration value="allowed"/>
19   *     &lt;enumeration value="required"/>
20   *   &lt;/restriction>
21   * &lt;/simpleType>
22   * </pre>
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  }