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