/** */ 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 'Grantor', * and utility methods for working with them. * * @see TaxationWithRoot.TaxationPackage#getGrantor() * @model * @generated */ public enum Grantor implements Enumerator { /** * The 'WWW' literal object. * * * @see #WWW_VALUE * @generated * @ordered */ WWW(0, "WWW", "WWW"), /** * The 'Employer' literal object. * * * @see #EMPLOYER_VALUE * @generated * @ordered */ EMPLOYER(1, "Employer", "Employer"), /** * The 'MMM' literal object. * * * @see #MMM_VALUE * @generated * @ordered */ MMM(2, "MMM", "MMM"), /** * The 'UUU' literal object. * * * @see #UUU_VALUE * @generated * @ordered */ UUU(3, "UUU", "UUU"), /** * The 'YYY' literal object. * * * @see #YYY_VALUE * @generated * @ordered */ YYY(4, "YYY", "YYY"), /** * The 'OOO' literal object. * * * @see #OOO_VALUE * @generated * @ordered */ OOO(5, "OOO", "OOO"); /** * The 'WWW' literal value. * * * @see #WWW * @model * @generated * @ordered */ public static final int WWW_VALUE = 0; /** * The 'Employer' literal value. * * * @see #EMPLOYER * @model name="Employer" * @generated * @ordered */ public static final int EMPLOYER_VALUE = 1; /** * The 'MMM' literal value. * * * @see #MMM * @model * @generated * @ordered */ public static final int MMM_VALUE = 2; /** * The 'UUU' literal value. * * * @see #UUU * @model * @generated * @ordered */ public static final int UUU_VALUE = 3; /** * The 'YYY' literal value. * * * @see #YYY * @model * @generated * @ordered */ public static final int YYY_VALUE = 4; /** * The 'OOO' literal value. * * * @see #OOO * @model * @generated * @ordered */ public static final int OOO_VALUE = 5; /** * An array of all the 'Grantor' enumerators. * * * @generated */ private static final Grantor[] VALUES_ARRAY = new Grantor[] { WWW, EMPLOYER, MMM, UUU, YYY, OOO, }; /** * A public read-only list of all the 'Grantor' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Grantor' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @generated */ public static Grantor get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { Grantor result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Grantor' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @generated */ public static Grantor getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { Grantor result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Grantor' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static Grantor get(int value) { switch (value) { case WWW_VALUE: return WWW; case EMPLOYER_VALUE: return EMPLOYER; case MMM_VALUE: return MMM; case UUU_VALUE: return UUU; case YYY_VALUE: return YYY; case OOO_VALUE: return OOO; } 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 Grantor(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; } } //Grantor