Hmm I dont quite explain properly;
When i use the SourceGenerator to create the beans i need to to create a
method toString(); which returns a specific name of the element.
All my beans are created on the fly, with no human interaction involved,
so i'm using methods like,
obj.getClass().getMethod(get, params).invoke(obj, objArray);
to invoke the bean classes on a generic scale
How would i got about doing this?
On Thu, 2003-02-13 at 10:20, Mike OConnell wrote:
> Hi all
>
> My program is finally beginning to form, but i know there is an easier
> way to do what i need to.
> I'm using castor 0.9.4.3
> with j2sdk 1.4.1_01
>
> My program generates and compiles the java beans on the fly, i then add
> the beans to a tree structure for easy editing and access, at the moment
> i manually create a new class with the bean as an additional object, but
> what i need to do is add a toString() method in the java bean so that my
> tree names come up correctly when mapped to the correct element...
>
> Has anybody got some ideas/code they would be willing to share?
>
> Thanks
> Regards,
>
> Mike
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev