/**
*
*
*
* $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 'Version Action Tokens',
* and utility methods for working with them.
*
* @see net.opengis.fes20.Fes20Package#getVersionActionTokens()
* @model extendedMetaData="name='VersionActionTokens'"
* @generated
*/
public enum VersionActionTokens implements Enumerator {
/**
* The 'FIRST' literal object.
*
*
* @see #FIRST_VALUE
* @generated
* @ordered
*/
FIRST(0, "FIRST", "FIRST"),
/**
* The 'LAST' literal object.
*
*
* @see #LAST_VALUE
* @generated
* @ordered
*/
LAST(1, "LAST", "LAST"),
/**
* The 'PREVIOUS' literal object.
*
*
* @see #PREVIOUS_VALUE
* @generated
* @ordered
*/
PREVIOUS(2, "PREVIOUS", "PREVIOUS"),
/**
* The 'NEXT' literal object.
*
*
* @see #NEXT_VALUE
* @generated
* @ordered
*/
NEXT(3, "NEXT", "NEXT"),
/**
* The 'ALL' literal object.
*
*
* @see #ALL_VALUE
* @generated
* @ordered
*/
ALL(4, "ALL", "ALL");
/**
* The 'FIRST' literal value.
*
*
* If the meaning of 'FIRST' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FIRST
* @model
* @generated
* @ordered
*/
public static final int FIRST_VALUE = 0;
/**
* The 'LAST' literal value.
*
*
* If the meaning of 'LAST' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #LAST
* @model
* @generated
* @ordered
*/
public static final int LAST_VALUE = 1;
/**
* The 'PREVIOUS' literal value.
*
*
* If the meaning of 'PREVIOUS' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PREVIOUS
* @model
* @generated
* @ordered
*/
public static final int PREVIOUS_VALUE = 2;
/**
* The 'NEXT' literal value.
*
*
* If the meaning of 'NEXT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #NEXT
* @model
* @generated
* @ordered
*/
public static final int NEXT_VALUE = 3;
/**
* The 'ALL' literal value.
*
*
* If the meaning of 'ALL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ALL
* @model
* @generated
* @ordered
*/
public static final int ALL_VALUE = 4;
/**
* An array of all the 'Version Action Tokens' enumerators.
*
*
* @generated
*/
private static final VersionActionTokens[] VALUES_ARRAY =
new VersionActionTokens[] {
FIRST,
LAST,
PREVIOUS,
NEXT,
ALL,
};
/**
* A public read-only list of all the 'Version Action Tokens' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Version Action Tokens' literal with the specified literal value.
*
*
* @generated
*/
public static VersionActionTokens get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
VersionActionTokens result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Version Action Tokens' literal with the specified name.
*
*
* @generated
*/
public static VersionActionTokens getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
VersionActionTokens result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Version Action Tokens' literal with the specified integer value.
*
*
* @generated
*/
public static VersionActionTokens get(int value) {
switch (value) {
case FIRST_VALUE: return FIRST;
case LAST_VALUE: return LAST;
case PREVIOUS_VALUE: return PREVIOUS;
case NEXT_VALUE: return NEXT;
case ALL_VALUE: return ALL;
}
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 VersionActionTokens(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;
}
} //VersionActionTokens