Files
alfresco-community-repo/source/generated/org/alfresco/repo/cmis/ws/EnumCapabilityQuery.java
2008-09-07 13:04:45 +00:00

58 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 enumCapabilityQuery.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="enumCapabilityQuery">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="none"/>
* &lt;enumeration value="metadataonly"/>
* &lt;enumeration value="fulltextonly"/>
* &lt;enumeration value="both"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlType(name = "enumCapabilityQuery")
@XmlEnum
public enum EnumCapabilityQuery {
@XmlEnumValue("none")
NONE("none"),
@XmlEnumValue("metadataonly")
METADATAONLY("metadataonly"),
@XmlEnumValue("fulltextonly")
FULLTEXTONLY("fulltextonly"),
@XmlEnumValue("both")
BOTH("both");
private final String value;
EnumCapabilityQuery(String v) {
value = v;
}
public String value() {
return value;
}
public static EnumCapabilityQuery fromValue(String v) {
for (EnumCapabilityQuery c: EnumCapabilityQuery.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}