/**
*/
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 'Tax Class Category',
* and utility methods for working with them.
*
* @see TaxationWithRoot.TaxationPackage#getTax_Class_Category()
* @model
* @generated
*/
public enum Tax_Class_Category implements Enumerator {
/**
* The 'One' literal object.
*
*
* @see #ONE_VALUE
* @generated
* @ordered
*/
ONE(0, "One", "One"),
/**
* The 'One A' literal object.
*
*
* @see #ONE_A_VALUE
* @generated
* @ordered
*/
ONE_A(1, "One_A", "One_A"),
/**
* The 'Two' literal object.
*
*
* @see #TWO_VALUE
* @generated
* @ordered
*/
TWO(2, "Two", "Two");
/**
* The 'One' literal value.
*
*
* @see #ONE
* @model name="One"
* @generated
* @ordered
*/
public static final int ONE_VALUE = 0;
/**
* The 'One A' literal value.
*
*
* @see #ONE_A
* @model name="One_A"
* @generated
* @ordered
*/
public static final int ONE_A_VALUE = 1;
/**
* The 'Two' literal value.
*
*
* @see #TWO
* @model name="Two"
* @generated
* @ordered
*/
public static final int TWO_VALUE = 2;
/**
* An array of all the 'Tax Class Category' enumerators.
*
*
* @generated
*/
private static final Tax_Class_Category[] VALUES_ARRAY =
new Tax_Class_Category[] {
ONE,
ONE_A,
TWO,
};
/**
* A public read-only list of all the 'Tax Class Category' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Tax Class Category' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static Tax_Class_Category get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
Tax_Class_Category result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Tax Class Category' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static Tax_Class_Category getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
Tax_Class_Category result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Tax Class Category' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static Tax_Class_Category get(int value) {
switch (value) {
case ONE_VALUE: return ONE;
case ONE_A_VALUE: return ONE_A;
case TWO_VALUE: return TWO;
}
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 Tax_Class_Category(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;
}
} //Tax_Class_Category