users@jaxb.java.net

Re: Newbie question...

From: Joe Fialli <joseph.fialli_at_sun.com>
Date: Mon, 03 Feb 2003 18:09:16 -0500

Randall Fidler wrote:
> Hello,
>
> I've checked out the underscoreBinding property for use with JAXB and
> tried both settings of "asWordSeperator" and "asCharInWord" but I
> continue to get underscores in classnames, fieldnames. I thought that
> maybe specifying the field and class names would get rid of the
> underscore, thought maybe it was a default character, but to no avail I
> still receive underscores.

The default for underscoreBinding is to treat "_" as punctuation(word seperator")
All underscores should be treated as word separators by default.

Thus,default binding should result in

<xs:complexType name="Foo_bar"> ===> public interface FooBar


The underscoreBinding property was added to enable compatibility
with JAX-RPC name mapping that defaults to treating "_"
as a character in a word.

-Joe Fialli, Sun Microsystems

>
> Help?
>
> Thanks!
>
> Randall


--