/**
*/
package Taxation;
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 'Separation Causes',
* and utility methods for working with them.
*
* @see Taxation.TaxationPackage#getSeparation_Causes()
* @model
* @generated
*/
public enum Separation_Causes implements Enumerator {
/**
* The 'NONE' literal object.
*
*
* @see #NONE_VALUE
* @generated
* @ordered
*/
NONE(0, "NONE", "NONE"),
/**
* The 'DIVORCE' literal object.
*
*
* @see #DIVORCE_VALUE
* @generated
* @ordered
*/
DIVORCE(1, "DIVORCE", "DIVORCE"),
/**
* The 'SEPARATION DE FAIT' literal object.
*
*
* @see #SEPARATION_DE_FAIT_VALUE
* @generated
* @ordered
*/
SEPARATION_DE_FAIT(2, "SEPARATION_DE_FAIT", "SEPARATION_DE_FAIT"),
/**
* The 'SEPARATION BY COURT' literal object.
*
*
* @see #SEPARATION_BY_COURT_VALUE
* @generated
* @ordered
*/
SEPARATION_BY_COURT(3, "SEPARATION_BY_COURT", "SEPARATION_BY_COURT");
/**
* The 'NONE' literal value.
*
*
* @see #NONE
* @model
* @generated
* @ordered
*/
public static final int NONE_VALUE = 0;
/**
* The 'DIVORCE' literal value.
*
*
* @see #DIVORCE
* @model
* @generated
* @ordered
*/
public static final int DIVORCE_VALUE = 1;
/**
* The 'SEPARATION DE FAIT' literal value.
*
*
* @see #SEPARATION_DE_FAIT
* @model
* @generated
* @ordered
*/
public static final int SEPARATION_DE_FAIT_VALUE = 2;
/**
* The 'SEPARATION BY COURT' literal value.
*
*
* @see #SEPARATION_BY_COURT
* @model
* @generated
* @ordered
*/
public static final int SEPARATION_BY_COURT_VALUE = 3;
/**
* An array of all the 'Separation Causes' enumerators.
*
*
* @generated
*/
private static final Separation_Causes[] VALUES_ARRAY =
new Separation_Causes[] {
NONE,
DIVORCE,
SEPARATION_DE_FAIT,
SEPARATION_BY_COURT,
};
/**
* A public read-only list of all the 'Separation Causes' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Separation Causes' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static Separation_Causes get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
Separation_Causes result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Separation Causes' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static Separation_Causes getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
Separation_Causes result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Separation Causes' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static Separation_Causes get(int value) {
switch (value) {
case NONE_VALUE: return NONE;
case DIVORCE_VALUE: return DIVORCE;
case SEPARATION_DE_FAIT_VALUE: return SEPARATION_DE_FAIT;
case SEPARATION_BY_COURT_VALUE: return SEPARATION_BY_COURT;
}
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 Separation_Causes(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;
}
} //Separation_Causes