Fix relationship direction argument handling as found by OpenCMIS tests.

- added none value to enum
- fixed mapping of value to enum

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18915 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2010-03-01 15:30:29 +00:00
parent 9a61ebaae1
commit f5386fa53c

View File

@@ -31,6 +31,7 @@ package org.alfresco.cmis;
*/
public enum CMISRelationshipDirectionEnum implements EnumLabel
{
NONE("none"),
SOURCE("source"),
TARGET("target"),
BOTH("both");
@@ -56,5 +57,5 @@ public enum CMISRelationshipDirectionEnum implements EnumLabel
return label;
}
public static EnumFactory<CMISRelationshipDirectionEnum> FACTORY = new EnumFactory<CMISRelationshipDirectionEnum>(CMISRelationshipDirectionEnum.class, BOTH);
public static EnumFactory<CMISRelationshipDirectionEnum> FACTORY = new EnumFactory<CMISRelationshipDirectionEnum>(CMISRelationshipDirectionEnum.class, NONE);
}