/**
* <copyright>
* </copyright>
*
* $Id$
*/
package es.tid.cim;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Enum Modulation Scheme</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see es.tid.cim.CimPackage#getEnumModulationScheme()
* @model
* @generated
*/
public enum EnumModulationScheme implements Enumerator {
/**
* The '<em><b>V90 Issue1 Asymmetric</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #V90_ISSUE1_ASYMMETRIC_VALUE
* @generated
* @ordered
*/
V90_ISSUE1_ASYMMETRIC(22, "V_90Issue1Asymmetric", "V.90 Issue 1 (Asymmetric)"),
/**
* The '<em><b>V90 Issue2 Symmetric</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #V90_ISSUE2_SYMMETRIC_VALUE
* @generated
* @ordered
*/
V90_ISSUE2_SYMMETRIC(23, "V_90Issue2Symmetric", "V.90 Issue 2 (Symmetric)"),
/**
* The '<em><b>V58</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #V58_VALUE
* @generated
* @ordered
*/
V58(24, "V_58", "V.58"),
/**
* The '<em><b>X2</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #X2_VALUE
* @generated
* @ordered
*/
X2(25, "X2", "X2"),
/**
* The '<em><b>K56FLEX</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #K56FLEX_VALUE
* @generated
* @ordered
*/
K56FLEX(26, "K56FLEX", "K56FLEX"),
/**
* The '<em><b>VFast</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #VFAST_VALUE
* @generated
* @ordered
*/
VFAST(27, "V_Fast", "V.Fast"),
/**
* The '<em><b>PEP</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #PEP_VALUE
* @generated
* @ordered
*/
PEP(28, "PEP", "PEP");
/**
* The '<em><b>V90 Issue1 Asymmetric</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>V90 Issue1 Asymmetric</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #V90_ISSUE1_ASYMMETRIC
* @model name="V_90Issue1Asymmetric" literal="V.90 Issue 1 (Asymmetric)"
* @generated
* @ordered
*/
public static final int V90_ISSUE1_ASYMMETRIC_VALUE = 22;
/**
* The '<em><b>V90 Issue2 Symmetric</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>V90 Issue2 Symmetric</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #V90_ISSUE2_SYMMETRIC
* @model name="V_90Issue2Symmetric" literal="V.90 Issue 2 (Symmetric)"
* @generated
* @ordered
*/
public static final int V90_ISSUE2_SYMMETRIC_VALUE = 23;
/**
* The '<em><b>V58</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>V58</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #V58
* @model name="V_58" literal="V.58"
* @generated
* @ordered
*/
public static final int V58_VALUE = 24;
/**
* The '<em><b>X2</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>X2</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #X2
* @model
* @generated
* @ordered
*/
public static final int X2_VALUE = 25;
/**
* The '<em><b>K56FLEX</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>K56FLEX</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #K56FLEX
* @model
* @generated
* @ordered
*/
public static final int K56FLEX_VALUE = 26;
/**
* The '<em><b>VFast</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>VFast</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #VFAST
* @model name="V_Fast" literal="V.Fast"
* @generated
* @ordered
*/
public static final int VFAST_VALUE = 27;
/**
* The '<em><b>PEP</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>PEP</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #PEP
* @model
* @generated
* @ordered
*/
public static final int PEP_VALUE = 28;
/**
* An array of all the '<em><b>Enum Modulation Scheme</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final EnumModulationScheme[] VALUES_ARRAY =
new EnumModulationScheme[] {
V90_ISSUE1_ASYMMETRIC,
V90_ISSUE2_SYMMETRIC,
V58,
X2,
K56FLEX,
VFAST,
PEP,
};
/**
* A public read-only list of all the '<em><b>Enum Modulation Scheme</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<EnumModulationScheme> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Enum Modulation Scheme</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static EnumModulationScheme get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
EnumModulationScheme result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Enum Modulation Scheme</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static EnumModulationScheme getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
EnumModulationScheme result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Enum Modulation Scheme</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static EnumModulationScheme get(int value) {
switch (value) {
case V90_ISSUE1_ASYMMETRIC_VALUE: return V90_ISSUE1_ASYMMETRIC;
case V90_ISSUE2_SYMMETRIC_VALUE: return V90_ISSUE2_SYMMETRIC;
case V58_VALUE: return V58;
case X2_VALUE: return X2;
case K56FLEX_VALUE: return K56FLEX;
case VFAST_VALUE: return VFAST;
case PEP_VALUE: return PEP;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EnumModulationScheme(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //EnumModulationScheme