package org.alfresco.repo.cmis.ws; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; /** *

Java class for contentStreamAllowedEnum. * *

The following schema fragment specifies the expected content contained within this class. *

*

 * <simpleType name="contentStreamAllowedEnum">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     <enumeration value="notAllowed"/>
 *     <enumeration value="allowed"/>
 *     <enumeration value="required"/>
 *   </restriction>
 * </simpleType>
 * 
* */ @XmlEnum public enum ContentStreamAllowedEnum { @XmlEnumValue("allowed") ALLOWED("allowed"), @XmlEnumValue("notAllowed") NOT_ALLOWED("notAllowed"), @XmlEnumValue("required") REQUIRED("required"); private final String value; ContentStreamAllowedEnum(String v) { value = v; } public String value() { return value; } public static ContentStreamAllowedEnum fromValue(String v) { for (ContentStreamAllowedEnum c: ContentStreamAllowedEnum.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v.toString()); } }