users@jaxb.java.net

Re: How can I customize the names of the generated Java classes and fields?

From: Alex Muscar <alex.muscar_at_gmail.com>
Date: Wed, 3 Dec 2008 13:59:01 +0100

Thanks for the link. It is very useful. Especially this bit:

<jxb:schemaBindings>
  <jxb:package name="example"/>
    <jxb:nameXmlTransform>
      <jxb:elementName suffix="Element"/>
    </jxb:nameXmlTransform>
</jxb:schemaBindings>

and this one:

<jxb:bindings node=".//xs:attribute[@name='zip']">
  <jxb:property name="zipAttribute"/>
</jxb:bindings>

But there is only one problem. My conflicting elements don't all have
the same name. Can I do a match in another way than specifying the
name? Can I match let's say every attribute and append a certain
prefix/suffix to it?

On Wed, Dec 3, 2008 at 9:09 AM, Felipe Gaścho <fgaucho_at_gmail.com> wrote:
> http://java.sun.com/webservices/docs/1.6/tutorial/doc/JAXBUsing4.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>



-- 
Alex Muscar