users@jaxb.java.net

Re: how to generate constants?

From: Kenny MacLeod <kennym_at_kizoom.com>
Date: Wed, 12 Dec 2007 22:36:19 +0000

The fixedAttributeAsConstantProperty binding customisation does that for
you.


Felipe Gaścho wrote:
> is there a way to generate constants ?
>
> public static final String a = "constant";
>
> ??
>
> <xsd:complexType name="test">
> <xsd:attribute name="a" type="xsd:string" fixed="constant"/>
> </xsd:complexType>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>