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