/**
*/
package TaxationWithRoot;
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 'Disability Types',
* and utility methods for working with them.
*
* @see TaxationWithRoot.TaxationWithRootPackage#getDisability_Types()
* @model
* @generated
*/
public enum Disability_Types implements Enumerator {
/**
* The 'Beug' literal object.
*
*
* @see #BEUG_VALUE
* @generated
* @ordered
*/
BEUG(0, "beug", "beug"),
/**
* The 'NONE' literal object.
*
*
* @see #NONE_VALUE
* @generated
* @ordered
*/
NONE(1, "NONE", "NONE"),
/**
* The 'A' literal object.
*
*
* @see #A_VALUE
* @generated
* @ordered
*/
A(2, "A", "A"),
/**
* The 'B' literal object.
*
*
* @see #B_VALUE
* @generated
* @ordered
*/
B(3, "B", "B"),
/**
* The 'C' literal object.
*
*
* @see #C_VALUE
* @generated
* @ordered
*/
C(4, "C", "C"),
/**
* The 'D' literal object.
*
*
* @see #D_VALUE
* @generated
* @ordered
*/
D(5, "D", "D"),
/**
* The 'E' literal object.
*
*
* @see #E_VALUE
* @generated
* @ordered
*/
E(6, "E", "E"),
/**
* The 'OTHER' literal object.
*
*
* @see #OTHER_VALUE
* @generated
* @ordered
*/
OTHER(7, "OTHER", "OTHER");
/**
* The 'Beug' literal value.
*
*
* @see #BEUG
* @model name="beug"
* @generated
* @ordered
*/
public static final int BEUG_VALUE = 0;
/**
* The 'NONE' literal value.
*
*
* @see #NONE
* @model
* @generated
* @ordered
*/
public static final int NONE_VALUE = 1;
/**
* The 'A' literal value.
*
*
* @see #A
* @model
* @generated
* @ordered
*/
public static final int A_VALUE = 2;
/**
* The 'B' literal value.
*
*
* @see #B
* @model
* @generated
* @ordered
*/
public static final int B_VALUE = 3;
/**
* The 'C' literal value.
*
*
* @see #C
* @model
* @generated
* @ordered
*/
public static final int C_VALUE = 4;
/**
* The 'D' literal value.
*
*
* @see #D
* @model
* @generated
* @ordered
*/
public static final int D_VALUE = 5;
/**
* The 'E' literal value.
*
*
* @see #E
* @model
* @generated
* @ordered
*/
public static final int E_VALUE = 6;
/**
* The 'OTHER' literal value.
*
*
* @see #OTHER
* @model
* @generated
* @ordered
*/
public static final int OTHER_VALUE = 7;
/**
* An array of all the 'Disability Types' enumerators.
*
*
* @generated
*/
private static final Disability_Types[] VALUES_ARRAY =
new Disability_Types[] {
BEUG,
NONE,
A,
B,
C,
D,
E,
OTHER,
};
/**
* A public read-only list of all the 'Disability Types' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Disability Types' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static Disability_Types get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
Disability_Types result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Disability Types' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static Disability_Types getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
Disability_Types result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Disability Types' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static Disability_Types get(int value) {
switch (value) {
case BEUG_VALUE: return BEUG;
case NONE_VALUE: return NONE;
case A_VALUE: return A;
case B_VALUE: return B;
case C_VALUE: return C;
case D_VALUE: return D;
case E_VALUE: return E;
case OTHER_VALUE: return OTHER;
}
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 Disability_Types(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
*
*
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
*
*
* @generated
*/
@Override
public String getName() {
return name;
}
/**
*
*
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
*
*
* @generated
*/
@Override
public String toString() {
return literal;
}
} //Disability_Types