I got it.
Thanks for the infos.
Regards,
Heru
-----Original Message-----
From: Aleksei Valikov [mailto:valikov_at_gmx.net]
Sent: Tuesday, November 14, 2006 12:47 PM
To: users_at_jaxb.dev.java.net
Subject: Re: XSD Data types
Hi.
>> I think I need to learn a lot of things. :-) Great...
>> 1 more question.
>> Can I add an import statement on the generated code? Because I inject
>> a code to my generated Code using co.implClass.direct() API, which
>> containing util classes such as Iterator, List, etc. And maybe would
>> like to add few more classes. Or maybe is there any better way to
>> inject code?
>
> Lexi: I generally dislike direct() code generation.
>
> Heru: What are the other alternatives?
Well, if you have your code defined in a String, there's no alternative.
I just prefer using normal CodeModel API instead of direct statements
where it's possible.
Say, you can direct("a=b;"), you can body.assign(a, b);
> Lexi: As far as I know, you can't explicitly defined an import
> statement
> - seems like you'll need to use FQ class names.
>
> Heru: What is that FQ class names? How can I use it?
Fully qualified class names. You have to write java.util.List instead of
List in your injected code.
Bye.
/lexi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net