Exemple #1
0
 /**
  * Returns the '<em><b>Rating</b></em>' literal with the specified integer value.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @param value the value to use to get the enum instance
  * @return the Rating, the literal enum
  * @generated
  */
 public static Rating get(int value) {
   for (Rating enumInstance : VALUES_ARRAY) {
     if (enumInstance.getValue() == value) {
       return enumInstance;
     }
   }
   return null;
 }
Exemple #2
0
 /**
  * Returns the '<em><b>Rating</b></em>' literal with the specified literal value.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @param literal the literal to use to get the enum instance
  * @return the Rating, the literal enum class
  * @generated
  */
 public static Rating get(String literal) {
   for (int i = 0; i < VALUES_ARRAY.length; ++i) {
     Rating result = VALUES_ARRAY[i];
     if (result.toString().equals(literal)) {
       return result;
     }
   }
   return null;
 }
Exemple #3
0
 /**
  * Returns the '<em><b>Rating</b></em>' literal with the specified name.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @param name the name to use to get the enum instance
  * @return the Rating, the literal enum class
  * @generated
  */
 public static Rating getByName(String name) {
   for (int i = 0; i < VALUES_ARRAY.length; ++i) {
     Rating result = VALUES_ARRAY[i];
     if (result.getName().equals(name)) {
       return result;
     }
   }
   return null;
 }