Messages.AbstractParser_UnexpectedValueType,
iClass.getName()));
}
} else if (type instanceof EEnum) {
if (value instanceof String) {
EEnumLiteral literal = ((EEnum) type)
.getEEnumLiteralByLiteral((String) value);
if (literal == null) {
value = new InvalidValue(NLS.bind(
Messages.AbstractParser_UnknownLiteral, value));
} else {
value = literal.getInstance();
}
} else {
value = new InvalidValue(NLS.bind(
Messages.AbstractParser_UnexpectedValueType,
String.class.getName()));