On Apr 12, 2005 8:51 AM, Nacho G. Mac Dowell <[EMAIL PROTECTED]> wrote:
> The issue here is how Enumerations handle this: they expect TypedValue > to do the conversion. TypedValue was introduced recently and is not used by the enumerations. Besides, TypedValue should be generally treated as an opaque object, which is embeddable into Java Source. The only exception should be the decision, whether casting is required or not. (For example, in the list handling, where you've got to know, if you have a primitive integer and need to convert it into an Integer object, before it can be added to the list. > 1. DataTypeConverter is not really needed then? It is needed, because it ensures, that the conversions used at compile time do quite the same thing than the conversions occurring at runtime. This matters, in particular, if a types lexical representation is ambiguous. (Which is the case, for example, for floats.) > 2. getCastFromString(SimpleTypeSG pController, JavaMethod pMethod, > Object pValue, Object pData) would no longer be needed? No, it is absolutely needed, because it generates the code for converting strings at runtime. Jochen -- Outside of a dog, a book is man's best friend. Inside of a dog, its too dark to read. (Groucho Marx) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
