Files
alfresco-community-repo/source/generated/org/alfresco/repo/cmis/ws/EnumContentStreamAllowed.java
David Caruana a8603091e9 Merged DEV/CMIS0_61 to HEAD (part 4)
14095 CMIS 0.61 Web Services Including Tests & JavaClient
 14123 Several Minor Fixes

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14177 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 21:22:09 +00:00

55 lines
1.4 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 enumContentStreamAllowed.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="enumContentStreamAllowed">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="notallowed"/>
* &lt;enumeration value="allowed"/>
* &lt;enumeration value="required"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlType(name = "enumContentStreamAllowed", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901")
@XmlEnum
public enum EnumContentStreamAllowed {
@XmlEnumValue("notallowed")
NOTALLOWED("notallowed"),
@XmlEnumValue("allowed")
ALLOWED("allowed"),
@XmlEnumValue("required")
REQUIRED("required");
private final String value;
EnumContentStreamAllowed(String v) {
value = v;
}
public String value() {
return value;
}
public static EnumContentStreamAllowed fromValue(String v) {
for (EnumContentStreamAllowed c: EnumContentStreamAllowed.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}