users@jaxb.java.net

Re: generating Annotated classes with JAXB ?

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Wed, 28 Nov 2007 11:48:14 +0100

Hi.

> You can use the <javacdoc> customization tag on your XSD type. Either
> directly in your .xsd or in a separate binding file.
>
> <xsd:schema jxb:version="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:jxb="http://java.sun.com/xml/ns/jaxb">
> <xsd:complexType name="DeprecatedType">
> <xsd:annotation>
> <xsd:appinfo>
> <jxb:class>
> <jxb:javadoc>@deprecated</jxb:javadoc>
> </jxb:class>
> </xsd:appinfo>
> </xsd:annotation>
> <!-- Your type definition -->
> </xsd:complexType>
> </xsd:schema>

I belive this is not what Felipe wants - he wants a Java 5 annotation,
not javadoc @deprecated.

Bye.
/lexi