Ejemplo n.º 1
0
 static TypeEnum getTypeEnum(Prop prop, int enumval) {
   for (TypeEnum e : TypeEnum.values()) {
     if (e.prop == prop && e.value == enumval) {
       return e;
     }
   }
   return null;
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public TypeEnum createTypeEnumFromString(EDataType eDataType, String initialValue) {
   TypeEnum result = TypeEnum.get(initialValue);
   if (result == null)
     throw new IllegalArgumentException(
         "The value '"
             + initialValue
             + "' is not a valid enumerator of '"
             + eDataType.getName()
             + "'");
   return result;
 }
 public void setTypeValue(Integer priorityValue) {
   type = TypeEnum.enumForValue(priorityValue);
 }
 public Integer getTypeValue() {
   if (type != null) {
     return type.getValue();
   }
   return null;
 }