Ejemplo n.º 1
0
 /**
  * Returns the '<em><b>Factor Origin</b></em>' literal with the specified name.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @param name the name.
  * @return the matching enumerator or <code>null</code>.
  * @generated
  */
 public static FactorOrigin getByName(String name) {
   for (int i = 0; i < VALUES_ARRAY.length; ++i) {
     FactorOrigin result = VALUES_ARRAY[i];
     if (result.getName().equals(name)) {
       return result;
     }
   }
   return null;
 }
Ejemplo n.º 2
0
 /**
  * Returns the '<em><b>Factor Origin</b></em>' literal with the specified literal value.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @param literal the literal.
  * @return the matching enumerator or <code>null</code>.
  * @generated
  */
 public static FactorOrigin get(String literal) {
   for (int i = 0; i < VALUES_ARRAY.length; ++i) {
     FactorOrigin result = VALUES_ARRAY[i];
     if (result.toString().equals(literal)) {
       return result;
     }
   }
   return null;
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public FactorOrigin createFactorOriginFromString(EDataType eDataType, String initialValue) {
   FactorOrigin result = FactorOrigin.get(initialValue);
   if (result == null)
     throw new IllegalArgumentException(
         "The value '"
             + initialValue
             + "' is not a valid enumerator of '"
             + eDataType.getName()
             + "'");
   return result;
 }