org.apache.chemistry.opencmis.commons.impl.jaxb.EnumUpdatability Maven / Gradle / Ivy
package org.apache.chemistry.opencmis.commons.impl.jaxb;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for enumUpdatability.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="enumUpdatability">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="readonly"/>
* <enumeration value="readwrite"/>
* <enumeration value="whencheckedout"/>
* <enumeration value="oncreate"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "enumUpdatability", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/")
@XmlEnum
public enum EnumUpdatability {
@XmlEnumValue("readonly")
READONLY("readonly"),
@XmlEnumValue("readwrite")
READWRITE("readwrite"),
@XmlEnumValue("whencheckedout")
WHENCHECKEDOUT("whencheckedout"),
@XmlEnumValue("oncreate")
ONCREATE("oncreate");
private final String value;
EnumUpdatability(String v) {
value = v;
}
public String value() {
return value;
}
public static EnumUpdatability fromValue(String v) {
for (EnumUpdatability c: EnumUpdatability.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy