users@jaxb.java.net

Re: JAXB mapping for XSD type anyURI

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Sat, 16 Jul 2011 21:40:47 +0200

anyURI is mapped to java.lang.String.

From the JAXB spec:

"xs:anyURI is not bound to java.net.URI by default since not all
possible values of xs:anyURI can be passed to the java.net.URI constructor.
Using
a global JAXB customization described in Section 7.9, “<javaType>
Declaration“, a JAXB user can override the default mapping to map xs:anyURI
to
java.net.URI."

-W


On 16 July 2011 20:10, <sende.mir.post_at_gmx.de> wrote:

> Hello,
>
> I found this list of XML Schema mappings in JAXB:
>
>
> http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/data_types.html#wp221271
>
> However the build-in datatype anyURI is missing. Is this not supported or
> was it missed out in the table? Would it be mapped to a simple String or
> maybe java.net.URI?
>
> Thanks.
>
> Bernd
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
>