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