dev@jaxb.java.net

Re: XJC: get the narrowed class of an JClass or an JFieldVar

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Mon, 23 Nov 2009 16:45:59 +0100

Hi,

> just one problem JNarrowedClass is not public.
> As result JNarrowedClass type = (JNarrowedClass) jFieldVar.type(); fails.
>
> Do you have any other suggestions? Or is it possible to make JNarrowedClass public?

getTypeParameters() is public in JClass. You don't need the cast. :)

And you can always use the model (CClassInfo, CPropertyInfo) to get
more information about the "really" underlying structure.

Bye.
/lexi