/** */ 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 Office', * and utility methods for working with them. * * @see TaxationWithRoot.TaxationPackage#getTax_Office() * @model * @generated */ public enum Tax_Office implements Enumerator { /** * The 'RTS 2' literal object. * * * @see #RTS_2_VALUE * @generated * @ordered */ RTS_2(0, "RTS_2", "RTS_2"), /** * The 'RTS 3' literal object. * * * @see #RTS_3_VALUE * @generated * @ordered */ RTS_3(1, "RTS_3", "RTS_3"), /** * The 'RTS 4' literal object. * * * @see #RTS_4_VALUE * @generated * @ordered */ RTS_4(2, "RTS_4", "RTS_4"), /** * The 'RTS 5' literal object. * * * @see #RTS_5_VALUE * @generated * @ordered */ RTS_5(3, "RTS_5", "RTS_5"); /** * The 'RTS 2' literal value. * * * @see #RTS_2 * @model * @generated * @ordered */ public static final int RTS_2_VALUE = 0; /** * The 'RTS 3' literal value. * * * @see #RTS_3 * @model * @generated * @ordered */ public static final int RTS_3_VALUE = 1; /** * The 'RTS 4' literal value. * * * @see #RTS_4 * @model * @generated * @ordered */ public static final int RTS_4_VALUE = 2; /** * The 'RTS 5' literal value. * * * @see #RTS_5 * @model * @generated * @ordered */ public static final int RTS_5_VALUE = 3; /** * An array of all the 'Tax Office' enumerators. * * * @generated */ private static final Tax_Office[] VALUES_ARRAY = new Tax_Office[] { RTS_2, RTS_3, RTS_4, RTS_5, }; /** * A public read-only list of all the 'Tax Office' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Tax Office' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @generated */ public static Tax_Office get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { Tax_Office result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Tax Office' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @generated */ public static Tax_Office getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { Tax_Office result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Tax Office' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static Tax_Office get(int value) { switch (value) { case RTS_2_VALUE: return RTS_2; case RTS_3_VALUE: return RTS_3; case RTS_4_VALUE: return RTS_4; case RTS_5_VALUE: return RTS_5; } 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_Office(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_Office