/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008 - 2009, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotoolkit.ogc.xml.v110;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p> A enumeration of temporal operator.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="TemporalOperatorNameType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="TM_After"/>
* <enumeration value="TM_Before"/>
* <enumeration value="TM_Begins"/>
* <enumeration value="TM_BegunBy"/>
* <enumeration value="TM_Contains"/>
* <enumeration value="TM_During"/>
* <enumeration value="TM_Equals"/>
* <enumeration value="TM_Overlaps"/>
* <enumeration value="TM_Meets"/>
* <enumeration value="TM_OverlappedBy"/>
* <enumeration value="TM_MetBy"/>
* <enumeration value="TM_EndedBy"/>
* <enumeration value="TM_Ends"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "TemporalOperatorNameType")
@XmlEnum
public enum TemporalOperatorNameType {
@XmlEnumValue("TM_After")
TM_AFTER("TM_After"),
@XmlEnumValue("TM_Before")
TM_BEFORE("TM_Before"),
@XmlEnumValue("TM_Begins")
TM_BEGINS("TM_Begins"),
@XmlEnumValue("TM_BegunBy")
TM_BEGUN_BY("TM_BegunBy"),
@XmlEnumValue("TM_Contains")
TM_CONTAINS("TM_Contains"),
@XmlEnumValue("TM_During")
TM_DURING("TM_During"),
@XmlEnumValue("TM_Equals")
TM_EQUALS("TM_Equals"),
@XmlEnumValue("TM_Overlaps")
TM_OVERLAPS("TM_Overlaps"),
@XmlEnumValue("TM_Meets")
TM_MEETS("TM_Meets"),
@XmlEnumValue("TM_OverlappedBy")
TM_OVERLAPPED_BY("TM_OverlappedBy"),
@XmlEnumValue("TM_MetBy")
TM_MET_BY("TM_MetBy"),
@XmlEnumValue("TM_EndedBy")
TM_ENDED_BY("TM_EndedBy"),
@XmlEnumValue("TM_Ends")
TM_ENDS("TM_Ends");
private final String value;
TemporalOperatorNameType(final String v) {
value = v;
}
public String value() {
return value;
}
public static TemporalOperatorNameType fromValue(final String v) {
for (TemporalOperatorNameType c: TemporalOperatorNameType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}