Files
alfresco-community-repo/source/generated/org/alfresco/repo/cmis/ws/EnumServiceException.java
David Caruana d6b8ce91a5 Merged CMIS063 to HEAD
16930: MOB-1330: Upgrade Web Services Repository to 0.7

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17243 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-10-29 18:40:59 +00:00

85 lines
2.6 KiB
Java
Executable File

package org.alfresco.repo.cmis.ws;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for enumServiceException.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="enumServiceException">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="constraint"/>
* &lt;enumeration value="nameConstraintViolation"/>
* &lt;enumeration value="contentAlreadyExists"/>
* &lt;enumeration value="filterNotValid"/>
* &lt;enumeration value="invalidArgument"/>
* &lt;enumeration value="notSupported"/>
* &lt;enumeration value="objectNotFound"/>
* &lt;enumeration value="permissionDenied"/>
* &lt;enumeration value="runtime"/>
* &lt;enumeration value="storage"/>
* &lt;enumeration value="streamNotSupported"/>
* &lt;enumeration value="updateConflict"/>
* &lt;enumeration value="versioning"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlType(name = "enumServiceException")
@XmlEnum
public enum EnumServiceException {
@XmlEnumValue("constraint")
CONSTRAINT("constraint"),
@XmlEnumValue("nameConstraintViolation")
NAME_CONSTRAINT_VIOLATION("nameConstraintViolation"),
@XmlEnumValue("contentAlreadyExists")
CONTENT_ALREADY_EXISTS("contentAlreadyExists"),
@XmlEnumValue("filterNotValid")
FILTER_NOT_VALID("filterNotValid"),
@XmlEnumValue("invalidArgument")
INVALID_ARGUMENT("invalidArgument"),
@XmlEnumValue("notSupported")
NOT_SUPPORTED("notSupported"),
@XmlEnumValue("objectNotFound")
OBJECT_NOT_FOUND("objectNotFound"),
@XmlEnumValue("permissionDenied")
PERMISSION_DENIED("permissionDenied"),
@XmlEnumValue("runtime")
RUNTIME("runtime"),
@XmlEnumValue("storage")
STORAGE("storage"),
@XmlEnumValue("streamNotSupported")
STREAM_NOT_SUPPORTED("streamNotSupported"),
@XmlEnumValue("updateConflict")
UPDATE_CONFLICT("updateConflict"),
@XmlEnumValue("versioning")
VERSIONING("versioning");
private final String value;
EnumServiceException(String v) {
value = v;
}
public String value() {
return value;
}
public static EnumServiceException fromValue(String v) {
for (EnumServiceException c: EnumServiceException.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}