mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
17102: Add Date svn:keyword 17103: - mask out cmis-tck-ws build/classes folder, fix JRE dependency in cmis-tck-ws .classpath 17106: MOB-1330: Upgrade Web Services Repository to 0.7. 17117: Now moved to Chemistry. 17120: CMIS Update to v1.0 Committee Draft 04 17123: Checkin mistake. 17129: Updated Chemistry AtomPub TCK with appropriate UTF-8 encoding. 17138: Fix reference to CMIS change list in CMIS Front Page. 17142: Move all CMIS web scripts into same package. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17259 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
55 lines
1.3 KiB
Java
55 lines
1.3 KiB
Java
|
|
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 enumDateTimeResolution.
|
|
*
|
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
|
* <p>
|
|
* <pre>
|
|
* <simpleType name="enumDateTimeResolution">
|
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
|
* <enumeration value="year"/>
|
|
* <enumeration value="date"/>
|
|
* <enumeration value="time"/>
|
|
* </restriction>
|
|
* </simpleType>
|
|
* </pre>
|
|
*
|
|
*/
|
|
@XmlType(name = "enumDateTimeResolution", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/")
|
|
@XmlEnum
|
|
public enum EnumDateTimeResolution {
|
|
|
|
@XmlEnumValue("year")
|
|
YEAR("year"),
|
|
@XmlEnumValue("date")
|
|
DATE("date"),
|
|
@XmlEnumValue("time")
|
|
TIME("time");
|
|
private final String value;
|
|
|
|
EnumDateTimeResolution(String v) {
|
|
value = v;
|
|
}
|
|
|
|
public String value() {
|
|
return value;
|
|
}
|
|
|
|
public static EnumDateTimeResolution fromValue(String v) {
|
|
for (EnumDateTimeResolution c: EnumDateTimeResolution.values()) {
|
|
if (c.value.equals(v)) {
|
|
return c;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException(v);
|
|
}
|
|
|
|
}
|