Pierre van Rooden <[EMAIL PROTECTED]> wrote:
> Gerard van Enk wrote:
> >>node.getFunctionValue("some_function", args);
>
> One of teha dvantages of the original methiod is that we can do this:
>
> getIntegerValue("somefunction(args)");
>
> which returns an int. We can use any other getXXXValue() method and
> return the indicated type (after conversion, if necessary).
> Maybe we can simply make versions of every getXXXValue() method which
> also accepts args?
> i.e. getIntegerValue("somefunction",args);
> I think it would make thsoe methods a lot easier (and 'safer') to use.
I think it should simply return java.lang.Integer, to which you can cast
then, and perhaps do an intValue() on.
Of course a function value can be any object, so I don't see why we should
make an exception for this one.
Though I don't really mind, the implementions of getIntegerFunctionValue and
getIntFunctionValue would be rather simple anyway.. Should be an abstract
bridge implementation then to do these kind of trivialities.
Michiel
--
Michiel Meeuwissen
Mediapark, C 107 tel. +31 (0)35 6772979