This project has retired. For details please refer to its
Attic page.
EnumRelationshipDirection 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
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 @XmlType(name = "enumRelationshipDirection", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/")
26 @XmlEnum
27 public enum EnumRelationshipDirection {
28
29 @XmlEnumValue("source")
30 SOURCE("source"),
31 @XmlEnumValue("target")
32 TARGET("target"),
33 @XmlEnumValue("either")
34 EITHER("either");
35 private final String value;
36
37 EnumRelationshipDirection(String v) {
38 value = v;
39 }
40
41 public String value() {
42 return value;
43 }
44
45 public static EnumRelationshipDirection fromValue(String v) {
46 for (EnumRelationshipDirection c: EnumRelationshipDirection.values()) {
47 if (c.value.equals(v)) {
48 return c;
49 }
50 }
51 throw new IllegalArgumentException(v);
52 }
53
54 }