users@jaxb.java.net

pattern in a simple type

From: <oro7d3_at_netscape.net>
Date: Mon, 16 Feb 2004 17:20:25 -0500

Hi,

I have a question in jaxb. I have this simple type attribute with a pattern value "0" or "1". I have another element which reference this attribute.
JAXB creates a setMushUnderstand( boolean value); for me.
But when it marshalls the object, it marshalls 'mustUnderstand="false"' instead of using '0' or '1'.

Is there a way to configure JAXB to marshall either "0" for true, "1" for false?

<xs:attribute name="mustUnderstand">
<xs:simpleType>
<xs:restriction base="xs:boolean">
<xs:pattern value="0|1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>

__________________________________________________________________
New! Unlimited Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
Act now to get a personalized email address!

Netscape. Just the Net You Need.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net