users@jaxb.java.net

Re: lookup type by QName

From: Mark Hansen <mark_at_javector.com>
Date: Thu, 03 Nov 2005 07:26:38 -0500

Dan,

I had a similar question on the "dev" list. There is a reflection
library that can be used to look up the type mappings (among other things)

http://jaxb2-reflection.dev.java.net/

-- Mark

Dan Diephouse wrote:
> Hiya JAXBers,
> Writing a little tool to do some artifact generation from WSDL. One
> problem I'm having is how to relate the QName of the type in the WSDL
> back to the JAXB class that I generated. Ideally I'd be able to do
> something like:
>
> Class type = jaxbContext.find(new QName("http://some/ns","localName"));
>
> Is this possible with JAXB at all? Cheers,
>
> - Dan
>