/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public AllSomeType createAllSomeTypeFromString(EDataType eDataType, String initialValue) { AllSomeType result = AllSomeType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { AttributeImpl att = (AttributeImpl) instance; String text = att.getText(); AllSomeType allSomeType = AllSomeType.get(text); return allSomeType; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AllSomeType createAllSomeTypeFromString(EDataType eDataType, String initialValue) { AllSomeType result = AllSomeType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { AttributeImpl att = (AttributeImpl) instance; String text = att.getText(); AllSomeType allSomeType = AllSomeType.get(text); return allSomeType; } }