/** */ 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 'Dependent Type', * and utility methods for working with them. * * @see TaxationWithRoot.TaxationPackage#getDependent_Type() * @model * @generated */ public enum Dependent_Type implements Enumerator { /** * The 'CHILD' literal object. * * * @see #CHILD_VALUE * @generated * @ordered */ CHILD(0, "CHILD", "CHILD"), /** * The 'SPOUSE' literal object. * * * @see #SPOUSE_VALUE * @generated * @ordered */ SPOUSE(1, "SPOUSE", "SPOUSE"), /** * The 'RELATIVE' literal object. * * * @see #RELATIVE_VALUE * @generated * @ordered */ RELATIVE(2, "RELATIVE", "RELATIVE"), /** * The 'OTHER FAMILY MEMBER' literal object. * * * @see #OTHER_FAMILY_MEMBER_VALUE * @generated * @ordered */ OTHER_FAMILY_MEMBER(3, "OTHER_FAMILY_MEMBER", "OTHER_FAMILY_MEMBER"), /** * The 'NOT OWN CHILD' literal object. * * * @see #NOT_OWN_CHILD_VALUE * @generated * @ordered */ NOT_OWN_CHILD(4, "NOT_OWN_CHILD", "NOT_OWN_CHILD"); /** * The 'CHILD' literal value. * * * @see #CHILD * @model * @generated * @ordered */ public static final int CHILD_VALUE = 0; /** * The 'SPOUSE' literal value. * * * @see #SPOUSE * @model * @generated * @ordered */ public static final int SPOUSE_VALUE = 1; /** * The 'RELATIVE' literal value. * * * @see #RELATIVE * @model * @generated * @ordered */ public static final int RELATIVE_VALUE = 2; /** * The 'OTHER FAMILY MEMBER' literal value. * * * @see #OTHER_FAMILY_MEMBER * @model * @generated * @ordered */ public static final int OTHER_FAMILY_MEMBER_VALUE = 3; /** * The 'NOT OWN CHILD' literal value. * * * @see #NOT_OWN_CHILD * @model * @generated * @ordered */ public static final int NOT_OWN_CHILD_VALUE = 4; /** * An array of all the 'Dependent Type' enumerators. * * * @generated */ private static final Dependent_Type[] VALUES_ARRAY = new Dependent_Type[] { CHILD, SPOUSE, RELATIVE, OTHER_FAMILY_MEMBER, NOT_OWN_CHILD, }; /** * A public read-only list of all the 'Dependent Type' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Dependent Type' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @generated */ public static Dependent_Type get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { Dependent_Type result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Dependent Type' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @generated */ public static Dependent_Type getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { Dependent_Type result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Dependent Type' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static Dependent_Type get(int value) { switch (value) { case CHILD_VALUE: return CHILD; case SPOUSE_VALUE: return SPOUSE; case RELATIVE_VALUE: return RELATIVE; case OTHER_FAMILY_MEMBER_VALUE: return OTHER_FAMILY_MEMBER; case NOT_OWN_CHILD_VALUE: return NOT_OWN_CHILD; } 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 Dependent_Type(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; } } //Dependent_Type