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