Can you point me at the unit test?
By internal classes, I mean com.sun.xml... Just the implementation... I noticed that JAXBContextImpl.JAXBContextBuilder has methods setSubclassReplacements() and builder.setTypeRefs();. What do these do?
What I want to do is setup a XmlAdapter for the standard java collections so that we can have better control over the schema's generated.
Thanks!
--Kevin
From: Wolfgang Laun [mailto:wolfgang.laun_at_gmail.com]
Sent: Monday, November 08, 2010 2:18 AM
To: users_at_jaxb.dev.java.net
Subject: Re: Does XmlJavaTypeAdapter work on package-info.java?
There is a tested example with the @XmlJavaTypeAdapter on a user-defined class (not derived from an XML schema).
I'm not sure what you mean by "internal classes" and the next two questions. Can you be more specific or provide an example?
-W
On 6 November 2010 19:02, Kevin Aloisi <kaloisi_at_attivio.com<mailto:kaloisi_at_attivio.com>> wrote:
I've been struggling to get the XmlJavaTypeAdapter working. Can anyone confirm that is works in any other place than on a field? If I added it to the class itself or to the package-info.java it never gets called.
If it's not supported (which old posting say), Does anyone know if you can register a XmlJavaTypeAdapter using the internal classes? What exactly is the class replacement stuff? How about adding a TypeReference? Any help would be awesome..
Thanks
--Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net<mailto:users-unsubscribe_at_jaxb.dev.java.net>
For additional commands, e-mail: users-help_at_jaxb.dev.java.net<mailto:users-help_at_jaxb.dev.java.net>