/**
*
*
*
* $Id$
*/
package net.opengis.fes20;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
*
* A representation of the literals of the enumeration 'Comparison Operator Name Type Member0',
* and utility methods for working with them.
*
* @see net.opengis.fes20.Fes20Package#getComparisonOperatorNameTypeMember0()
* @model extendedMetaData="name='ComparisonOperatorNameType_._member_._0'"
* @generated
*/
public enum ComparisonOperatorNameTypeMember0 implements Enumerator {
/**
* The 'Property Is Equal To' literal object.
*
*
* @see #PROPERTY_IS_EQUAL_TO_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_EQUAL_TO(0, "PropertyIsEqualTo", "PropertyIsEqualTo"),
/**
* The 'Property Is Not Equal To' literal object.
*
*
* @see #PROPERTY_IS_NOT_EQUAL_TO_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_NOT_EQUAL_TO(1, "PropertyIsNotEqualTo", "PropertyIsNotEqualTo"),
/**
* The 'Property Is Less Than' literal object.
*
*
* @see #PROPERTY_IS_LESS_THAN_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_LESS_THAN(2, "PropertyIsLessThan", "PropertyIsLessThan"),
/**
* The 'Property Is Greater Than' literal object.
*
*
* @see #PROPERTY_IS_GREATER_THAN_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_GREATER_THAN(3, "PropertyIsGreaterThan", "PropertyIsGreaterThan"),
/**
* The 'Property Is Less Than Or Equal To' literal object.
*
*
* @see #PROPERTY_IS_LESS_THAN_OR_EQUAL_TO_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_LESS_THAN_OR_EQUAL_TO(4, "PropertyIsLessThanOrEqualTo", "PropertyIsLessThanOrEqualTo"),
/**
* The 'Property Is Greater Than Or Equal To' literal object.
*
*
* @see #PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO(5, "PropertyIsGreaterThanOrEqualTo", "PropertyIsGreaterThanOrEqualTo"),
/**
* The 'Property Is Like' literal object.
*
*
* @see #PROPERTY_IS_LIKE_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_LIKE(6, "PropertyIsLike", "PropertyIsLike"),
/**
* The 'Property Is Null' literal object.
*
*
* @see #PROPERTY_IS_NULL_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_NULL(7, "PropertyIsNull", "PropertyIsNull"),
/**
* The 'Property Is Nil' literal object.
*
*
* @see #PROPERTY_IS_NIL_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_NIL(8, "PropertyIsNil", "PropertyIsNil"),
/**
* The 'Property Is Between' literal object.
*
*
* @see #PROPERTY_IS_BETWEEN_VALUE
* @generated
* @ordered
*/
PROPERTY_IS_BETWEEN(9, "PropertyIsBetween", "PropertyIsBetween");
/**
* The 'Property Is Equal To' literal value.
*
*
* If the meaning of 'Property Is Equal To' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_EQUAL_TO
* @model name="PropertyIsEqualTo"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_EQUAL_TO_VALUE = 0;
/**
* The 'Property Is Not Equal To' literal value.
*
*
* If the meaning of 'Property Is Not Equal To' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_NOT_EQUAL_TO
* @model name="PropertyIsNotEqualTo"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_NOT_EQUAL_TO_VALUE = 1;
/**
* The 'Property Is Less Than' literal value.
*
*
* If the meaning of 'Property Is Less Than' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_LESS_THAN
* @model name="PropertyIsLessThan"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_LESS_THAN_VALUE = 2;
/**
* The 'Property Is Greater Than' literal value.
*
*
* If the meaning of 'Property Is Greater Than' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_GREATER_THAN
* @model name="PropertyIsGreaterThan"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_GREATER_THAN_VALUE = 3;
/**
* The 'Property Is Less Than Or Equal To' literal value.
*
*
* If the meaning of 'Property Is Less Than Or Equal To' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_LESS_THAN_OR_EQUAL_TO
* @model name="PropertyIsLessThanOrEqualTo"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_LESS_THAN_OR_EQUAL_TO_VALUE = 4;
/**
* The 'Property Is Greater Than Or Equal To' literal value.
*
*
* If the meaning of 'Property Is Greater Than Or Equal To' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO
* @model name="PropertyIsGreaterThanOrEqualTo"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO_VALUE = 5;
/**
* The 'Property Is Like' literal value.
*
*
* If the meaning of 'Property Is Like' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_LIKE
* @model name="PropertyIsLike"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_LIKE_VALUE = 6;
/**
* The 'Property Is Null' literal value.
*
*
* If the meaning of 'Property Is Null' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_NULL
* @model name="PropertyIsNull"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_NULL_VALUE = 7;
/**
* The 'Property Is Nil' literal value.
*
*
* If the meaning of 'Property Is Nil' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_NIL
* @model name="PropertyIsNil"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_NIL_VALUE = 8;
/**
* The 'Property Is Between' literal value.
*
*
* If the meaning of 'Property Is Between' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PROPERTY_IS_BETWEEN
* @model name="PropertyIsBetween"
* @generated
* @ordered
*/
public static final int PROPERTY_IS_BETWEEN_VALUE = 9;
/**
* An array of all the 'Comparison Operator Name Type Member0' enumerators.
*
*
* @generated
*/
private static final ComparisonOperatorNameTypeMember0[] VALUES_ARRAY =
new ComparisonOperatorNameTypeMember0[] {
PROPERTY_IS_EQUAL_TO,
PROPERTY_IS_NOT_EQUAL_TO,
PROPERTY_IS_LESS_THAN,
PROPERTY_IS_GREATER_THAN,
PROPERTY_IS_LESS_THAN_OR_EQUAL_TO,
PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO,
PROPERTY_IS_LIKE,
PROPERTY_IS_NULL,
PROPERTY_IS_NIL,
PROPERTY_IS_BETWEEN,
};
/**
* A public read-only list of all the 'Comparison Operator Name Type Member0' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Comparison Operator Name Type Member0' literal with the specified literal value.
*
*
* @generated
*/
public static ComparisonOperatorNameTypeMember0 get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ComparisonOperatorNameTypeMember0 result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Comparison Operator Name Type Member0' literal with the specified name.
*
*
* @generated
*/
public static ComparisonOperatorNameTypeMember0 getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ComparisonOperatorNameTypeMember0 result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Comparison Operator Name Type Member0' literal with the specified integer value.
*
*
* @generated
*/
public static ComparisonOperatorNameTypeMember0 get(int value) {
switch (value) {
case PROPERTY_IS_EQUAL_TO_VALUE: return PROPERTY_IS_EQUAL_TO;
case PROPERTY_IS_NOT_EQUAL_TO_VALUE: return PROPERTY_IS_NOT_EQUAL_TO;
case PROPERTY_IS_LESS_THAN_VALUE: return PROPERTY_IS_LESS_THAN;
case PROPERTY_IS_GREATER_THAN_VALUE: return PROPERTY_IS_GREATER_THAN;
case PROPERTY_IS_LESS_THAN_OR_EQUAL_TO_VALUE: return PROPERTY_IS_LESS_THAN_OR_EQUAL_TO;
case PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO_VALUE: return PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO;
case PROPERTY_IS_LIKE_VALUE: return PROPERTY_IS_LIKE;
case PROPERTY_IS_NULL_VALUE: return PROPERTY_IS_NULL;
case PROPERTY_IS_NIL_VALUE: return PROPERTY_IS_NIL;
case PROPERTY_IS_BETWEEN_VALUE: return PROPERTY_IS_BETWEEN;
}
return null;
}
/**
*
*
* @generated
*/
private final int value;
/**
*
*
* @generated
*/
private final String name;
/**
*
*
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
*
*
* @generated
*/
private ComparisonOperatorNameTypeMember0(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
*
*
* @generated
*/
public int getValue() {
return value;
}
/**
*
*
* @generated
*/
public String getName() {
return name;
}
/**
*
*
* @generated
*/
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
*
*
* @generated
*/
@Override
public String toString() {
return literal;
}
} //ComparisonOperatorNameTypeMember0