mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10733 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
53 lines
1.3 KiB
Java
53 lines
1.3 KiB
Java
|
|
package org.alfresco.repo.cmis.ws;
|
|
|
|
import javax.xml.bind.annotation.XmlEnum;
|
|
import javax.xml.bind.annotation.XmlEnumValue;
|
|
|
|
|
|
/**
|
|
* <p>Java class for relationshipDirectionEnum.
|
|
*
|
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
|
* <p>
|
|
* <pre>
|
|
* <simpleType name="relationshipDirectionEnum">
|
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
|
* <enumeration value="source"/>
|
|
* <enumeration value="target"/>
|
|
* <enumeration value="either"/>
|
|
* </restriction>
|
|
* </simpleType>
|
|
* </pre>
|
|
*
|
|
*/
|
|
@XmlEnum
|
|
public enum RelationshipDirectionEnum {
|
|
|
|
@XmlEnumValue("either")
|
|
EITHER("either"),
|
|
@XmlEnumValue("source")
|
|
SOURCE("source"),
|
|
@XmlEnumValue("target")
|
|
TARGET("target");
|
|
private final String value;
|
|
|
|
RelationshipDirectionEnum(String v) {
|
|
value = v;
|
|
}
|
|
|
|
public String value() {
|
|
return value;
|
|
}
|
|
|
|
public static RelationshipDirectionEnum fromValue(String v) {
|
|
for (RelationshipDirectionEnum c: RelationshipDirectionEnum.values()) {
|
|
if (c.value.equals(v)) {
|
|
return c;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException(v.toString());
|
|
}
|
|
|
|
}
|